| net.refractions.udig.project.ui.internal.commands.draw.AbstractDrawCommand net.refractions.udig.project.ui.internal.commands.draw.DrawShapeCommand
DrawShapeCommand | public class DrawShapeCommand extends AbstractDrawCommand (Code) | | Draws the outline of a shape on the Acetate layer.
author: jeichar since: 0.3 |
DrawShapeCommand | public DrawShapeCommand()(Code) | | Creates a new instance of DrawShapeCommand
|
DrawShapeCommand | public DrawShapeCommand(Shape shape, Color color, int lineStyle, int lineWidth)(Code) | | Creates a new instance of DrawShapeCommand
Parameters: shape - The shape to draw Parameters: color - The paint to draw the shape with. Parameters: lineStyle - the line style to use for the shape outline Parameters: lineWidth - the line width in pixels. |
dispose | public void dispose()(Code) | | |
getLineStyle | public int getLineStyle()(Code) | | Returns the line style. |
getLineWidth | public int getLineWidth()(Code) | | Returns the line width. |
getPaint | public Paint getPaint()(Code) | | Returns the paint. |
getShape | public Shape getShape()(Code) | | Returns the shape but it is a copy so changing won't affect actual rendering. |
setFill | public void setFill(Color fillColor)(Code) | | Sets the color that the shape will be filled with.
If fill is null then no fill will be applied.
Parameters: fillColor - a color to be used to fill the shapeor null. |
setPaint | public void setPaint(Color paint)(Code) | | Parameters: paint - The paint to set. |
setShape | public void setShape(Shape shape)(Code) | | Parameters: shape - The shape to set. |
setStroke | public void setStroke(int lineStyle, int lineWidth)(Code) | | Sets the line style
Parameters: lineStyle - the style of the line Parameters: lineWidth - the width of the line |
setValid | public void setValid(boolean valid)(Code) | | |
|
|