net.refractions.udig.tools.edit.commands
Class StyleStrategy
java.lang.Object
net.refractions.udig.tools.edit.commands.StyleStrategy
public class StyleStrategy
- extends java.lang.Object
This class manages the colors and line patterns the uses for drawing. There are different colors
for the fill and outline of the shapes that change depending on whether the current edit state is
create or modify (and the shape in question is the current shape"
- Since:
- 1.1.0
- Author:
- Jesse
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StyleStrategy
public StyleStrategy()
setLineColor
public void setLineColor(ViewportGraphics graphics,
EditGeom geom,
EditToolHandler handler)
- Sets the line color of the graphics
setLineColor2
public void setLineColor2(ViewportGraphics graphics,
EditGeom geom,
EditToolHandler handler)
- Sets the background line color and width.
setFillColor
public void setFillColor(ViewportGraphics graphics,
EditGeom geom,
EditToolHandler handler)
setFill
public void setFill(java.awt.Color fill)
- Parameters:
fill
- The fill to set.
setLine
public void setLine(java.awt.Color line)
- Parameters:
line
- The line to set.
setLinePattern
public void setLinePattern( linePattern)
- Parameters:
linePattern
- The linePattern to set.
setLineWidth
public void setLineWidth( lineWidth)
- Parameters:
lineWidth
- The lineWidth to set.
setBackgroundLine
public void setBackgroundLine( line)
- Parameters:
line
- The line to set.
setBackgroundLinePattern
public void setBackgroundLinePattern( linePattern)
- Parameters:
linePattern
- The linePattern to set.
setBackgroundLineWidth
public void setBackgroundLineWidth( lineWidth)
- Parameters:
lineWidth
- The lineWidth to set.