ReportMill 8.0 API

com.reportmill.graphics
Class RMFill

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

public class RMFill
extends com.reportmill.base.RMObject

This class represents a simple shape fill, drawing a given color in a provided path. Subclasses support things like gradients, textures, drop-shadow, etc.


Field Summary
static RMFill DEFAULT
           
 
Constructor Summary
RMFill()
          Creates a plain, black fill.
RMFill(RMColor aColor)
          Creates a plain fill with the given color.
 
Method Summary
 RMFill deriveFill(RMColor aColor)
          Returns a fill just like the receiver, but with the given color (only interesting for subsclasses).
 boolean equals(java.lang.Object anObj)
          Standard equals implementation.
 java.lang.Object fromXML(com.ribs.RXArchiver anArchiver, com.ribs.RXElement anElement)
          XML unarchival.
 RMRect getBounds(RMShape aShape, RMRect pathBounds)
          Returns the bounds required to render this fill for this shape.
 RMColor getColor()
          Returns the color associated with this fill.
 java.lang.Object initWithArchiver(com.reportmill.base.RMArchiver anArchiver)
          Legacy unarchival.
 void paintShape(RMShape aShape, java.awt.geom.GeneralPath aPath, java.awt.Graphics2D g2, com.reportmill.shape.RMShapePainter sp)
          Render this fill in a Java2D Graphics2D.
 void setColor(RMColor aColor)
          Sets the color associated with this fill.
 com.ribs.RXElement toXML(com.ribs.RXArchiver anArchiver)
          XML archival.
 
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
 

Field Detail

DEFAULT

public static final RMFill DEFAULT
Constructor Detail

RMFill

public RMFill()
Creates a plain, black fill.


RMFill

public RMFill(RMColor aColor)
Creates a plain fill with the given color.

Method Detail

getColor

public RMColor getColor()
Returns the color associated with this fill.


setColor

public void setColor(RMColor aColor)
Sets the color associated with this fill.


getBounds

public RMRect getBounds(RMShape aShape,
                        RMRect pathBounds)
Returns the bounds required to render this fill for this shape.


deriveFill

public RMFill deriveFill(RMColor aColor)
Returns a fill just like the receiver, but with the given color (only interesting for subsclasses).


paintShape

public void paintShape(RMShape aShape,
                       java.awt.geom.GeneralPath aPath,
                       java.awt.Graphics2D g2,
                       com.reportmill.shape.RMShapePainter sp)
Render this fill in a Java2D Graphics2D.


equals

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


initWithArchiver

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


toXML

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


fromXML

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


ReportMill 8.0 API