|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jvnet.substance.theme.SubstanceTheme
org.jvnet.substance.theme.SubstanceWrapperTheme
org.jvnet.substance.theme.SubstanceInvertedTheme
public class SubstanceInvertedTheme
Inverted theme. Inverted theme is based on some original theme, switching the dark colors by light colors and inverting the foreground color. This class is part of officially supported API.
InvertedColorScheme
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jvnet.substance.theme.SubstanceTheme |
---|
SubstanceTheme.ThemeKind |
Field Summary |
---|
Fields inherited from class org.jvnet.substance.theme.SubstanceWrapperTheme |
---|
borderTheme, defaultTheme, disabledTheme, originalTheme |
Fields inherited from class org.jvnet.substance.theme.SubstanceTheme |
---|
AQUA, GREEN, ORANGE, YELLOW |
Constructor Summary | |
---|---|
SubstanceInvertedTheme(SubstanceTheme substanceTheme)
Creates a new inverted theme. |
Method Summary | |
---|---|
java.awt.Color |
getWatermarkStampColor()
Returns the translucent watermark stamp color of this
theme. |
SubstanceTheme |
hueShift(double hueShiftFactor)
Creates a hue-shifted (in HSB space) version of this
theme. |
SubstanceTheme |
invert()
Creates an inverted version of this theme. |
SubstanceTheme |
negate()
Creates a negated version of this theme. |
SubstanceTheme |
saturate(double saturateFactor,
boolean toSaturateEverything)
Creates a saturated or desaturated version of this theme. |
SubstanceTheme |
shade(double shadeFactor)
Creates a shaded (shifted towards black) version of this
theme. |
SubstanceTheme |
tint(double tintFactor)
Creates a tinted (shifted towards white) version of this
theme. |
SubstanceTheme |
tone(double toneFactor)
Creates a toned (shifted towards gray) version of this
theme. |
Methods inherited from class org.jvnet.substance.theme.SubstanceWrapperTheme |
---|
getOriginalTheme |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SubstanceInvertedTheme(SubstanceTheme substanceTheme)
SubstanceTheme.invert()
instead.
substanceTheme
- The original theme.Method Detail |
---|
public SubstanceTheme invert()
SubstanceTheme
this
theme. This method is
part of officially supported API.
invert
in class SubstanceTheme
this
theme.public SubstanceTheme negate()
SubstanceTheme
this
theme. This method is
part of officially supported API.
negate
in class SubstanceTheme
this
theme.public java.awt.Color getWatermarkStampColor()
SubstanceTheme
this
theme. This method is for internal use only.
getWatermarkStampColor
in class SubstanceTheme
this
theme.public SubstanceTheme saturate(double saturateFactor, boolean toSaturateEverything)
SubstanceTheme
this
theme.
The value and brightness stay the same. This method is part of officially
supported API.
saturate
in class SubstanceTheme
saturateFactor
- Value in -1.0...1.0 range. Positive values create more
saturated colors. Negative values create more desaturated
colors.toSaturateEverything
- If true
, all visual components of
this
theme will be saturated. If
false
, only the SubstanceTheme.getActiveTheme()
will
be saturated.
this
theme.public SubstanceTheme tint(double tintFactor)
SubstanceTheme
this
theme. This method is part of officially supported API.
tint
in class SubstanceTheme
tintFactor
- Value in 0.0...1.0 range. Larger values shift more towards
white color.
this
theme.public SubstanceTheme tone(double toneFactor)
SubstanceTheme
this
theme. This method is part of officially supported API.
tone
in class SubstanceTheme
toneFactor
- Value in 0.0...1.0 range. Larger values shift more towards
gray color.
this
theme.public SubstanceTheme shade(double shadeFactor)
SubstanceTheme
this
theme. This method is part of officially supported API.
shade
in class SubstanceTheme
shadeFactor
- Value in 0.0...1.0 range. Larger values shift more towards
black color.
this
theme.public SubstanceTheme hueShift(double hueShiftFactor)
SubstanceTheme
this
theme. This method is part of officially supported API.
hueShift
in class SubstanceTheme
hueShiftFactor
- Value in -1.0...1.0 range.
this
theme.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |