public class RMImageFill extends RMFill
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTRIBUTE_SCALE_X |
static java.lang.String |
ATTRIBUTE_SCALE_Y |
static java.lang.String |
ATTRIBUTE_TILED |
static java.lang.String |
ATTRIBUTE_X |
static java.lang.String |
ATTRIBUTE_Y |
Constructor and Description |
---|
RMImageFill()
Creates a plain image fill.
|
RMImageFill(java.lang.Object aSource)
Creates an image fill from an image source.
|
RMImageFill(java.lang.Object aSource,
boolean isTiled)
Creates an image fill from an image source with an option to tile.
|
Modifier and Type | Method and Description |
---|---|
RMImageFill |
deriveFill(RMImageData anImageData)
Creates a new image fill from this fill, but with a new image.
|
RMImageFill |
deriveFill(java.lang.String aName,
java.lang.Number aValue)
Creates a new image fill identical to this image fill, but with new value for given attribute.
|
boolean |
equals(java.lang.Object anObj)
Standard equals implementation.
|
java.lang.Object |
fromXML(XMLArchiver anArchiver,
XMLElement anElement)
XML unarchival.
|
RMImageData |
getImageData()
Returns the image data associated with this image fill.
|
double |
getImageHeight()
Returns the actual display height of the image in printer's points using the image DPI if available.
|
double |
getImageWidth()
Returns the actual display width of the image in printer's points using the image DPI if available.
|
double |
getScaleX()
Returns the scale x of the image fill image.
|
double |
getScaleY()
Returns the scale y of the image fill image.
|
java.lang.String |
getType()
Returns the type of the image for this image fill (gif, jpg, png, etc.).
|
double |
getX()
Returns the X location (offset) of the image fill image.
|
double |
getY()
Returns the Y location (offset) of the image fill image.
|
boolean |
isTiled()
Returns whether to tile fill image.
|
void |
paint(RMShapePainter aPntr,
RMShape aShape)
Render this fill in a shape painter.
|
XMLElement |
toXML(XMLArchiver anArchiver)
XML archival.
|
public static final java.lang.String ATTRIBUTE_TILED
public static final java.lang.String ATTRIBUTE_X
public static final java.lang.String ATTRIBUTE_Y
public static final java.lang.String ATTRIBUTE_SCALE_X
public static final java.lang.String ATTRIBUTE_SCALE_Y
public RMImageFill()
public RMImageFill(java.lang.Object aSource)
public RMImageFill(java.lang.Object aSource, boolean isTiled)
public RMImageData getImageData()
public boolean isTiled()
public double getX()
public double getY()
public double getScaleX()
public double getScaleY()
public RMImageFill deriveFill(RMImageData anImageData)
public RMImageFill deriveFill(java.lang.String aName, java.lang.Number aValue)
public java.lang.String getType()
public double getImageWidth()
public double getImageHeight()
public void paint(RMShapePainter aPntr, RMShape aShape)
public boolean equals(java.lang.Object anObj)
public XMLElement toXML(XMLArchiver anArchiver)