public class RMGradientFill extends RMFill
Constructor and Description |
---|
RMGradientFill()
Creates an unitialized graident fill.
|
RMGradientFill(RMColor aColor1,
RMColor aColor2,
float aRotation)
Creates a gradient fill from the given start color to the given end color with the given roll.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object anObj)
Standard equals implementation.
|
java.lang.Object |
fromXML(RXArchiver anArchiver,
RXElement anElement)
XML unarchival.
|
RMColor |
getColor2()
Returns the gradients end color.
|
RMColor |
getEndColor()
Returns the gradients end color (obsolete).
|
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.
|
java.awt.geom.Rectangle2D |
getGradientBounds(java.awt.Shape aShape)
Returns the gradient bounds for a given shape which is the bounds required to encompass the entire shape in the
coordinates of the gradient rotation (effectively the bounds of the shape rotated by opposite gradient rotation).
|
float |
getRoll()
Returns the gradients rotation.
|
java.lang.Object |
initWithArchiver(RMArchiver anArchiver)
Legacy unarchival.
|
void |
paintShape(RMShape aShape,
RMPath aPath,
java.awt.Graphics2D g,
RMShapePainter sp)
Render this fill in a Java2D Graphics2D.
|
RXElement |
toXML(RXArchiver anArchiver)
XML archival.
|
deriveFill, getBounds, getChild, getChildCount, getColor, setColor
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, undoClone, undoCopy, undoEquals
public RMColor getColor2()
public RMColor getEndColor()
public float getRoll()
public java.awt.geom.Rectangle2D getGradientBounds(java.awt.Shape aShape)
public void getGradientAxis(RMShape aShape, RMPath aPath, java.awt.geom.Point2D p1, java.awt.geom.Point2D p2)
public void paintShape(RMShape aShape, RMPath aPath, java.awt.Graphics2D g, RMShapePainter sp)
paintShape
in class RMFill
public boolean equals(java.lang.Object anObj)
public RXElement toXML(RXArchiver anArchiver)
public java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement)
public java.lang.Object initWithArchiver(RMArchiver anArchiver)
initWithArchiver
in interface RMArchiver.Archiving
initWithArchiver
in class RMFill