ReportMill 8.0 API

com.reportmill.graphics
Class RMGradientFill

java.lang.Object
  extended bycom.reportmill.base.RMObject
      extended bycom.reportmill.graphics.RMFill
          extended bycom.reportmill.graphics.RMImageFill
              extended bycom.reportmill.graphics.RMGradientFill
All Implemented Interfaces:
java.lang.Cloneable, com.reportmill.base.RMArchiver.Archiving

public class RMGradientFill
extends RMImageFill

This class represents a fill that draws a gradient of colors from the basic fill color to the end color.


Field Summary
 
Fields inherited from class com.reportmill.graphics.RMImageFill
ATTRIBUTE_FILL_STYLE, ATTRIBUTE_ROLL, ATTRIBUTE_SCALE_X, ATTRIBUTE_SCALE_Y, ATTRIBUTE_X, ATTRIBUTE_Y, STYLE_FIT, STYLE_FIT_IFNEEDED, STYLE_STRETCH, STYLE_TILE
 
Fields inherited from class com.reportmill.graphics.RMFill
DEFAULT
 
Constructor Summary
RMGradientFill()
          Creates an unitialized graident fill.
RMGradientFill(RMColor startColor, RMColor endColor, float roll)
          Creates a gradient fill from the given start color to the given end color with the given roll.
 
Method Summary
 boolean equals(java.lang.Object anObj)
          Standard equals implementation.
 java.lang.Object fromXML(com.ribs.RXArchiver anArchiver, com.ribs.RXElement anElement)
          XML unarchival.
 RMColor getEndColor()
          Returns the gradients end color.
 float getRoll()
          Returns the gradients rotation.
 java.lang.Object initWithArchiver(com.reportmill.base.RMArchiver anArchiver)
          Legacy unarchival.
 com.ribs.RXElement toXML(com.ribs.RXArchiver anArchiver)
          XML archival.
 
Methods inherited from class com.reportmill.graphics.RMImageFill
awt, deriveFill, deriveFill, deriveFill, getFillStyle, getImageBounds, getImageBounds, getImageData, getImageMargins, getImageShape, getImageSize2D, getPageNumber, getScaleX, getScaleY, getType, getX, getY, paintShape, setFillStyle, setImageData, setImageMargins, setPageNumber, shouldClipToPath
 
Methods inherited from class com.reportmill.graphics.RMFill
getBounds, getColor, setColor
 
Methods inherited from class com.reportmill.base.RMObject
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, undoClone, undoCopy, undoEquals
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RMGradientFill

public RMGradientFill()
Creates an unitialized graident fill.


RMGradientFill

public RMGradientFill(RMColor startColor,
                      RMColor endColor,
                      float roll)
Creates a gradient fill from the given start color to the given end color with the given roll.

Method Detail

getEndColor

public RMColor getEndColor()
Returns the gradients end color.


getRoll

public float getRoll()
Returns the gradients rotation.

Overrides:
getRoll in class RMImageFill

equals

public boolean equals(java.lang.Object anObj)
Standard equals implementation.

Overrides:
equals in class RMImageFill

initWithArchiver

public java.lang.Object initWithArchiver(com.reportmill.base.RMArchiver anArchiver)
Legacy unarchival.

Specified by:
initWithArchiver in interface com.reportmill.base.RMArchiver.Archiving
Overrides:
initWithArchiver in class RMImageFill

toXML

public com.ribs.RXElement toXML(com.ribs.RXArchiver anArchiver)
XML archival.

Overrides:
toXML in class RMImageFill

fromXML

public java.lang.Object fromXML(com.ribs.RXArchiver anArchiver,
                                com.ribs.RXElement anElement)
XML unarchival.

Overrides:
fromXML in class RMImageFill

ReportMill 8.0 API