Class 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.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int COLOR  
      static int FONT  
      static int FORMAT  
      static int GALLERY  
      static int KEYS  
    • Constructor Summary

      Constructors 
      Constructor Description
      AttributesPanel()
      Creates a new attributes panel.
    • Constructor Detail

      • AttributesPanel

        public AttributesPanel()
        Creates a new attributes panel.
    • 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.