Class RMStroke

    • Field Detail

      • DEFAULT

        public static final RMStroke DEFAULT
    • 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

      • getLineWidth

        public float getLineWidth()
        Returns the line width of this stroke.
      • getPath

        public RMPath getPath​(RMPath inputPath)
        Returns the path to be stroked, transformed from the input path.
      • getBounds

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

        public RMStroke deriveStroke​(RMColor aColor)
        Returns a stroke just like the receiver, except with the new given color.
      • deriveStroke

        public RMStroke deriveStroke​(float aWidth)
        Returns a stroke just like the receiver, except with the new given line width.
      • equals

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