Class RMViewerShape
java.lang.Object
com.inductiveautomation.rm.base.RMListenerList
com.inductiveautomation.rm.base.RMObject
com.inductiveautomation.rm.shape.RMShape
com.inductiveautomation.rm.shape.RMParentShape
com.inductiveautomation.rm.viewer.RMViewerShape
- All Implemented Interfaces:
Archivable,DeepChangeListener,RMPropertyChanger,RMTypes,PropertyChangeListener,Cloneable,EventListener
- Direct Known Subclasses:
RMEditorShape
A shape to act as root of shape to be viewed.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypes
RMTypes.Align, RMTypes.AlignX, RMTypes.AlignY -
Field Summary
Fields inherited from class com.inductiveautomation.rm.shape.RMShape
BINDING_PROP_NAME, STROKE_BORDER, STROKE_DOUBLE, STROKE_HIDDEN, STROKE_SHAPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected doublecomputePrefHeight(double aWidth) Override to return content preferred height.protected doublecomputePrefWidth(double aHeight) Override to return content preferred width.Return child animator.Returns the root shape that is being viewed in viewer.<T extends RMParentShape>
TgetContent(Class<T> aClass) Returns the root shape that is being viewed in viewer as a specific class.byte[]Returns the content bytes.Returns RXElement for content shape.Returns the root shape as RMDocument, if available.getPage(int anIndex) Returns the page at index.intReturns the page count.Returns the currently selected page shape.intReturns the index of the current visible document page.Returns the SourceURL.Returns the viewer.booleanReturns whether this shape is being edited in an editor.booleanReturns whether this shape is being viewed in a viewer.protected voidThis is bogus, but we want to make sure that ViewerShape is always the same size as the content.voidpaint(RMShapePainter aPntr) Override to set Painting flag.protected voidThis is a notification call for impending visual shape attribute changes.voidsetContent(RMParentShape aShape) Sets the root shape that is being viewed in viewer.voidsetSelectedPageIndex(int anIndex) Sets the page of viewer's document that is visible (by index).voidsetSourceURL(WebURL aURL) Sets the SourceURL.Methods inherited from class com.inductiveautomation.rm.shape.RMParentShape
addChild, addChild, addChild, addChild, addLayoutChild, bringShapesToFront, clone, cloneDeep, divideShapeFromTop, fromXML, fromXMLChildren, fromXMLShape, getBoundsOfChildren, getChild, getChildArray, getChildContaining, getChildCount, getChildLast, getChildren, getChildrenIntersecting, getChildrenWithClass, getChildrenWithClass, getChildWithClass, getChildWithName, getLayout, getNeedsLayout, indexOfChild, isHittable, isShowing, isSourceURLSet, layout, relayout, removeChild, removeChild, removeChildren, removeLayoutChild, rpgAll, rpgChildren, sendShapesToBack, setHeight, setLayout, setNeedsLayout, setWidth, toXML, toXMLChildren, toXMLShapeMethods inherited from class com.inductiveautomation.rm.shape.RMShape
acceptsChildren, acceptsMouse, addBinding, addBinding, addDeepChangeListener, addMouseListener, animUpdate, bounds, childrenSuperSelectImmediately, contains, convertedPointFromShape, convertedPointToShape, convertedRectFromShape, convertedRectToShape, convertedVectorFromShape, convertedVectorToShape, convertFromShape, convertPathFromShape, convertPathToShape, convertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, convertToShape, convertVectorFromShape, convertVectorToShape, copyShape, createDivideShapeRemainder, deepChange, divideShapeFromEdge, get, get, getAlignment, getAlignmentX, getAlignmentY, getAncestor, getAncestorCount, getAncestorInCommon, getAnimator, getAnimator, getAutosizing, getAutosizingDefault, getBestHeight, getBestHeight, getBestWidth, getBestWidth, getBinding, getBinding, getBindingCount, getBindings, getBounds, getBoundsInside, getBoundsMarked, getBoundsMarkedDeep, getChildAnimator, getChildClipShape, getClipShape, getColor, getDashArrayString, getDashPhase, getDatasetEntity, getDatasetKey, getDisplayedFill, getDisplayedStroke, 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, getPath, getPathInBounds, getPrefHeight, getPrefHeight, getPrefWidth, getPrefWidth, getPropertyNameMapped, getPropertyNames, 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, isEnabled, isFontSet, isHittable, isLocked, isMinHeightSet, isMinWidthSet, isPrefHeightSet, isPrefWidthSet, isRoot, isRSS, isShowing, isUnderlined, isUseFill, isUseStroke, isVisible, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, offsetXY, page, pageMax, paintShape, paintShapeAll, paintShapeChildren, paintShapeOver, propertyChange, put, removeBinding, removeBinding, removeDeepChangeListener, removeFromParent, removeMouseListener, repaint, resolvePageReferences, rpgBindings, rpgShape, setAlignment, setAlignmentX, setAlignmentY, setAutosizing, setBestHeight, setBestSize, setBounds, setBounds, setColor, setDashArrayString, setDashPhase, setEffect, setEnabled, setFill, setFont, setFormat, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, 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, setX, setXY, setXY, setXYP, setY, shapeHidden, shapeShown, superSelectable, toString, undoerDisable, undoerEnable, undoerSetUndoTitle, width, x, yMethods inherited from class com.inductiveautomation.rm.base.RMObject
addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChangeMethods inherited from class com.inductiveautomation.rm.base.RMListenerList
addListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
-
Constructor Details
-
RMViewerShape
Creates a new ViewerShape.
-
-
Method Details
-
getViewer
Returns the viewer. -
getContent
Returns the root shape that is being viewed in viewer. -
setContent
Sets the root shape that is being viewed in viewer. -
getContent
Returns the root shape that is being viewed in viewer as a specific class. -
getDocument
Returns the root shape as RMDocument, if available.- Overrides:
getDocumentin classRMShape
-
getPageCount
public int getPageCount()Returns the page count. -
getPage
Returns the page at index. -
getSelectedPage
Returns the currently selected page shape. -
getSelectedPageIndex
public int getSelectedPageIndex()Returns the index of the current visible document page. -
setSelectedPageIndex
public void setSelectedPageIndex(int anIndex) Sets the page of viewer's document that is visible (by index). -
getChildAnimator
Return child animator.- Overrides:
getChildAnimatorin classRMShape
-
layoutChildren
protected void layoutChildren()This is bogus, but we want to make sure that ViewerShape is always the same size as the content.- Overrides:
layoutChildrenin classRMParentShape
-
computePrefWidth
protected double computePrefWidth(double aHeight) Override to return content preferred width.- Overrides:
computePrefWidthin classRMParentShape
-
computePrefHeight
protected double computePrefHeight(double aWidth) Override to return content preferred height.- Overrides:
computePrefHeightin classRMParentShape
-
repaint
This is a notification call for impending visual shape attribute changes. -
paint
Override to set Painting flag. -
isViewing
public boolean isViewing()Returns whether this shape is being viewed in a viewer. -
isEditing
public boolean isEditing()Returns whether this shape is being edited in an editor. -
getSourceURL
Returns the SourceURL.- Overrides:
getSourceURLin classRMParentShape
-
setSourceURL
Sets the SourceURL.- Overrides:
setSourceURLin classRMParentShape
-
getContentXML
Returns RXElement for content shape. -
getContentBytes
public byte[] getContentBytes()Returns the content bytes.
-