org.omegahat.Graphics.Devices
Class AWTParameters

java.lang.Object
  |
  +--org.omegahat.Graphics.Devices.AWTParameters
All Implemented Interfaces:
GraphicsParameters, GuiGraphicsParameters

public class AWTParameters
extends java.lang.Object
implements GuiGraphicsParameters

Options object controlling the activities, rendering, etc. of a GUI-based graphics device.


Field Summary
protected  java.awt.Color backgroundColor
          Default color to use for the background of the device and shading objects.
protected  java.awt.Color foregroundColor
          Default color to use for drawing objects.
protected  LineDash lineDash
          Default line style information controlling the dash lengths and phase/separators between the dashes.
protected  float lineWidth
          The width of the default line.
 
Constructor Summary
AWTParameters()
           
AWTParameters(AWTParameters p)
           
AWTParameters(java.io.File f)
           
AWTParameters(java.util.Properties props)
           
AWTParameters(java.io.Reader r)
           
 
Method Summary
 java.awt.Color backgroundColor()
           
 java.awt.Color backgroundColor(java.awt.Color c)
           
 GraphicsParameters diff(OutputDevice od)
          creates and returns a representation of the current device parameters that will be changed when this object is given to od.setParamters.
 java.awt.Color foregroundColor()
           
 java.awt.Color foregroundColor(java.awt.Color c)
           
 LineDash lineDash()
           
 LineDash lineDash(LineDash dash)
           
 float lineWidth()
           
 float lineWidth(float w)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

foregroundColor

protected java.awt.Color foregroundColor
Default color to use for drawing objects.

backgroundColor

protected java.awt.Color backgroundColor
Default color to use for the background of the device and shading objects.

lineDash

protected LineDash lineDash
Default line style information controlling the dash lengths and phase/separators between the dashes.

lineWidth

protected float lineWidth
The width of the default line.
Constructor Detail

AWTParameters

public AWTParameters()

AWTParameters

public AWTParameters(java.util.Properties props)

AWTParameters

public AWTParameters(java.io.File f)

AWTParameters

public AWTParameters(java.io.Reader r)

AWTParameters

public AWTParameters(AWTParameters p)
Method Detail

foregroundColor

public java.awt.Color foregroundColor()
Specified by:
foregroundColor in interface GraphicsParameters

foregroundColor

public java.awt.Color foregroundColor(java.awt.Color c)
Specified by:
foregroundColor in interface GraphicsParameters

backgroundColor

public java.awt.Color backgroundColor()
Specified by:
backgroundColor in interface GraphicsParameters

backgroundColor

public java.awt.Color backgroundColor(java.awt.Color c)
Specified by:
backgroundColor in interface GraphicsParameters

lineWidth

public float lineWidth()
Specified by:
lineWidth in interface GraphicsParameters

lineWidth

public float lineWidth(float w)
Specified by:
lineWidth in interface GraphicsParameters

lineDash

public LineDash lineDash()
Specified by:
lineDash in interface GraphicsParameters

lineDash

public LineDash lineDash(LineDash dash)
Specified by:
lineDash in interface GraphicsParameters

diff

public GraphicsParameters diff(OutputDevice od)
creates and returns a representation of the current device parameters that will be changed when this object is given to od.setParamters. To be filled in by the setParameters method of the device.
Specified by:
diff in interface GraphicsParameters