Package com.reportmill.panels
Class AttributesPanel
- java.lang.Object
-
- com.reportmill.base.RMObject
-
- com.reportmill.panels.AttributesPanel
-
- All Implemented Interfaces:
RMArchiver.Archiving
,java.lang.Cloneable
- Direct Known Subclasses:
RBAttributesPanel
public class AttributesPanel extends RMObject
This class manages the attributes panel which holds the color panel, font panel, formatter panel and keys panel.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AttributesPanel.RMColorPanel
This inner class is a RJColorPanel suitable for manipulating colors in current RMEditor.
-
Constructor Summary
Constructors Constructor Description AttributesPanel()
Creates a new attributes panel.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes the attributes panel and releases the UI.javax.swing.JTabbedPane
getTabbedPane()
Returns the Tab pane used by the attributes panel.RJPanel
getUI()
Returns the Swing UI panel for the attributes panel.int
getVisible()
Returns the index of the currently visible tab (or -1 if attributes panel not visible).boolean
isVisible()
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 Detail
-
COLOR
public static final int COLOR
- See Also:
- Constant Field Values
-
FONT
public static final int FONT
- See Also:
- Constant Field Values
-
FORMAT
public static final int FORMAT
- See Also:
- Constant Field Values
-
KEYS
public static final int KEYS
- See Also:
- Constant Field Values
-
GALLERY
public static final int GALLERY
- See Also:
- Constant Field Values
-
-
Method Detail
-
shared
public static AttributesPanel shared()
Returns the shared instance of the attributes panel.
-
getUI
public RJPanel 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
public javax.swing.JTabbedPane 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.
-
-