net.refractions.udig.tools.edit.commands
Class StyleStrategy

java.lang.Object
  extended by 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

Constructor Summary
StyleStrategy()
           
 
Method Summary
 void setBackgroundLine( line)
           
 void setBackgroundLinePattern( linePattern)
           
 void setBackgroundLineWidth( lineWidth)
           
 void setFill(java.awt.Color fill)
           
 void setFillColor(ViewportGraphics graphics, EditGeom geom, EditToolHandler handler)
           
 void setLine(java.awt.Color line)
           
 void setLineColor(ViewportGraphics graphics, EditGeom geom, EditToolHandler handler)
          Sets the line color of the graphics
 void setLineColor2(ViewportGraphics graphics, EditGeom geom, EditToolHandler handler)
          Sets the background line color and width.
 void setLinePattern( linePattern)
           
 void setLineWidth( lineWidth)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StyleStrategy

public StyleStrategy()
Method Detail

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.