Package org.graffiti.graphics
Class Dash
java.lang.Object
org.graffiti.graphics.Dash
public class Dash extends Object
Class that encapsulates the information needed to specify stroke properties.
- Version:
- $Revision: 1.4 $
- Author:
- schoeffl
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description boolean
equals(Object obj)
float[]
getDashArray()
Returns the dashArray.float
getDashPhase()
Returns the dashPhase.void
setDashArray(float[] da)
Sets the dashArray to the given array.void
setDashPhase(float dp)
Sets the dashPhase to the given value.
-
Constructor Details
-
Dash
public Dash()Constructs a new Dash. Initializes the dashArray withnull
and the dashPhase with 0.0. -
Dash
public Dash(float[] da, float dp)Constructs a new Dash. Sets the dashArray and the dashPhase to the given values.- Parameters:
da
- the array to set the dashArray to.dp
- the value to set the dashPhase to.
-
-
Method Details
-
setDashArray
public void setDashArray(float[] da)Sets the dashArray to the given array.- Parameters:
da
- the array to set the dashArray to.
-
getDashArray
public float[] getDashArray()Returns the dashArray.- Returns:
- the dashArray.
-
setDashPhase
public void setDashPhase(float dp)Sets the dashPhase to the given value.- Parameters:
dp
- the new value for the dashPhase.
-
getDashPhase
public float getDashPhase()Returns the dashPhase.- Returns:
- the dashPhase.
-
equals
-