| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--KeySettings
The class provides an object that refers to the settings of a DrawableKey.
 Many static variables are available for use as defaults and different settings. Additionally,
 a static method getScheme becomes very useful in acquiring the object with a
 given color scheme.
 
 The class implements cloneable, making copies of the object possible. The copies are shallow copies
 which means changes to the specific elements could be dangerous when numerous instances refer
 to the same elements. For example, modifying the rule of the given AlphaComposite, modifies the rule
 for all KeySettings that refer to that AlphaComposite. Therefore, it is suggested
 that no modifications to the specific elements be made. Instead, simply use a different element.
DrawableKey, 
NodeSettings| Field Summary | |
| static java.lang.String | ANIMATOR_SCHEME_1Default animating color scheme. | 
| static java.lang.String | ANIMATOR_SCHEME_2Animator Scheme 2. | 
| static java.lang.String | ANIMATOR_SCHEME_3Animator Scheme 3. | 
| static java.lang.String | ANIMATOR_SCHEME_4Animator Scheme 4. | 
| static java.lang.String | BLACK_SCHEMEBlack color scheme. | 
| static java.lang.String | CHRISTMAS_SCHEMEPrinceton color scheme. | 
| static java.lang.String | DEFAULT_SCHEMEDefault color scheme. | 
| static java.lang.String | DEFAULT_SCHEME_2Old Default color scheme. | 
| static java.lang.String | ERASEErasing color scheme. | 
| static java.awt.Font | fontDefaultDefault Fontfor Key Drawing (Serif, Font.PLAIN). | 
| static java.lang.String | GHOST_SCHEMEGhost color scheme. | 
| static float | keyAlphaAnimateDefaultDefault alpha for Key Animating (.8). | 
| static float | keyAlphaDefaultDefault alpha for Key Drawing (1.0). | 
| static java.awt.AlphaComposite | keyCompositeAnimateDefaultDefault Compositefor key animating (AlphaComposite(keyRuleDefault, keyAlphaAnimateDefault)). | 
| static java.awt.AlphaComposite | keyCompositeDefaultDefault Compositefor key drawing (AlphaComposite(keyRuleDefault, keyAlphaDefault)). | 
| static java.awt.Color | keyDefaultColorDefault Paintfor Key Fill (PaintSettings.lightWhite). | 
| static java.awt.BasicStroke | keyDefaultStrokeDefault Strokefor Key Drawing (BasicStroke(.05)). | 
| static java.awt.Color | keyOutlineDefaultColorDefault Paintfor Key Stroke (Color.black). | 
| static int | keyRuleDefaultDefault AlphaCompositerule for Key Drawing (SRC_OVER). | 
| static java.lang.String | originalString used in getSettingNameto define an undefined settings. | 
| static java.lang.String | WHITE_SCHEMEWhite color scheme. | 
| Constructor Summary | |
| KeySettings()Constructor, contructs a default defined KeySettings. | |
| KeySettings(java.lang.String scheme)Constructor, contructs a defined KeySettingswith the given scheme. | |
| Method Summary | |
|  java.lang.Object | clone()Returns a copy of this AffineTransformobject. | 
|  java.awt.Font | getFont()Gets the Fontused for drawing the key. | 
|  java.awt.Composite | getKeyComposite()Gets the key composite. | 
|  java.awt.Paint | getKeyFillPaint()Gets the key fill paint. | 
|  java.awt.Paint | getKeyOutlinePaint()Gets the key outline paint. | 
|  java.awt.Stroke | getKeyOutlineStroke()Gets the outline stroke of the key. | 
|  float | getKeyOutlineStrokeWidth()Gets the outline stroke width of the key. | 
| static java.lang.String[] | getList()Gets an array of String elements representing every NodeSettings choice available. | 
| static KeySettings | getScheme(java.lang.String s)Gets a KeySettingsthat defines the given int scheme. | 
|  java.lang.String | getSettingName()Gets the string name for the current settings. | 
|  void | setAllSettings(KeySettings s)Sets the settings of just the key of the KeySettings, using the KeySettings passed. | 
|  void | setFont(java.awt.Font f)Sets the Fontused for drawing the key. | 
|  void | setKeyComposite(java.awt.Composite c)Sets the key composite. | 
|  void | setKeyFillPaint(java.awt.Paint p)Sets the paint for filling the key. | 
|  void | setKeyOutlinePaint(java.awt.Paint p)Sets the paint for the outline of the key. | 
|  void | setKeyOutlineStroke(java.awt.BasicStroke s)Sets the key stroke. | 
|  void | setKeyOutlineStroke(java.awt.Stroke s,
                    float w)Sets the stroke for the key. | 
|  void | setScheme(java.lang.String s)Sets the scheme of the settings, using Color.white as the default background color, if the background color is indeed needed. | 
|  void | setScheme(java.lang.String s,
          java.awt.Color background)Sets the scheme of the settings, using the background color if needed. | 
|  void | setSettingName(java.lang.String settingName)Sets the string name for the current settings. | 
| Methods inherited from class java.lang.Object | 
| equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static final java.awt.BasicStroke keyDefaultStroke
Stroke for Key Drawing (BasicStroke(.05)).
public static final java.awt.Color keyOutlineDefaultColor
Paint for Key Stroke (Color.black).
public static final java.awt.Color keyDefaultColor
Paint for Key Fill (PaintSettings.lightWhite).
public static final int keyRuleDefault
AlphaComposite rule for Key Drawing (SRC_OVER).
public static final float keyAlphaDefault
public static final float keyAlphaAnimateDefault
public static final java.awt.Font fontDefault
Font for Key Drawing (Serif, Font.PLAIN).
public static final java.awt.AlphaComposite keyCompositeDefault
Composite for key drawing (AlphaComposite(keyRuleDefault, keyAlphaDefault)).
public static final java.awt.AlphaComposite keyCompositeAnimateDefault
Composite for key animating (AlphaComposite(keyRuleDefault, keyAlphaAnimateDefault)).
public static final java.lang.String DEFAULT_SCHEME
public static final java.lang.String DEFAULT_SCHEME_2
public static final java.lang.String ERASE
public static final java.lang.String BLACK_SCHEME
public static final java.lang.String GHOST_SCHEME
public static final java.lang.String WHITE_SCHEME
public static final java.lang.String CHRISTMAS_SCHEME
public static final java.lang.String ANIMATOR_SCHEME_1
public static final java.lang.String ANIMATOR_SCHEME_2
public static final java.lang.String ANIMATOR_SCHEME_3
public static final java.lang.String ANIMATOR_SCHEME_4
public static final java.lang.String original
getSettingName to define an undefined settings.
| Constructor Detail | 
public KeySettings()
KeySettings.
public KeySettings(java.lang.String scheme)
KeySettings with the given scheme.
| Method Detail | 
public static KeySettings getScheme(java.lang.String s)
KeySettings that defines the given int scheme. The scheme must be one
 defined within the class, otherwise the default scheme is returned.
s - defined color scheme within the class.
KeySettings that defines the given color scheme or default if no
 color scheme exists.public static java.lang.String[] getList()
public java.lang.String getSettingName()
public void setSettingName(java.lang.String settingName)
settingName - String defining the settings name.public void setScheme(java.lang.String s)
s - defined color scheme within the class.
public void setScheme(java.lang.String s,
                      java.awt.Color background)
s - defined color scheme within the class.background - background color if needed.public java.lang.Object clone()
AffineTransform object.
clone in class java.lang.ObjectObject that is a copy of this
 AffineTransform object.public void setAllSettings(KeySettings s)
s - KeySettings to which the node settings are set.public void setFont(java.awt.Font f)
Font used for drawing the key.
f - Font used for drawing.public void setKeyFillPaint(java.awt.Paint p)
p - Paint for filling the key.
public void setKeyOutlineStroke(java.awt.Stroke s,
                                float w)
s - Stroke that sets the key stroke.w - Width of the Stroke for drawing corrections.public void setKeyOutlineStroke(java.awt.BasicStroke s)
getLineWidth method.
s - BasicStroke for drawing the key.public void setKeyOutlinePaint(java.awt.Paint p)
p - Paint for drawing the outline of the key.public void setKeyComposite(java.awt.Composite c)
c - Composite for drawing the key.public java.awt.Font getFont()
Font used for drawing the key.
Font used for drawing.public java.awt.Paint getKeyFillPaint()
Paint of the key.public java.awt.Stroke getKeyOutlineStroke()
Stroke outline of the key.public float getKeyOutlineStrokeWidth()
public java.awt.Paint getKeyOutlinePaint()
Paint of the key.public java.awt.Composite getKeyComposite()
Composite of the key.| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||