|
|||||||||
| 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.SubstanceBlendBiTheme
public class SubstanceBlendBiTheme
Blend theme. Blend theme is based on two original themes and the blend
factor, blending the colors from both themes for the painting. Here is how
you can create and set a blend theme:
SubstanceTheme blend = new SubstanceBlendBiTheme(
SubstanceAquaTheme(), SubstanceBottleGreenTheme(), 0.4);
SubstanceLookAndFeel.setCurrentTheme(blend);
for (Frame frame : Frame.getFrames()) {
SwingUtilities.updateComponentTreeUI(frame);
}
This class is part of officially supported API.
| 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.SubstanceTheme |
|---|
AQUA, GREEN, ORANGE, YELLOW |
| Constructor Summary | |
|---|---|
SubstanceBlendBiTheme(SubstanceTheme originalFirstTheme,
SubstanceTheme originalSecondTheme,
double firstThemeLikeness)
Creates a new blended theme. |
|
| Method Summary | |
|---|---|
SubstanceTheme |
getOriginalFirstTheme()
Returns the first original theme. |
SubstanceTheme |
getOriginalSecondTheme()
Returns the second original 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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SubstanceBlendBiTheme(SubstanceTheme originalFirstTheme,
SubstanceTheme originalSecondTheme,
double firstThemeLikeness)
originalFirstTheme - The first original theme.originalSecondTheme - The second original theme.firstThemeLikeness - Likeness to the first theme. Values close to 0.0 will create
theme that closely matches the second original theme. Values
close to 1.0 will create theme that closely matches the first
original scheme.| Method Detail |
|---|
public SubstanceTheme tint(double tintFactor)
SubstanceThemethis
theme. This method is part of officially supported API.
tint in class SubstanceThemetintFactor - Value in 0.0...1.0 range. Larger values shift more towards
white color.
this theme.public SubstanceTheme tone(double toneFactor)
SubstanceThemethis
theme. This method is part of officially supported API.
tone in class SubstanceThemetoneFactor - Value in 0.0...1.0 range. Larger values shift more towards
gray color.
this theme.public SubstanceTheme shade(double shadeFactor)
SubstanceThemethis
theme. This method is part of officially supported API.
shade in class SubstanceThemeshadeFactor - Value in 0.0...1.0 range. Larger values shift more towards
black color.
this theme.
public SubstanceTheme saturate(double saturateFactor,
boolean toSaturateEverything)
SubstanceThemethis theme.
The value and brightness stay the same. This method is part of officially
supported API.
saturate in class SubstanceThemesaturateFactor - 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 invert()
SubstanceThemethis theme. This method is
part of officially supported API.
invert in class SubstanceThemethis theme.public SubstanceTheme negate()
SubstanceThemethis theme. This method is
part of officially supported API.
negate in class SubstanceThemethis theme.public SubstanceTheme hueShift(double hueShiftFactor)
SubstanceThemethis
theme. This method is part of officially supported API.
hueShift in class SubstanceThemehueShiftFactor - Value in -1.0...1.0 range.
this theme.public SubstanceTheme getOriginalFirstTheme()
public SubstanceTheme getOriginalSecondTheme()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||