|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.rolemodelsoft.drawlet.basics.SimpleDrawingStyle
This provides basic functionality necessary to provide a meaningful working version of a DrawingStyle.
| Field Summary | |
protected java.awt.Color |
backgroundColor
Holds this style's background color. |
protected java.awt.Color |
fillColor
Holds this style's fill color. |
protected java.awt.Font |
font
Holds this style's font. |
protected java.awt.Color |
foregroundColor
Holds this style's foreground color. |
protected java.awt.Color |
highlightColor
Holds this style's highlight color. |
protected java.awt.Color |
lineColor
Holds this style's line color. |
protected java.awt.Color |
selectionBackgroundColor
Holds this style's selection background color. |
protected java.awt.Color |
selectionForegroundColor
Holds this style's selection foreground color. |
protected java.awt.Color |
textColor
Holds this style's text color. |
| Constructor Summary | |
SimpleDrawingStyle()
|
|
| Method Summary | |
protected java.awt.Color |
defaultBackgroundColor()
Answer the default/initial value for backgroundColor |
protected java.awt.Color |
defaultFillColor()
Answer the default/initial value for fillColor |
protected java.awt.Font |
defaultFont()
Answer the default/initial value for the font |
protected java.awt.Color |
defaultForegroundColor()
Answer the default/initial value for foregroundColor |
protected java.awt.Color |
defaultHighlightColor()
Answer the default/initial value for selectionBackgroundColor |
protected java.awt.Color |
defaultLineColor()
Answer the default/initial value for lineColor |
protected java.awt.Color |
defaultSelectionBackgroundColor()
Answer the default/initial value for selectionBackgroundColor |
protected java.awt.Color |
defaultSelectionForegroundColor()
Answer the default/initial value for selectionForegroundColor |
protected java.awt.Color |
defaultTextColor()
Answer the default/initial value for textColor |
java.lang.Object |
duplicate()
Duplicates the receiver. |
java.lang.Object |
duplicateIn(java.util.Hashtable duplicates)
Duplicates the receiver in the given Hashtable. |
java.awt.Color |
getBackgroundColor()
Answer this style's background Color. |
java.awt.Color |
getFillColor()
Answer this style's fill Color. |
java.awt.Font |
getFont()
Answer this style's font. |
java.awt.Color |
getForegroundColor()
Answer this style's foreground Color. |
java.awt.Color |
getHighlightColor()
Answer this style's highlight Color. |
java.awt.Color |
getLineColor()
Answer this style's line Color. |
java.awt.Color |
getSelectionBackgroundColor()
Answer this style's selection background Color. |
java.awt.Color |
getSelectionForegroundColor()
Answer this style's selection foreground Color. |
java.awt.Color |
getTextColor()
Answer this style's text Color. |
void |
postDuplicate(java.util.Hashtable duplicates)
After a series of objects are duplicated, this can be sent to each of the duplicates to resolve any changes it might like to reconcile. |
void |
setBackgroundColor(java.awt.Color color)
Set this style's background Color. |
void |
setFillColor(java.awt.Color color)
Set this style's fill Color. |
void |
setFont(java.awt.Font newFont)
Set this style's font. |
void |
setForegroundColor(java.awt.Color color)
Set this style's foreground Color. |
void |
setHighlightColor(java.awt.Color color)
Set this style's highlight Color. |
void |
setLineColor(java.awt.Color color)
Set this style's line Color. |
void |
setSelectionBackgroundColor(java.awt.Color color)
Set this style's selection background Color. |
void |
setSelectionForegroundColor(java.awt.Color color)
Set this style's selection foreground Color. |
void |
setTextColor(java.awt.Color color)
Set this style's text Color. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
protected java.awt.Color backgroundColor
protected java.awt.Color foregroundColor
protected java.awt.Font font
protected java.awt.Color fillColor
protected java.awt.Color lineColor
protected java.awt.Color textColor
protected java.awt.Color selectionBackgroundColor
protected java.awt.Color selectionForegroundColor
protected java.awt.Color highlightColor
| Constructor Detail |
public SimpleDrawingStyle()
| Method Detail |
protected java.awt.Color defaultBackgroundColor()
protected java.awt.Color defaultFillColor()
protected java.awt.Font defaultFont()
protected java.awt.Color defaultForegroundColor()
protected java.awt.Color defaultHighlightColor()
protected java.awt.Color defaultLineColor()
protected java.awt.Color defaultSelectionBackgroundColor()
protected java.awt.Color defaultSelectionForegroundColor()
protected java.awt.Color defaultTextColor()
public java.lang.Object duplicate()
public java.lang.Object duplicateIn(java.util.Hashtable duplicates)
Hashtable.duplicates - the Hashtable to put the new duplicate inpublic java.awt.Color getBackgroundColor()
public java.awt.Color getFillColor()
public java.awt.Font getFont()
public java.awt.Color getForegroundColor()
public java.awt.Color getHighlightColor()
public java.awt.Color getLineColor()
public java.awt.Color getSelectionBackgroundColor()
public java.awt.Color getSelectionForegroundColor()
public java.awt.Color getTextColor()
public void postDuplicate(java.util.Hashtable duplicates)
duplicates - a Hashtable with originals as keys and duplicats as elementspublic void setBackgroundColor(java.awt.Color color)
color - the Color to use for the background.public void setFillColor(java.awt.Color color)
color - the Color to use for filling.public void setFont(java.awt.Font newFont)
newFont - the font to use.public void setForegroundColor(java.awt.Color color)
color - the Color to use for the foreground.public void setHighlightColor(java.awt.Color color)
color - the Color to use for the highlight.public void setLineColor(java.awt.Color color)
color - the Color to use for the line.public void setSelectionBackgroundColor(java.awt.Color color)
color - the Color to use for the selection's background.public void setSelectionForegroundColor(java.awt.Color color)
color - the Color to use for the selection's foreground.public void setTextColor(java.awt.Color color)
color - the Color to use for the text.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||