Package com.inductiveautomation.rm.shape
Class RMImageShape
- java.lang.Object
- 
- com.inductiveautomation.rm.base.RMListenerList
- 
- com.inductiveautomation.rm.base.RMObject
- 
- com.inductiveautomation.rm.shape.RMShape
- 
- com.inductiveautomation.rm.shape.RMRectShape
- 
- com.inductiveautomation.rm.shape.RMImageShape
 
 
 
 
 
- 
- All Implemented Interfaces:
- Archivable,- DeepChangeListener,- RMPropertyChanger,- RMTypes,- java.beans.PropertyChangeListener,- java.lang.Cloneable,- java.util.EventListener
 
 public class RMImageShape extends RMRectShape This class is a shape representation of an image.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypesRMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
 
- 
 - 
Field Summary- 
Fields inherited from class com.inductiveautomation.rm.shape.RMShapeBINDING_PROP_NAME, STROKE_BORDER, STROKE_DOUBLE, STROKE_HIDDEN, STROKE_SHAPE
 
- 
 - 
Constructor SummaryConstructors Constructor Description RMImageShape()Creates an RMImageShape.RMImageShape(java.lang.Object aSource)Creates an RMImageShape from the image source provided.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecomputePrefHeight(double aWidth)Returns the preferred height.doublecomputePrefWidth(double aHeight)Returns the preferred width.java.lang.ObjectfromXML(RXArchiver anArchiver, RXElement anElement)XML unarchival.RMTypes.AlignXgetAlignmentX()Returns the horizontal alignment.RMTypes.AlignYgetAlignmentY()Returns the vertical alignment.java.awt.geom.Rectangle2DgetImageBounds()Returns the image bounds.RMImageDatagetImageData()Returns the image data.java.lang.StringgetKey()Returns the report key used to load an image if none is provided.intgetPadding()Returns the padding.intgetPageIndex()Returns the page index.booleangetPreserveRatio()Returns whether to preserve the natural width to height ratio of image.protected voidgetPropertyNames(java.util.List<java.lang.String> aList)Returns the property names for RMShape.booleanisGrowToFit()Returns whether to grow image to fit available area if shape larger than image.voidpaintShape(RMShapePainter aPntr)Override to paint shape.RMShaperpgShape(ReportOwner aRptOwner, RMShape aParent)Report generation method.voidsetAlignmentX(RMTypes.AlignX anAlignX)Sets the horizontal alignment.voidsetAlignmentY(RMTypes.AlignY anAlignY)Sets the vertical alignment.voidsetGrowToFit(boolean aValue)Sets whether to grow image to fit available area if shape larger than image.voidsetImageData(RMImageData anImageData)Sets the image data.voidsetImageData(java.lang.Object aSource)Sets the image data from given source.voidsetKey(java.lang.String aString)Sets the report key used to load an image if none is provided.voidsetPadding(int aPadding)Sets the padding.voidsetPageIndex(int anIndex)Sets the page index.voidsetPreserveRatio(boolean aValue)Sets whether to preserve the natural width to height ratio of image.RXElementtoXML(RXArchiver anArchiver)XML archival.- 
Methods inherited from class com.inductiveautomation.rm.shape.RMRectShapegetPath, getRadius, setRadius
 - 
Methods inherited from class com.inductiveautomation.rm.shape.RMShapeacceptsChildren, acceptsMouse, addBinding, addBinding, addDeepChangeListener, addMouseListener, animUpdate, bounds, childrenSuperSelectImmediately, clone, cloneDeep, contains, convertedPointFromShape, convertedPointToShape, convertedRectFromShape, convertedRectToShape, convertedVectorFromShape, convertedVectorToShape, convertFromShape, convertPathFromShape, convertPathToShape, convertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, convertToShape, convertVectorFromShape, convertVectorToShape, copyShape, createDivideShapeRemainder, deepChange, divideShapeFromEdge, divideShapeFromTop, get, get, getAlignment, getAncestor, getAncestorCount, getAncestorInCommon, getAnimator, getAnimator, getAutosizing, getAutosizingDefault, getBestHeight, getBestHeight, getBestWidth, getBestWidth, getBinding, getBinding, getBindingCount, getBindings, getBounds, getBoundsInside, getBoundsMarked, getBoundsMarkedDeep, getChild, getChildAnimator, getChildAnimator, getChildClipShape, getChildCount, getChildren, getClipShape, getColor, getDashArrayString, getDashPhase, getDatasetEntity, getDatasetKey, getDisplayedFill, getDisplayedStroke, getDocument, getEffect, getEventAdapter, getFill, getFont, getFormat, getFrame, getFrameHeight, getFrameMaxX, getFrameMaxY, getFrameWidth, getFrameX, getFrameXY, getFrameY, getHeight, getHover, getLayoutInfo, getMaskPath, getMaxX, getMaxY, getMinHeight, getMinHeight, getMinWidth, getMinWidth, getName, getOpacity, getOpacityDeep, getOutline, getPageBreak, getPageBreakMax, getPageBreakPage, getPageBreakPageMax, getPageShape, getParent, getParent, getPathInBounds, getPrefHeight, getPrefHeight, getPrefWidth, getPrefWidth, getPropertyNameMapped, getPropertyNames, getRoll, getRootShape, getRSS, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSkewX, getSkewY, getStroke, getStrokeColor, getStrokeOnTop, getStrokeStyle, getStrokeWidth, getTextColor, getTimeline, getTimeline, getTransform, getTransformFromShape, getTransformInverse, getTransformToShape, getUndoer, getURL, getVisbileBounds, getVisibleBounds, getVisibleBounds, getVisibleBounds, getWidth, getX, getXY, getXYP, getY, height, indexOf, intersects, isAncestor, isAnimProperty, isDeletable, isDescendant, isEditing, isEnabled, isFontSet, isHittable, isLocked, isMinHeightSet, isMinWidthSet, isPrefHeightSet, isPrefWidthSet, isRoot, isRSS, isShowing, isUnderlined, isUseFill, isUseStroke, isViewing, isVisible, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, offsetXY, page, pageMax, paint, paintShapeAll, paintShapeChildren, paintShapeOver, propertyChange, put, removeBinding, removeBinding, removeDeepChangeListener, removeFromParent, removeMouseListener, repaint, repaint, resolvePageReferences, rpgAll, rpgBindings, setAlignment, setAutosizing, setBestHeight, setBestSize, setBounds, setBounds, setColor, setDashArrayString, setDashPhase, setEffect, setEnabled, setFill, setFont, setFormat, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHeight, setHover, setLayoutInfo, setLocked, setMinHeight, setMinSize, setMinWidth, setName, setOpacity, setOutline, setParent, setPrefHeight, setPrefWidth, setRoll, setScaleX, setScaleXY, setScaleY, setShowing, setSize, setSize, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setStrokeStyle, setStrokeWidth, setTextColor, setTime, setTimeline, setUnderlined, setURL, setUseFill, setUseStroke, setVisible, setWidth, setX, setXY, setXY, setXYP, setY, shapeHidden, shapeShown, superSelectable, toString, undoerDisable, undoerEnable, undoerSetUndoTitle, width, x, y
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
 
- 
 
- 
- 
- 
Method Detail- 
getKeypublic java.lang.String getKey() Returns the report key used to load an image if none is provided.
 - 
setKeypublic void setKey(java.lang.String aString) Sets the report key used to load an image if none is provided.
 - 
getImageDatapublic RMImageData getImageData() Returns the image data.
 - 
setImageDatapublic void setImageData(RMImageData anImageData) Sets the image data.
 - 
setImageDatapublic void setImageData(java.lang.Object aSource) Sets the image data from given source.
 - 
getPageIndexpublic int getPageIndex() Returns the page index.
 - 
setPageIndexpublic void setPageIndex(int anIndex) Sets the page index.
 - 
getPaddingpublic int getPadding() Returns the padding.
 - 
setPaddingpublic void setPadding(int aPadding) Sets the padding.
 - 
getAlignmentXpublic RMTypes.AlignX getAlignmentX() Returns the horizontal alignment.- Overrides:
- getAlignmentXin class- RMShape
 
 - 
setAlignmentXpublic void setAlignmentX(RMTypes.AlignX anAlignX) Sets the horizontal alignment.- Overrides:
- setAlignmentXin class- RMShape
 
 - 
getAlignmentYpublic RMTypes.AlignY getAlignmentY() Returns the vertical alignment.- Overrides:
- getAlignmentYin class- RMShape
 
 - 
setAlignmentYpublic void setAlignmentY(RMTypes.AlignY anAlignY) Sets the vertical alignment.- Overrides:
- setAlignmentYin class- RMShape
 
 - 
isGrowToFitpublic boolean isGrowToFit() Returns whether to grow image to fit available area if shape larger than image.
 - 
setGrowToFitpublic void setGrowToFit(boolean aValue) Sets whether to grow image to fit available area if shape larger than image.
 - 
getPreserveRatiopublic boolean getPreserveRatio() Returns whether to preserve the natural width to height ratio of image.
 - 
setPreserveRatiopublic void setPreserveRatio(boolean aValue) Sets whether to preserve the natural width to height ratio of image.
 - 
computePrefWidthpublic double computePrefWidth(double aHeight) Returns the preferred width.- Overrides:
- computePrefWidthin class- RMShape
 
 - 
computePrefHeightpublic double computePrefHeight(double aWidth) Returns the preferred height.- Overrides:
- computePrefHeightin class- RMShape
 
 - 
getPropertyNamesprotected void getPropertyNames(java.util.List<java.lang.String> aList) Returns the property names for RMShape.- Overrides:
- getPropertyNamesin class- RMShape
 
 - 
rpgShape@Nonnull public RMShape rpgShape(ReportOwner aRptOwner, RMShape aParent) Report generation method.
 - 
paintShapepublic void paintShape(RMShapePainter aPntr) Override to paint shape.- Overrides:
- paintShapein class- RMShape
 
 - 
getImageBoundspublic java.awt.geom.Rectangle2D getImageBounds() Returns the image bounds.
 - 
toXMLpublic RXElement toXML(RXArchiver anArchiver) XML archival.- Specified by:
- toXMLin interface- Archivable
- Overrides:
- toXMLin class- RMRectShape
 
 - 
fromXMLpublic java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.- Specified by:
- fromXMLin interface- Archivable
- Overrides:
- fromXMLin class- RMRectShape
 
 
- 
 
-