Package com.xxrjun.components
Class ToolPanel
java.lang.Object
com.xxrjun.components.ToolPanel
The type Tool panel.
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final int
The constant TOOL_BUTTON_VERTICAL_PADDING.protected static final int
The constant TOOL_PANEL_HEIGHT.protected static final int
The constant TOOL_PANEL_PADDING.protected static final int
The constant TOOL_PANEL_WIDTH. -
Method Summary
Modifier and TypeMethodDescriptionstatic ToolPanel
Gets instance.getPanel()
Gets panel.int
Gets tool panel width.int
Gets total panel height.void
Initialize panel.void
Load buttons.void
resetPanelButtons
(int toolIndex) Reset panel buttons.
-
Field Details
-
TOOL_PANEL_WIDTH
protected static final int TOOL_PANEL_WIDTHThe constant TOOL_PANEL_WIDTH.- See Also:
-
TOOL_PANEL_HEIGHT
protected static final int TOOL_PANEL_HEIGHTThe constant TOOL_PANEL_HEIGHT.- See Also:
-
TOOL_PANEL_PADDING
protected static final int TOOL_PANEL_PADDINGThe constant TOOL_PANEL_PADDING.- See Also:
-
TOOL_BUTTON_VERTICAL_PADDING
protected static final int TOOL_BUTTON_VERTICAL_PADDINGThe constant TOOL_BUTTON_VERTICAL_PADDING.- See Also:
-
-
Method Details
-
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
Gets panel.- Returns:
- the panel
-