Package com.reportmill.panels
Class AttributesPanel
java.lang.Object
com.reportmill.base.RMObject
com.reportmill.panels.AttributesPanel
- All Implemented Interfaces:
- RMArchiver.Archiving,- Cloneable
- Direct Known Subclasses:
- RBAttributesPanel
This class manages the attributes panel which holds the color panel, font panel, formatter panel and keys panel.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classThis inner class is a RJColorPanel suitable for manipulating colors in current RMEditor.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()Closes the attributes panel and releases the UI.Returns the Tab pane used by the attributes panel.getUI()Returns the Swing UI panel for the attributes panel.intReturns the index of the currently visible tab (or -1 if attributes panel not visible).booleanReturns whether the attributes panel is visible.voidresetUI()Updates the attributes panel UI (forwards on to inspector at selected tab).voidsetSelectedTab(int index) Sets the currently selected tab by index.voidsetVisible(boolean aValue) Sets the attributes panel visible.voidsetVisible(int anIndex) Sets the attributes panel visible, specifying a specific tab by the given index.static AttributesPanelshared()Returns the shared instance of the attributes panel.Methods inherited from class com.reportmill.base.RMObjectclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
- 
Field Details- 
COLORpublic static final int COLOR- See Also:
 
- 
FONTpublic static final int FONT- See Also:
 
- 
FORMATpublic static final int FORMAT- See Also:
 
- 
KEYSpublic static final int KEYS- See Also:
 
- 
GALLERYpublic static final int GALLERY- See Also:
 
 
- 
- 
Constructor Details- 
AttributesPanelpublic AttributesPanel()Creates a new attributes panel.
 
- 
- 
Method Details
- 
getUIReturns the Swing UI panel for the attributes panel.
- 
isVisiblepublic boolean isVisible()Returns whether the attributes panel is visible.
- 
setVisiblepublic void setVisible(boolean aValue) Sets the attributes panel visible.
- 
getVisiblepublic int getVisible()Returns the index of the currently visible tab (or -1 if attributes panel not visible).
- 
setVisiblepublic void setVisible(int anIndex) Sets the attributes panel visible, specifying a specific tab by the given index.
- 
getTabbedPaneReturns the Tab pane used by the attributes panel.
- 
setSelectedTabpublic void setSelectedTab(int index) Sets the currently selected tab by index.
- 
resetUIpublic void resetUI()Updates the attributes panel UI (forwards on to inspector at selected tab).
- 
closepublic void close()Closes the attributes panel and releases the UI.