|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jvnet.substance.color.BaseColorScheme
org.jvnet.substance.color.ShiftColorScheme
public class ShiftColorScheme
Base class for shifted color schemes. A shifted color scheme is based on some original color scheme, a shift color and a shift factor. All colors of the original color scheme are shifted towards the shift color based on the shift factor. The closer the shift factor value is to 1.0, the closer the colors of the shifted color scheme will be to the shift color.
Field Summary |
---|
Fields inherited from class org.jvnet.substance.color.BaseColorScheme |
---|
id |
Constructor Summary | |
---|---|
ShiftColorScheme(ColorScheme origScheme,
java.awt.Color shiftColor,
double shiftFactor)
Creates a new shifted color scheme. |
Method Summary | |
---|---|
java.awt.Color |
getDarkColor()
Retrieves the dark color. |
java.awt.Color |
getExtraLightColor()
Retrieves the extra color. |
java.awt.Color |
getForegroundColor()
Retrieves the foreground color. |
java.awt.Color |
getLightColor()
Retrieves the light color. |
java.awt.Color |
getMidColor()
Retrieves the medium color. |
ColorScheme |
getOrigScheme()
Returns the original color scheme. |
double |
getShiftFactor()
Returns the shift factor. |
java.awt.Color |
getUltraDarkColor()
Retrieves the ultra-dark color. |
java.awt.Color |
getUltraLightColor()
Retrieves the ultra-light color. |
Methods inherited from class org.jvnet.substance.color.BaseColorScheme |
---|
getId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShiftColorScheme(ColorScheme origScheme, java.awt.Color shiftColor, double shiftFactor)
origScheme
- The original color scheme.shiftColor
- Shift color.shiftFactor
- Shift factor. Should be in 0.0-1.0 range.Method Detail |
---|
public java.awt.Color getForegroundColor()
ColorScheme
public java.awt.Color getUltraLightColor()
ColorScheme
public java.awt.Color getExtraLightColor()
ColorScheme
public java.awt.Color getLightColor()
ColorScheme
public java.awt.Color getMidColor()
ColorScheme
public java.awt.Color getDarkColor()
ColorScheme
public java.awt.Color getUltraDarkColor()
ColorScheme
public ColorScheme getOrigScheme()
public double getShiftFactor()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |