scenic
Class StrokedPath

java.lang.Object
  extended by scenic.SceneNode
      extended by scenic.SceneLeaf
          extended by scenic.Shape
              extended by scenic.StrokedPath

public class StrokedPath
extends Shape

This shape strokes a path using the given parameters.


Constructor Summary
StrokedPath(Path path)
          Creates a StrokedPath object with the given path.
 
Method Summary
 float[] getDashArray()
          Gets the line dash lengths.
 double getDashPhase()
          Gets the line dash phase.
 int getEndCap()
          Gets the line cap style.
 int getLineJoin()
          Gets the line join style.
 double getLineWidth()
          Gets the line width.
 double getMiterLimit()
          Gets the miter limit.
 Path getPath()
          Gets the path to be stroked.
 void setDashArray(float[] lineDashLengths)
          Sets the line dash pattern.
 void setDashPhase(double lineDashPhase)
          Sets the phase of the line dash pattern.
 void setEndCap(int lineCap)
          Sets the line cap style.
 void setLineJoin(int lineJoin)
          Sets the line join style.
 void setLineWidth(double lineWidth)
          Sets the line width.
 void setMiterLimit(double limit)
          Sets the miter limit.
 void setPath(Path path)
          Sets the path to be stroked.
 
Methods inherited from class scenic.Shape
getColor, setColor
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StrokedPath

public StrokedPath(Path path)
Creates a StrokedPath object with the given path.

Parameters:
path - the path to be stroked.
Method Detail

getPath

public Path getPath()
Gets the path to be stroked.


setPath

public void setPath(Path path)
Sets the path to be stroked.


getLineWidth

public double getLineWidth()
Gets the line width. The line width is defined in logical units.


setLineWidth

public void setLineWidth(double lineWidth)
Sets the line width. The line width is defined in logical units.


getEndCap

public int getEndCap()
Gets the line cap style.


setEndCap

public void setEndCap(int lineCap)
Sets the line cap style. The line cap style must be one of the constants in the LineCapStyle interface.


getLineJoin

public int getLineJoin()
Gets the line join style.


setLineJoin

public void setLineJoin(int lineJoin)
Sets the line join style. The line join style must be one of the constants in the LineJoinStyle interface.


getMiterLimit

public double getMiterLimit()
Gets the miter limit.


setMiterLimit

public void setMiterLimit(double limit)
Sets the miter limit. The miter limit defines the maximum length of the spike when using miter joins. If the spike is longer then the miter limit a bevel join is used instead.


getDashArray

public float[] getDashArray()
Gets the line dash lengths.


setDashArray

public void setDashArray(float[] lineDashLengths)
Sets the line dash pattern. The dash pattern is defined using an array which contains the lengths of consecutive visible and non-visible portions of the dash pattern. The lenths are given in logical units.

Parameters:
lineDashLengths - the line dash pattern.

getDashPhase

public double getDashPhase()
Gets the line dash phase.


setDashPhase

public void setDashPhase(double lineDashPhase)
Sets the phase of the line dash pattern. The phase defines the starting position of the line dash pattern.

Parameters:
lineDashPhase - the line dash phase.