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 Details

    • Dash

      public Dash()
      Constructs a new Dash. Initializes the dashArray with null 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

      public boolean equals​(Object obj)
      Overrides:
      equals in class Object