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 SummaryNested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypesRMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
- 
Field SummaryFields inherited from class com.inductiveautomation.rm.shape.RMShapeBINDING_PROP_NAME, STROKE_BORDER, STROKE_DOUBLE, STROKE_HIDDEN, STROKE_SHAPE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.RMParentShapeaddChild, 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.RMShapeacceptsChildren, 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.RMObjectaddPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChangeMethods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
- 
Constructor Details- 
RMViewerShapeCreates a new ViewerShape.
 
- 
- 
Method Details- 
getViewerReturns the viewer.
- 
getContentReturns the root shape that is being viewed in viewer.
- 
setContentSets the root shape that is being viewed in viewer.
- 
getContentReturns the root shape that is being viewed in viewer as a specific class.
- 
getDocumentReturns the root shape as RMDocument, if available.- Overrides:
- getDocumentin class- RMShape
 
- 
getPageCountpublic int getPageCount()Returns the page count.
- 
getPageReturns the page at index.
- 
getSelectedPageReturns the currently selected page shape.
- 
getSelectedPageIndexpublic int getSelectedPageIndex()Returns the index of the current visible document page.
- 
setSelectedPageIndexpublic void setSelectedPageIndex(int anIndex) Sets the page of viewer's document that is visible (by index).
- 
getChildAnimatorReturn child animator.- Overrides:
- getChildAnimatorin class- RMShape
 
- 
layoutChildrenprotected void layoutChildren()This is bogus, but we want to make sure that ViewerShape is always the same size as the content.- Overrides:
- layoutChildrenin class- RMParentShape
 
- 
computePrefWidthprotected double computePrefWidth(double aHeight) Override to return content preferred width.- Overrides:
- computePrefWidthin class- RMParentShape
 
- 
computePrefHeightprotected double computePrefHeight(double aWidth) Override to return content preferred height.- Overrides:
- computePrefHeightin class- RMParentShape
 
- 
repaintThis is a notification call for impending visual shape attribute changes.
- 
paintOverride to set Painting flag.
- 
isViewingpublic boolean isViewing()Returns whether this shape is being viewed in a viewer.
- 
isEditingpublic boolean isEditing()Returns whether this shape is being edited in an editor.
- 
getSourceURLReturns the SourceURL.- Overrides:
- getSourceURLin class- RMParentShape
 
- 
setSourceURLSets the SourceURL.- Overrides:
- setSourceURLin class- RMParentShape
 
- 
getContentXMLReturns RXElement for content shape.
- 
getContentBytespublic byte[] getContentBytes()Returns the content bytes.
 
-