| net.refractions.udig.project.ui.internal.commands.draw.AbstractDrawCommand net.refractions.udig.project.ui.internal.commands.draw.DrawPathCommand
DrawPathCommand | public class DrawPathCommand extends AbstractDrawCommand (Code) | | Draws the outline of a shape on the Acetate layer.
author: jeichar since: 0.3 |
DrawPathCommand | public DrawPathCommand()(Code) | | Creates a new instance of DrawShapeCommand
|
DrawPathCommand | public DrawPathCommand(Path path, Color color, int lineStyle, int lineWidth)(Code) | | Creates a new instance of DrawShapeCommand
Parameters: path - The path 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. |
DrawPathCommand | public DrawPathCommand(Device device, PathIterator path, Color color, int lineStyle, int lineWidth)(Code) | | Creates a new instance of DrawShapeCommand
Parameters: path - The path 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) | | Disposes of the Path object if it is not null and sets this command as invalid.
|
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. |
line | public void line(int x1, int y1, int x2, int y2)(Code) | | if this is called then a line is also drawn from (x1,y1) to (x2,y2). This would be used to make the path appear to be closed. Actually closing
the path is problematic because it cannot be undone. So this is a method to simulate it. Obviously if the path is not going to need to be re-opened
then this method does not need to be called.
|
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. |
setPath | public void setPath(Path path)(Code) | | Parameters: path - The new path. |
setPath | public void setPath(Device device, PathIterator path)(Code) | | Parameters: path - The new path. |
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) | | |
|
|