Class RMImageFill
java.lang.Object
com.inductiveautomation.rm.base.RMListenerList
com.inductiveautomation.rm.base.RMObject
com.inductiveautomation.rm.graphics.RMFill
com.inductiveautomation.rm.graphics.RMImageFill
- All Implemented Interfaces:
Archivable,RMPropertyChanger,Cloneable
This class is used to fill a shape's path with an image.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a plain image fill.RMImageFill(Object aSource) Creates an image fill from an image source. -
Method Summary
Modifier and TypeMethodDescriptionderiveFill(RMImageData anImageData) Creates a new image fill from this fill, but with a new image.deriveFill(String aName, Number aValue) Creates a new image fill identical to this image fill, but with new value for given attribute.booleanStandard equals implementation.fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.Returns the image data associated with this image fill.doubleReturns the actual display height of the image in printer's points using the image DPI if available.doubleReturns the actual display width of the image in printer's points using the image DPI if available.doublegetRoll()Returns the rotation of the image fill image.doubleReturns the scale x of the image fill image.doubleReturns the scale y of the image fill image.getType()Returns the type of the image for this image fill (gif, jpg, png, etc.).doublegetX()Returns the X location (offset) of the image fill image.doublegetY()Returns the Y location (offset) of the image fill image.booleanisTiled()Returns whether to tile fill image.voidpaint(RMShapePainter aPntr, RMShape aShape) Render this fill in a shape painter.voidsetTiled(boolean aValue) Sets whether to tile fill image.toXML(RXArchiver anArchiver) XML archival.Methods inherited from class com.inductiveautomation.rm.graphics.RMFill
clone, deriveFill, getBounds, getColor, getName, hasAlpha, readAttributes, setColor, toStringMethods inherited from class com.inductiveautomation.rm.base.RMObject
addPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChangeMethods inherited from class com.inductiveautomation.rm.base.RMListenerList
addListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
-
Field Details
-
ATTRIBUTE_TILED
- See Also:
-
ATTRIBUTE_X
- See Also:
-
ATTRIBUTE_Y
- See Also:
-
ATTRIBUTE_ROLL
- See Also:
-
ATTRIBUTE_SCALE_X
- See Also:
-
ATTRIBUTE_SCALE_Y
- See Also:
-
-
Constructor Details
-
RMImageFill
public RMImageFill()Creates a plain image fill. -
RMImageFill
Creates an image fill from an image source.
-
-
Method Details
-
getImageData
Returns the image data associated with this image fill. -
isTiled
public boolean isTiled()Returns whether to tile fill image. -
setTiled
public void setTiled(boolean aValue) Sets whether to tile fill image. -
getX
public double getX()Returns the X location (offset) of the image fill image. -
getY
public double getY()Returns the Y location (offset) of the image fill image. -
getRoll
public double getRoll()Returns the rotation of the image fill image. -
getScaleX
public double getScaleX()Returns the scale x of the image fill image. -
getScaleY
public double getScaleY()Returns the scale y of the image fill image. -
deriveFill
Creates a new image fill from this fill, but with a new image. -
deriveFill
Creates a new image fill identical to this image fill, but with new value for given attribute. -
getType
Returns the type of the image for this image fill (gif, jpg, png, etc.). -
getImageWidth
public double getImageWidth()Returns the actual display width of the image in printer's points using the image DPI if available. -
getImageHeight
public double getImageHeight()Returns the actual display height of the image in printer's points using the image DPI if available. -
paint
Render this fill in a shape painter. -
equals
Standard equals implementation. -
toXML
XML archival.- Specified by:
toXMLin interfaceArchivable- Overrides:
toXMLin classRMFill
-
fromXML
XML unarchival.- Specified by:
fromXMLin interfaceArchivable- Overrides:
fromXMLin classRMFill
-