public class RMSwitchShape extends RMShape
RMTypes.AlignX, RMTypes.AlignY
WRAP_TYPE_BOTH, WRAP_TYPE_NONE
Constructor and Description |
---|
RMSwitchShape()
Creates a plain switch shape.
|
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsChildren()
Editor method - specifies that switch shape accepts children.
|
boolean |
acceptsMouse()
Viewer method.
|
RMSwitchShape |
clone()
Standard clone implementation.
|
RMSwitchShape |
cloneDeep()
Standard clone deep implementation.
|
RMSwitchShape |
cloneDeep(boolean doAlternates)
Standard clone deep implementation.
|
boolean |
equals(java.lang.Object anObj)
Standard equals implementation.
|
java.lang.Object |
fromXMLShape(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.RXElement anElement,
java.lang.Object anOwner)
XML unarchival.
|
java.util.Map<java.lang.String,RMSwitchShape> |
getAlternates()
Returns the map used to hold alternate versions.
|
java.util.Map<java.lang.String,RMSwitchShape> |
getAlternates(boolean create)
Returns the map used to hold alternate versions.
|
RMAnimator |
getChildAnimator(boolean create)
Returns the child animator of the switch shape (creating it if absent and requested).
|
java.lang.String |
getDefaultVersionName()
Returns the default version name.
|
java.lang.String |
getVersion()
Returns the currently selected version string for the switch shape.
|
RMSwitchShape |
getVersion(java.lang.String aName)
Returns the switch shape associated with the given version name.
|
java.lang.String |
getVersionKey()
Returns the version key used to get the version used in a report.
|
java.util.List<java.lang.String> |
getVersionNames()
Returns a sorted list of all version names contained in the switch shape.
|
boolean |
hasAlternateVersions()
Returns whether switch shape has version(s) other than the default.
|
boolean |
hasMouseVersions()
Returns whether switch shape has any mouse versions ("Mouse Over" or "Mouse Down").
|
boolean |
hasVersion(java.lang.String aString)
Returns whether switch shape has a version with the given name.
|
void |
mouseEntered(RMShapeMouseEvent anEvent)
Implement to Handle MouseOver version.
|
void |
mouseExited(RMShapeMouseEvent anEvent)
Implement to Handle MouseOver version.
|
void |
mousePressed(RMShapeMouseEvent anEvent)
Implement to Handle MouseDown version.
|
void |
mouseReleased(RMShapeMouseEvent anEvent)
Implement to Handle MouseDown version.
|
void |
paintShape(java.awt.Graphics2D aGraphics)
Paints switch shape.
|
void |
removeVersion(java.lang.String aString)
Removes the version shape associated with the given name from the alternates map.
|
void |
setReportMill(ReportMill aReportMill)
Report generation.
|
void |
setReportMill(ReportMill aReportMill,
java.lang.String aVersion)
Report generation.
|
void |
setVersion(java.lang.String aName)
Sets the currently selected version of the switch shape to given version name.
|
void |
setVersionKey(java.lang.String aVersionKey)
Sets the version key used to get the version used in a report.
|
void |
setWidth(float aWidth)
Overrides standard shape method to resize alternates.
|
void |
shapeHidden()
Overrides shape implementation to stop animator if it should be playing.
|
boolean |
superSelectable()
Editor method - specifies that switch shape is super selectable.
|
com.reportmill.archiver.RXElement |
toXML(com.reportmill.archiver.RXArchiver anArchiver,
java.lang.Object anOwner)
XML Archival generic - break toXML into toXMLShape and toXMLShapeChildren.
|
com.reportmill.archiver.RXElement |
toXMLShape(com.reportmill.archiver.RXArchiver anArchiver,
java.lang.Object anOwner)
XML archival.
|
void |
toXMLShapeChildren(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.RXElement anElement,
java.lang.Object anOwner)
XML child archival - override to archive alternates.
|
addAction, addActions, addBinding, addChild, addChild, addChild, addChild, addDeepChangeListener, addListener, addMouseListener, animUpdate, bounds, bringShapesToFront, childrenSuperSelectImmediately, contains, convertedPointFromShape, convertedPointToShape, convertedRectFromShape, convertedRectToShape, convertedSizeFromShape, convertedSizeToShape, convertedVectorFromShape, convertedVectorToShape, convertFromShape, convertPathFromShape, convertPathToShape, convertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, convertSizeFromShape, convertSizeToShape, convertToShape, convertVectorFromShape, convertVectorToShape, copyShape, createDivideShapeRemainder, createPartClone, deepChange, divideShapeFromEdge, divideShapeFromTop, doLayout, fromXML, fromXMLShapeChildren, fromXMLShapeLayout, get, get, getAction, getAlignmentX, getAlignmentY, getAncestor, getAncestorCount, getAncestorInCommon, getAnimator, getAnimator, getAutosizing, getAutosizingDefault, getBestHeight, getBestSize, getBestSize, getBestWidth, getBinding, getBinding, getBindingCount, getBounds, getBoundsInside, getBoundsMarked, getBoundsMarkedDeep, getBoundsOfChildren, getCausesWrap, getCausesWrapType, getChild, getChildAnimator, getChildArray, getChildClipShape, getChildContaining, getChildCount, getChildLast, getChildren, getChildrenIntersecting, getChildrenWhoCauseWrap, getChildrenWithClass, getChildrenWithClass, getChildWithClass, getChildWithName, getClipShape, getColor, getDatasetEntity, getDatasetKey, getDocument, getEffect, getEventAdapter, getFill, getFont, getFormat, getFrame, getFrame, getFrameMaxX, getFrameMaxY, getFrameX, getFrameXY, getFrameY, getHeight, getHover, getImageFill, getLayout, getLayout, getLayoutInfo, getLineWidth, getMaskPath, getMaximumSize, getMaximumSizeProperty, getMaxX, getMaxY, getMinimumSize, getMinimumSizeProperty, getName, getOpacity, getOpacityDeep, getOriginal, getOutline, getPageBreak, getPageBreakMax, getPageBreakPage, getPageBreakPageMax, getPageShape, getParent, getParentWithClass, getPart, getPartCount, getPartDeep, getPartDeepCount, getPath, getPathInBounds, getPreferredSize, getPreferredSize, getPreferredSizeProperty, getPropertyNameMapped, getPropertyNames, getReportMill, getRoll, getRootShape, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSizeP, getSkewX, getSkewY, getStroke, getStrokeColor, getStrokeWidth, getTextColor, getTimeline, getTimeline, getTransform, getTransformFromShape, getTransformInverse, getTransformToShape, getUndoer, getURL, getVisbileBounds, getVisibleBounds, getVisibleBounds, getVisibleBounds, getWidth, getX, getXY, getXYP, getY, height, indexOf, indexOfChild, intersects, isAncestor, isAnimProperty, isDescendant, isEditing, isEnabled, isHittable, isHittableChild, isLocked, isMaximumSizeSet, isMinimumSizeSet, isRoot, isRSS, isShowing, isUnderlined, isViewing, isVisible, isVisibleChild, layoutReset, mouseClicked, mouseDragged, mouseMoved, notRSS, offsetChildrenXY, offsetXY, page, pageMax, paint, paintShapeAll, paintShapeChildren, paintShapeOver, propertyChange, put, removeAction, removeBinding, removeBinding, removeChild, removeChild, removeChildren, removeDeepChangeListener, removeFromParent, removeMouseListener, repaint, repaint, resolvePageReferences, revalidate, sendShapesToBack, setAction, setAlignmentX, setAlignmentY, setAutosizing, setBestHeight, setBestSize, setBestSize, setBounds, setBounds, setCausesWrap, setCausesWrapType, setColor, setEffect, setEnabled, setFill, setFont, setFormat, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHeight, setHover, setLayout, setLayoutInfo, setLineWidth, setLocked, setMaximumSize, setMinimumSize, setName, setOpacity, setOutline, setParent, setPreferredSize, setReportMillBindings, setReportMillDeep, setRoll, setScaleX, setScaleXY, setScaleY, setShowing, setSize, setSize, setSizeP, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setStrokeWidth, setTextColor, setTime, setUnderlined, setURL, setVisible, setX, setXY, setXY, setXYP, setY, toString, toXMLShapeLayout, undoerDisable, undoerEnable, undoerSetUndoTitle, validate, width, x, y
addPropertyChangeListener, removePropertyChangeListener
getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
public java.lang.String getVersion()
public void setVersion(java.lang.String aName)
public RMSwitchShape getVersion(java.lang.String aName)
public void removeVersion(java.lang.String aString)
public java.util.Map<java.lang.String,RMSwitchShape> getAlternates()
public java.util.Map<java.lang.String,RMSwitchShape> getAlternates(boolean create)
public boolean hasVersion(java.lang.String aString)
public boolean hasAlternateVersions()
public boolean hasMouseVersions()
public java.util.List<java.lang.String> getVersionNames()
public java.lang.String getDefaultVersionName()
public java.lang.String getVersionKey()
public void setVersionKey(java.lang.String aVersionKey)
public RMAnimator getChildAnimator(boolean create)
getChildAnimator
in class RMShape
public void setWidth(float aWidth)
public void paintShape(java.awt.Graphics2D aGraphics)
paintShape
in class RMShape
public void shapeHidden()
public void setReportMill(ReportMill aReportMill)
setReportMill
in class RMShape
public void setReportMill(ReportMill aReportMill, java.lang.String aVersion)
public boolean equals(java.lang.Object anObj)
public RMSwitchShape clone()
public RMSwitchShape cloneDeep()
public RMSwitchShape cloneDeep(boolean doAlternates)
public boolean acceptsMouse()
acceptsMouse
in class RMShape
public void mouseEntered(RMShapeMouseEvent anEvent)
mouseEntered
in class RMShape
public void mouseExited(RMShapeMouseEvent anEvent)
mouseExited
in class RMShape
public void mousePressed(RMShapeMouseEvent anEvent)
mousePressed
in class RMShape
public void mouseReleased(RMShapeMouseEvent anEvent)
mouseReleased
in class RMShape
public boolean superSelectable()
superSelectable
in class RMShape
public boolean acceptsChildren()
acceptsChildren
in class RMShape
public com.reportmill.archiver.RXElement toXML(com.reportmill.archiver.RXArchiver anArchiver, java.lang.Object anOwner)
public com.reportmill.archiver.RXElement toXMLShape(com.reportmill.archiver.RXArchiver anArchiver, java.lang.Object anOwner)
toXMLShape
in class RMShape
public void toXMLShapeChildren(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement, java.lang.Object anOwner)
toXMLShapeChildren
in class RMShape
public java.lang.Object fromXMLShape(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement, java.lang.Object anOwner)
fromXMLShape
in class RMShape