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 Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
This inner class is a RJColorPanel suitable for manipulating colors in current RMEditor. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
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.int
Returns the index of the currently visible tab (or -1 if attributes panel not visible).boolean
Returns whether the attributes panel is visible.void
resetUI()
Updates the attributes panel UI (forwards on to inspector at selected tab).void
setSelectedTab
(int index) Sets the currently selected tab by index.void
setVisible
(boolean aValue) Sets the attributes panel visible.void
setVisible
(int anIndex) Sets the attributes panel visible, specifying a specific tab by the given index.static AttributesPanel
shared()
Returns the shared instance of the attributes panel.Methods inherited from class com.reportmill.base.RMObject
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
-
Field Details
-
COLOR
public static final int COLOR- See Also:
-
FONT
public static final int FONT- See Also:
-
FORMAT
public static final int FORMAT- See Also:
-
KEYS
public static final int KEYS- See Also:
-
GALLERY
public static final int GALLERY- See Also:
-
-
Constructor Details
-
AttributesPanel
public AttributesPanel()Creates a new attributes panel.
-
-
Method Details
-
getUI
Returns the Swing UI panel for the attributes panel. -
isVisible
public boolean isVisible()Returns whether the attributes panel is visible. -
setVisible
public void setVisible(boolean aValue) Sets the attributes panel visible. -
getVisible
public int getVisible()Returns the index of the currently visible tab (or -1 if attributes panel not visible). -
setVisible
public void setVisible(int anIndex) Sets the attributes panel visible, specifying a specific tab by the given index. -
getTabbedPane
Returns the Tab pane used by the attributes panel. -
setSelectedTab
public void setSelectedTab(int index) Sets the currently selected tab by index. -
resetUI
public void resetUI()Updates the attributes panel UI (forwards on to inspector at selected tab). -
close
public void close()Closes the attributes panel and releases the UI.