com.rolemodelsoft.drawlet
Interface DrawingStyle

All Known Implementing Classes:
SimpleDrawingStyle

public interface DrawingStyle
extends Duplicatable

Defines a set of getters and setters for drawing styles. DrawingStyles are used by Figure and DrawingCanvas to define various attributes.


Method Summary
 java.awt.Color getBackgroundColor()
          Answer the Color to use for the background.
 java.awt.Color getFillColor()
          Answer the Color to use when filling the figure.
 java.awt.Font getFont()
          Answer the Font with which to paint text.
 java.awt.Color getForegroundColor()
          Answer the Color to use for the foreground.
 java.awt.Color getHighlightColor()
          Answer the Color to use to highlight areas of the canvas.
 java.awt.Color getLineColor()
          Answer the Color to use when drawing lines.
 java.awt.Color getSelectionBackgroundColor()
          Answer the Color to use for the background when indicating selection.
 java.awt.Color getSelectionForegroundColor()
          Answer the Color to use for the foreground when indicating selection.
 java.awt.Color getTextColor()
          Answer the Color to use when drawing text.
 void setBackgroundColor(java.awt.Color color)
          Set the Color to use for the background.
 void setFillColor(java.awt.Color color)
          Set the Color to use when filling the figure.
 void setFont(java.awt.Font newFont)
          Set the Font with which to paint text
 void setForegroundColor(java.awt.Color color)
          Set the Color to use for the foreground.
 void setHighlightColor(java.awt.Color color)
          Set the Color to use to highlight areas of the canvas.
 void setLineColor(java.awt.Color color)
          Set the Color to use when drawing lines.
 void setSelectionBackgroundColor(java.awt.Color color)
          Set the Color to use for the background during selection.
 void setSelectionForegroundColor(java.awt.Color color)
          Set the Color to use for the foreground during selection.
 void setTextColor(java.awt.Color color)
          Set the Color to use when drawing text.
 
Methods inherited from interface com.rolemodelsoft.drawlet.util.Duplicatable
duplicate, duplicateIn, postDuplicate
 

Method Detail

getBackgroundColor

public java.awt.Color getBackgroundColor()
Answer the Color to use for the background.
Returns:
Color the Color to use for the background

getFillColor

public java.awt.Color getFillColor()
Answer the Color to use when filling the figure.
Returns:
the Color to use when filling the figure

getFont

public java.awt.Font getFont()
Answer the Font with which to paint text.
Returns:
the Font with which to paint text

getForegroundColor

public java.awt.Color getForegroundColor()
Answer the Color to use for the foreground.
Returns:
the Color to use for the foreground

getHighlightColor

public java.awt.Color getHighlightColor()
Answer the Color to use to highlight areas of the canvas.
Returns:
the Color to use to highlight areas of the canvas

getLineColor

public java.awt.Color getLineColor()
Answer the Color to use when drawing lines.
Returns:
the Color to use when drawing lines

getSelectionBackgroundColor

public java.awt.Color getSelectionBackgroundColor()
Answer the Color to use for the background when indicating selection.
Returns:
the Color to use for the background when indicating selection

getSelectionForegroundColor

public java.awt.Color getSelectionForegroundColor()
Answer the Color to use for the foreground when indicating selection.
Returns:
the Color to use for the foreground when indicating selection

getTextColor

public java.awt.Color getTextColor()
Answer the Color to use when drawing text.
Returns:
the Color to use when drawing text

setBackgroundColor

public void setBackgroundColor(java.awt.Color color)
Set the Color to use for the background.
Parameters:
color - the color

setFillColor

public void setFillColor(java.awt.Color color)
Set the Color to use when filling the figure.
Parameters:
color - the color

setFont

public void setFont(java.awt.Font newFont)
Set the Font with which to paint text
Parameters:
newFont - the Font to use for text

setForegroundColor

public void setForegroundColor(java.awt.Color color)
Set the Color to use for the foreground.
Parameters:
color - the color

setHighlightColor

public void setHighlightColor(java.awt.Color color)
Set the Color to use to highlight areas of the canvas.
Parameters:
color - the color

setLineColor

public void setLineColor(java.awt.Color color)
Set the Color to use when drawing lines.
Parameters:
color - the color

setSelectionBackgroundColor

public void setSelectionBackgroundColor(java.awt.Color color)
Set the Color to use for the background during selection.
Parameters:
color - the color

setSelectionForegroundColor

public void setSelectionForegroundColor(java.awt.Color color)
Set the Color to use for the foreground during selection.
Parameters:
color - the color

setTextColor

public void setTextColor(java.awt.Color color)
Set the Color to use when drawing text.
Parameters:
color - the color