ReportMill 7.0 API

com.reportmill.graphics
Class RMGradientFill

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

public class RMGradientFill
extends RMImageFill


Field Summary
 
Fields inherited from class com.reportmill.graphics.RMImageFill
STYLE_FIT, STYLE_FIT_IFNEEDED, STYLE_STRETCH, STYLE_TILE
 
Constructor Summary
RMGradientFill()
           
RMGradientFill(RMColor startColor, RMColor endColor)
           
RMGradientFill(RMColor startColor, RMColor endColor, float roll)
           
 
Method Summary
 RMColor endColor()
           
 boolean equals(java.lang.Object obj)
          Standard equals implementation.
 java.lang.Object fromXML(com.ribs.RXArchiver anArchiver, com.ribs.RXElement anElement)
          XML unarchival.
 float getRoll()
           
 java.lang.Object initWithArchiver(com.reportmill.foundation.RMArchiver anArchiver)
          Legacy unarchival.
static java.awt.image.BufferedImage newBufferedImage(int width, int height, boolean hasAlpha)
           
 void setGradient(RMColor startColor, RMColor endColor, float roll)
           
 com.ribs.RXElement toXML(com.ribs.RXArchiver anArchiver)
          XML archival.
 
Methods inherited from class com.reportmill.graphics.RMImageFill
awt, deriveFill, deriveFill, getFillStyle, getImageBounds, getImageBounds, getImageData, getImageMargins, getImageShape, getImageSize, getPageNumber, getType, paintPath, setFillStyle, setImageData, setImageMargins, setPageNumber
 
Methods inherited from class com.reportmill.graphics.RMFill
getColor, plain, setColor
 
Methods inherited from class com.reportmill.foundation.RMObject
archiverClassName, 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()

RMGradientFill

public RMGradientFill(RMColor startColor,
                      RMColor endColor)

RMGradientFill

public RMGradientFill(RMColor startColor,
                      RMColor endColor,
                      float roll)
Method Detail

endColor

public RMColor endColor()

getRoll

public float getRoll()

setGradient

public void setGradient(RMColor startColor,
                        RMColor endColor,
                        float roll)

newBufferedImage

public static java.awt.image.BufferedImage newBufferedImage(int width,
                                                            int height,
                                                            boolean hasAlpha)

equals

public boolean equals(java.lang.Object obj)
Description copied from class: RMImageFill
Standard equals implementation.

Overrides:
equals in class RMImageFill

initWithArchiver

public java.lang.Object initWithArchiver(com.reportmill.foundation.RMArchiver anArchiver)
Description copied from class: RMImageFill
Legacy unarchival.

Specified by:
initWithArchiver in interface com.reportmill.foundation.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 7.0 API