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,- java.lang.Cloneable
 
 public class RMImageFill extends RMFill This class is used to fill a shape's path with an image.
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringATTRIBUTE_ROLLstatic java.lang.StringATTRIBUTE_SCALE_Xstatic java.lang.StringATTRIBUTE_SCALE_Ystatic java.lang.StringATTRIBUTE_TILEDstatic java.lang.StringATTRIBUTE_Xstatic java.lang.StringATTRIBUTE_Y
 - 
Constructor SummaryConstructors Constructor Description RMImageFill()Creates a plain image fill.RMImageFill(java.lang.Object aSource)Creates an image fill from an image source.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description RMImageFillderiveFill(RMImageData anImageData)Creates a new image fill from this fill, but with a new image.RMImageFillderiveFill(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.booleanequals(java.lang.Object anObj)Standard equals implementation.java.lang.ObjectfromXML(RXArchiver anArchiver, RXElement anElement)XML unarchival.RMImageDatagetImageData()Returns the image data associated with this image fill.doublegetImageHeight()Returns the actual display height of the image in printer's points using the image DPI if available.doublegetImageWidth()Returns 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.doublegetScaleX()Returns the scale x of the image fill image.doublegetScaleY()Returns the scale y of the image fill image.java.lang.StringgetType()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.RXElementtoXML(RXArchiver anArchiver)XML archival.- 
Methods inherited from class com.inductiveautomation.rm.graphics.RMFillclone, deriveFill, getBounds, getColor, getName, hasAlpha, readAttributes, setColor, toString
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
 
- 
 
- 
- 
- 
Field Detail- 
ATTRIBUTE_TILEDpublic static final java.lang.String ATTRIBUTE_TILED - See Also:
- Constant Field Values
 
 - 
ATTRIBUTE_Xpublic static final java.lang.String ATTRIBUTE_X - See Also:
- Constant Field Values
 
 - 
ATTRIBUTE_Ypublic static final java.lang.String ATTRIBUTE_Y - See Also:
- Constant Field Values
 
 - 
ATTRIBUTE_ROLLpublic static final java.lang.String ATTRIBUTE_ROLL - See Also:
- Constant Field Values
 
 - 
ATTRIBUTE_SCALE_Xpublic static final java.lang.String ATTRIBUTE_SCALE_X - See Also:
- Constant Field Values
 
 - 
ATTRIBUTE_SCALE_Ypublic static final java.lang.String ATTRIBUTE_SCALE_Y - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getImageDatapublic RMImageData getImageData() Returns the image data associated with this image fill.
 - 
isTiledpublic boolean isTiled() Returns whether to tile fill image.
 - 
setTiledpublic void setTiled(boolean aValue) Sets whether to tile fill image.
 - 
getXpublic double getX() Returns the X location (offset) of the image fill image.
 - 
getYpublic double getY() Returns the Y location (offset) of the image fill image.
 - 
getRollpublic double getRoll() Returns the rotation of the image fill image.
 - 
getScaleXpublic double getScaleX() Returns the scale x of the image fill image.
 - 
getScaleYpublic double getScaleY() Returns the scale y of the image fill image.
 - 
deriveFillpublic RMImageFill deriveFill(RMImageData anImageData) Creates a new image fill from this fill, but with a new image.
 - 
deriveFillpublic 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.
 - 
getTypepublic java.lang.String getType() Returns the type of the image for this image fill (gif, jpg, png, etc.).
 - 
getImageWidthpublic double getImageWidth() Returns the actual display width of the image in printer's points using the image DPI if available.
 - 
getImageHeightpublic double getImageHeight() Returns the actual display height of the image in printer's points using the image DPI if available.
 - 
paintpublic void paint(RMShapePainter aPntr, RMShape aShape) Render this fill in a shape painter.
 - 
equalspublic boolean equals(java.lang.Object anObj) Standard equals implementation.
 - 
toXMLpublic RXElement toXML(RXArchiver anArchiver) XML archival.- Specified by:
- toXMLin interface- Archivable
- Overrides:
- toXMLin class- RMFill
 
 - 
fromXMLpublic java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.- Specified by:
- fromXMLin interface- Archivable
- Overrides:
- fromXMLin class- RMFill
 
 
- 
 
-