Class ToolPanel

java.lang.Object
com.xxrjun.components.ToolPanel

public class ToolPanel extends Object
The type Tool panel.
  • Field Details

    • TOOL_PANEL_WIDTH

      protected static final int TOOL_PANEL_WIDTH
      The constant TOOL_PANEL_WIDTH.
      See Also:
    • TOOL_PANEL_HEIGHT

      protected static final int TOOL_PANEL_HEIGHT
      The constant TOOL_PANEL_HEIGHT.
      See Also:
    • TOOL_PANEL_PADDING

      protected static final int TOOL_PANEL_PADDING
      The constant TOOL_PANEL_PADDING.
      See Also:
    • TOOL_BUTTON_VERTICAL_PADDING

      protected static final int TOOL_BUTTON_VERTICAL_PADDING
      The constant TOOL_BUTTON_VERTICAL_PADDING.
      See Also:
  • Method Details

    • getInstance

      public static ToolPanel getInstance()
      Gets instance.
      Returns:
      the instance
    • initializePanel

      public void initializePanel()
      Initialize panel.
    • loadButtons

      public void loadButtons()
      Load buttons.
    • resetPanelButtons

      public void resetPanelButtons(int toolIndex)
      Reset panel buttons.
      Parameters:
      toolIndex - the tool index
    • getTotalPanelHeight

      public int getTotalPanelHeight()
      Gets total panel height.
      Returns:
      the total panel height
    • getToolPanelWidth

      public int getToolPanelWidth()
      Gets tool panel width.
      Returns:
      the tool panel width
    • getPanel

      public JPanel getPanel()
      Gets panel.
      Returns:
      the panel