Class JaxoDashLine

All Implemented Interfaces:
Shape, PropertyChangeListener, Serializable, Cloneable, EventListener
Direct Known Subclasses:
JaxoGLine, JaxoSLine

public abstract class JaxoDashLine extends JaxoLineObject
A dashed line.
Since:
2.0
See Also:
  • Constructor Details

    • JaxoDashLine

      public JaxoDashLine()
  • Method Details

    • resetStroke

      protected void resetStroke()
      Resets the stroke to a default BasicStroke with current width. This should be overridden by objects that use a different stroke.
      Overrides:
      resetStroke in class JaxoExtendedObject
    • getObjectPath

      protected GeneralPath getObjectPath()
      Get the GeneralPath that paints this line.
      Specified by:
      getObjectPath in class JaxoLineObject
      Returns:
      GeneralPath.
    • strokeDashes

      protected abstract float[] strokeDashes()
      Returns an array that is used as the dash parameter in BasicStroke to paint this object.
      Returns:
      a dash array.
    • getAxo4JOptions

      protected String getAxo4JOptions(float scale)
      Return the option part of the LaTeX command for this line.
      Specified by:
      getAxo4JOptions in class JaxoLineObject
      Parameters:
      scale - the axodraw4j scale factor.
      Returns:
      the option String.