Package com.inductiveautomation.rm.shape
Class RMSwitchShape
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.shape.RMSwitchShape
- All Implemented Interfaces:
- Archivable,- DeepChangeListener,- RMPropertyChanger,- RMTypes,- PropertyChangeListener,- Cloneable,- EventListener
- Direct Known Subclasses:
- RMTableRow
This class represents a sophisticated shape that can maintain multiple versions of itself. For example, a shape can
 have a "Standard" version and an "Alternate" version (for alternating TableRows).
- 
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 TypeMethodDescriptionbooleanEditor method - specifies that switch shape accepts children.clone()Standard clone implementation.Standard clone deep implementation.protected voidfromXMLShape(RXArchiver anArchiver, RXElement anElement) XML unarchival.Returns the map used to hold alternate versions.getAlternates(boolean doCreate) Returns the map used to hold alternate versions.getChildAnimator(boolean doCreate) Returns the child animator of the switch shape (creating it if absent and requested).Returns the default version name.protected voidgetPropertyNames(List<String> aList) Overridden to add 'Version' to the list of property names you can bind to.Returns the currently selected version string for the switch shape.getVersion(String aName) Returns the switch shape associated with the given version name.Returns the version key used to get the version used in a report.Returns a sorted list of all version names contained in the switch shape.booleanhasVersion(String aString) Returns whether switch shape has a version with the given name.booleanOverride this for shapes (like a table row) that don't don't make sense to delete by themselves.voidpaintShape(RMShapePainter aPntr) Paints switch shape.voidremoveVersion(String aString) Removes the version shape associated with the given name from the alternates map.rpgAll(ReportOwner anRptOwner, RMShape aParent) Report generation.protected RMShaperpgAllSuper(ReportOwner anRptOwner, RMShape aParent) Report generation.protected voidsetChildAnimator(RMAnimator anAnimator) Sets the child animator to the given animator.voidsetVersion(String aName) Sets the currently selected version of the switch shape to given version name.voidsetVersionKey(String aVersionKey) Sets the version key used to get the version used in a report.voidsetWidth(double aWidth) Overrides standard shape method to resize alternates.voidOverrides shape implementation to stop animator if it should be playing.protected voidOverrides shape implementation to start animator if it should be playing.booleanEditor method - specifies that switch shape is super selectable.toXML(RXArchiver anArchiver) XML Archival generic - break toXML into toXMLShape and toXMLShapeChildren.protected voidtoXMLChildren(RXArchiver anArchiver, RXElement anElement) XML child archival - override to archive alternates.protected RXElementtoXMLShape(RXArchiver anArchiver) XML archival.protected voidtransferAttributes(RMSwitchShape toShape) This method is used by setVersion to transfers attributes to/from alternate versions.Methods inherited from class com.inductiveautomation.rm.shape.RMParentShapeaddChild, addChild, addChild, addChild, addLayoutChild, bringShapesToFront, computePrefHeight, computePrefWidth, divideShapeFromTop, fromXML, fromXMLChildren, getBoundsOfChildren, getChild, getChildArray, getChildContaining, getChildCount, getChildLast, getChildren, getChildrenIntersecting, getChildrenWithClass, getChildrenWithClass, getChildWithClass, getChildWithName, getLayout, getNeedsLayout, getSourceURL, indexOfChild, isHittable, isShowing, isSourceURLSet, layout, layoutChildren, relayout, removeChild, removeChild, removeChildren, removeLayoutChild, rpgChildren, sendShapesToBack, setHeight, setLayout, setNeedsLayout, setSourceURLMethods inherited from class com.inductiveautomation.rm.shape.RMShapeacceptsMouse, 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, 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, getPath, 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, 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, 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, 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- 
RMSwitchShapepublic RMSwitchShape()
 
- 
- 
Method Details- 
getVersionReturns the currently selected version string for the switch shape.
- 
setVersionSets the currently selected version of the switch shape to given version name. If the specified version name doesn't yet exist, this method creates a new version for it.
- 
transferAttributesThis method is used by setVersion to transfers attributes to/from alternate versions.
- 
getVersionReturns the switch shape associated with the given version name.
- 
removeVersionRemoves the version shape associated with the given name from the alternates map.
- 
getAlternatesReturns the map used to hold alternate versions.
- 
getAlternatesReturns the map used to hold alternate versions.
- 
hasVersionReturns whether switch shape has a version with the given name.
- 
getVersionNamesReturns a sorted list of all version names contained in the switch shape.
- 
getDefaultVersionNameReturns the default version name.
- 
getVersionKeyReturns the version key used to get the version used in a report.
- 
setVersionKeySets the version key used to get the version used in a report.
- 
getPropertyNamesOverridden to add 'Version' to the list of property names you can bind to.- Overrides:
- getPropertyNamesin class- RMShape
 
- 
getChildAnimatorReturns the child animator of the switch shape (creating it if absent and requested).- Overrides:
- getChildAnimatorin class- RMShape
 
- 
setChildAnimatorSets the child animator to the given animator.
- 
setWidthpublic void setWidth(double aWidth) Overrides standard shape method to resize alternates.- Overrides:
- setWidthin class- RMParentShape
 
- 
paintShapePaints switch shape.- Overrides:
- paintShapein class- RMShape
 
- 
shapeShownprotected void shapeShown()Overrides shape implementation to start animator if it should be playing.- Overrides:
- shapeShownin class- RMShape
 
- 
shapeHiddenpublic void shapeHidden()Overrides shape implementation to stop animator if it should be playing.- Overrides:
- shapeHiddenin class- RMShape
 
- 
rpgAllReport generation.- Overrides:
- rpgAllin class- RMParentShape
 
- 
rpgAllSuperReport generation.
- 
cloneStandard clone implementation.- Overrides:
- clonein class- RMParentShape
 
- 
cloneDeepStandard clone deep implementation.- Overrides:
- cloneDeepin class- RMParentShape
 
- 
superSelectablepublic boolean superSelectable()Editor method - specifies that switch shape is super selectable.- Overrides:
- superSelectablein class- RMShape
 
- 
acceptsChildrenpublic boolean acceptsChildren()Editor method - specifies that switch shape accepts children.- Overrides:
- acceptsChildrenin class- RMShape
 
- 
isDeletablepublic boolean isDeletable()Description copied from class:RMShapeOverride this for shapes (like a table row) that don't don't make sense to delete by themselves.- Overrides:
- isDeletablein class- RMShape
 
- 
toXMLXML Archival generic - break toXML into toXMLShape and toXMLShapeChildren.- Specified by:
- toXMLin interface- Archivable
- Overrides:
- toXMLin class- RMParentShape
 
- 
toXMLShapeXML archival.- Overrides:
- toXMLShapein class- RMParentShape
 
- 
toXMLChildrenXML child archival - override to archive alternates.- Overrides:
- toXMLChildrenin class- RMParentShape
 
- 
fromXMLShapeXML unarchival.- Overrides:
- fromXMLShapein class- RMParentShape
 
 
-