Class RMRadialGradientFill

    • Field Detail

      • _beginPoint

        public java.awt.geom.Point2D _beginPoint
      • _endPoint

        public java.awt.geom.Point2D _endPoint
    • Constructor Detail

      • RMRadialGradientFill

        public RMRadialGradientFill()
        Creates an uninitialized radial fill.
      • RMRadialGradientFill

        public RMRadialGradientFill​(RMColor aColor1,
                                    RMColor aColor2,
                                    java.awt.geom.Point2D begin,
                                    java.awt.geom.Point2D end)
        Creates a gradient fill from the given start color to the given end color with the given endpoints.
    • Method Detail

      • getBeginPoint

        public java.awt.geom.Point2D getBeginPoint()
        Returns the begin point.
      • getEndPoint

        public java.awt.geom.Point2D getEndPoint()
        Returns the end point.
      • getFocusAngle

        public double getFocusAngle()
        Returns the angle.
      • getRadius

        public double getRadius()
        Returns the radius.
      • deriveGradient

        public RMRadialGradientFill deriveGradient​(java.awt.geom.Point2D begin,
                                                   java.awt.geom.Point2D end)
        Returns a new gradient which is a copy of this gradient with a different gradient axis.
      • deriveGradient

        public RMGradientFill deriveGradient​(boolean isRadial)
        Returns a new gradient which is a copy of this gradient but of a different type.
        Overrides:
        deriveGradient in class RMGradientFill
      • getGradientAxis

        public void getGradientAxis​(RMShape aShape,
                                    RMPath aPath,
                                    java.awt.geom.Point2D p1,
                                    java.awt.geom.Point2D p2)
        Returns the 2 points, in the shape's coordinate system, which define the gradient.
        Overrides:
        getGradientAxis in class RMGradientFill
      • getPaint

        public java.awt.Paint getPaint​(float startx,
                                       float starty,
                                       float endx,
                                       float endy)
        Returns a java.awt.Paint instance to draw this gradient.
        Overrides:
        getPaint in class RMGradientFill
      • equals

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

        public java.lang.String getName()
        Returns the name of the fill (Returns superclass name so the pop-up doesn't get confused).
        Overrides:
        getName in class RMFill