Class JaxoDashLine

  • All Implemented Interfaces:
    java.awt.Shape, java.beans.PropertyChangeListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener
    Direct Known Subclasses:
    JaxoGLine, JaxoSLine

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

      • JaxoDashLine

        public JaxoDashLine()
    • Method Detail

      • 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 java.awt.geom.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 java.lang.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.