Class RMStroke

    • Constructor Detail

      • RMStroke

        public RMStroke()
        Creates a plain, black stroke.
      • RMStroke

        public RMStroke​(RMColor aColor,
                        float aStrokeWidth)
        Creates a stroke with the given color and line width.
    • Method Detail

      • getWidth

        public float getWidth()
        Returns the line width of this stroke.
      • setWidth

        public void setWidth​(float aValue)
        Sets the line width of this stroke.
      • getDashArray

        public float[] getDashArray()
        Returns the dash array for this stroke.
      • setDashArray

        public void setDashArray​(float[] anArray)
        Sets the dash array for this stroke.
      • getDashArrayString

        public java.lang.String getDashArrayString()
        Returns the dash array for this stroke as a string.
      • setDashArrayString

        public void setDashArrayString​(java.lang.String aString)
        Sets the dash array for this stroke from a string.
      • getDashArray

        public static float[] getDashArray​(java.lang.String aString,
                                           java.lang.String aDelimeter)
        Returns a dash array for given dash array string and delimeter.
      • getDashArrayString

        public static java.lang.String getDashArrayString​(float[] dashArray,
                                                          java.lang.String aDelimiter)
        Returns the dash array for this stroke as a string.
      • getDashPhase

        public float getDashPhase()
        Returns the dash phase.
      • setDashPhase

        public void setDashPhase​(float aValue)
        Sets the dash phase.
      • setColor

        public void setColor​(RMColor aColor)
        Overrides fill version to clear java 2d stroke.
        Overrides:
        setColor in class RMFill
      • getStroke

        protected java.awt.Stroke getStroke()
        Returns the java2d stroke to be used.
      • getStrokePath

        public java.awt.Shape getStrokePath​(RMShape aShape)
        Returns the path to be stroked, transformed from the input path.
      • getBounds

        public RMRect getBounds​(RMShape aShape)
        Returns the bounds required to render this fill for this shape.
        Overrides:
        getBounds in class RMFill
      • getName

        public java.lang.String getName()
        Returns the name of the fill.
        Overrides:
        getName in class RMFill
      • equals

        public boolean equals​(java.lang.Object anObj)
        Standard equals implementation.
        Overrides:
        equals in class RMFill
      • clone

        public RMStroke clone()
        Standard clone implementation.
        Overrides:
        clone in class RMFill