|
ReportMill 10 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.reportmill.base.RMObject
com.reportmill.shape.RMShape
com.reportmill.shape.RMSwitchShape
public class RMSwitchShape
This class represents a sophisticated shape that can maintain multiple versions of itself. For example, a shape can have a "Standard" version and a "Mouse Over" version (to define the attributes of this shape when the mouse hovers over it).
| Field Summary |
|---|
| Fields inherited from class com.reportmill.shape.RMShape |
|---|
WRAP_TYPE_BOTH, WRAP_TYPE_NONE |
| Constructor Summary | |
|---|---|
RMSwitchShape()
Creates a plain switch shape. |
|
| Method Summary | |
|---|---|
boolean |
acceptsChildren()
Editor method - specifies that switch shape accepts children. |
boolean |
acceptsMouse()
Viewer method. |
RMSwitchShape |
alternateShapeInstance()
Creates a new switch shape of this same class. |
java.lang.Object |
clone()
Standard clone implementation. |
RMShape |
cloneDeep()
Standard clone deep implementation. |
void |
copy(java.lang.Object anObj)
Standard copy implementation. |
boolean |
equals(java.lang.Object anObj)
Standard equals implementation. |
java.lang.Object |
fromXML(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.RXElement anElement)
XML unarchival. |
java.util.Map |
getAlternates()
Returns the map used to hold alternate versions. |
com.reportmill.graphics.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 |
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(RMViewer aViewer,
java.awt.event.MouseEvent anEvent)
Viewer method. |
void |
mouseExited(RMViewer aViewer,
java.awt.event.MouseEvent anEvent)
Viewer method. |
void |
removeVersion(java.lang.String aString)
Removes the version shape associated with the given name from the alternates map. |
RMShape |
rpgClone_super(com.reportmill.base.ReportMill aReportMill)
Gives us access to normal shape rpgClone implementation. |
RMShape |
rpgClone(com.reportmill.base.ReportMill aReportMill)
Standard RPG clone method. |
RMShape |
rpgClone(com.reportmill.base.ReportMill aReportMill,
java.lang.String aVersion)
RPG clone with specified version. |
void |
setAlternates(java.util.Map aMap)
Sets the map used to hold alternate versions. |
void |
setVersion(java.lang.String aName)
Sets the currently selected version of the switch shape to given version name. |
void |
setVersion(java.lang.String aString,
RMSwitchShape aShape,
boolean makeActive)
Sets given shape to be the version for the given name. |
void |
setVersionKey(java.lang.String aVersionKey)
Sets the version key used to get the version used in a report. |
void |
setWidth(double aWidth)
Overrides standard shape method to resize alternates. |
boolean |
superSelectable()
Editor method - specifies that switch shape is super selectable. |
com.reportmill.archiver.RXElement |
toXML(com.reportmill.archiver.RXArchiver anArchiver)
XML archival. |
| Methods inherited from class com.reportmill.base.RMObject |
|---|
didUndo, getAnimAttribute, getClassNameShort |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RMSwitchShape()
| Method Detail |
|---|
public java.lang.String getVersion()
public void setVersion(java.lang.String aName)
public RMSwitchShape getVersion(java.lang.String aName)
public void setVersion(java.lang.String aString,
RMSwitchShape aShape,
boolean makeActive)
public void removeVersion(java.lang.String aString)
public java.lang.String getVersionKey()
public void setVersionKey(java.lang.String aVersionKey)
public java.util.Map getAlternates()
public void setAlternates(java.util.Map aMap)
public boolean hasVersion(java.lang.String aString)
public boolean hasAlternateVersions()
public boolean hasMouseVersions()
public java.util.List getVersionNames()
public java.lang.String getDefaultVersionName()
public com.reportmill.graphics.RMAnimator getChildAnimator(boolean create)
getChildAnimator in class RMShapepublic RMSwitchShape alternateShapeInstance()
public RMShape rpgClone(com.reportmill.base.ReportMill aReportMill)
rpgClone in class RMShape
public RMShape rpgClone(com.reportmill.base.ReportMill aReportMill,
java.lang.String aVersion)
public RMShape rpgClone_super(com.reportmill.base.ReportMill aReportMill)
public void setWidth(double aWidth)
setWidth in class RMShapepublic boolean equals(java.lang.Object anObj)
equals in class RMShapepublic void copy(java.lang.Object anObj)
copy in class RMShapepublic java.lang.Object clone()
clone in class RMShapepublic RMShape cloneDeep()
cloneDeep in class RMShapepublic boolean acceptsMouse()
acceptsMouse in class RMShape
public void mouseEntered(RMViewer aViewer,
java.awt.event.MouseEvent anEvent)
mouseEntered in class RMShape
public void mouseExited(RMViewer aViewer,
java.awt.event.MouseEvent anEvent)
mouseExited in class RMShapepublic boolean superSelectable()
superSelectable in class RMShapepublic boolean acceptsChildren()
acceptsChildren in class RMShapepublic com.reportmill.archiver.RXElement toXML(com.reportmill.archiver.RXArchiver anArchiver)
toXML in class RMShape
public java.lang.Object fromXML(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.RXElement anElement)
fromXML in class RMShape
|
ReportMill 10 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||