public class RMImageFill extends RMFill
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 and is tiled parameter.
|
Modifier and Type | Method and Description |
---|---|
RMImageFill |
copyFor(double aX,
double aY,
double aW,
double aH,
boolean isAbs)
Creates a new image fill for rect and absolute flag.
|
RMImageFill |
copyFor(Rect aRect,
boolean isAbs)
Creates a new image fill for rect and absolute flag.
|
RMImageFill |
copyForScale(double aScaleX,
double aScaleY)
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.
|
double |
getHeight()
Returns the height of the image fill image.
|
Image |
getImage()
Returns the image data associated with this image fill.
|
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.
|
double |
getWidth()
Returns the width of the image fill image.
|
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 |
isAbsolute()
Returns whether paint is defined in terms independent of primitive to be filled.
|
boolean |
isTiled()
Returns whether to tile fill image.
|
Paint |
snap()
Returns the snap version of this fill.
|
XMLElement |
toXML(XMLArchiver anArchiver)
XML archival.
|
clone, copyForColor, deriveFill, getColor, getName, toString
public RMImageFill()
public RMImageFill(java.lang.Object aSource)
public RMImageFill(java.lang.Object aSource, boolean isTiled)
public Image getImage()
public RMImageData getImageData()
public double getImageWidth()
public double getImageHeight()
public double getX()
public double getY()
public double getWidth()
public double getHeight()
public double getScaleX()
public double getScaleY()
public boolean isTiled()
public boolean isAbsolute()
public RMImageFill copyFor(Rect aRect, boolean isAbs)
public RMImageFill copyFor(double aX, double aY, double aW, double aH, boolean isAbs)
public RMImageFill copyForScale(double aScaleX, double aScaleY)
public boolean equals(java.lang.Object anObj)
public XMLElement toXML(XMLArchiver anArchiver)