Interface IThemeToolBar
public interface IThemeToolBar
-
Method Summary
Modifier and TypeMethodDescriptionintGets the bottom y of the toolbar.intGets the center x of the toolbar.intGets the toolbar height.intGets the center/middle y of the toolbar.intGets the right most X position of the toolbarintgetWidth()Gets the toolbar widthintgetX()Gets the x position.intgetY()Gets the y position.booleanIs the mouse over the toolbar.voidsetLayoutCenteredHorizontal(int centerX, int y, int buttonGap, boolean leftToRight) Centered Horizontal layoutvoidsetLayoutCenteredVertical(int startX, int centerY, int buttonGap, boolean leftToRight) Centered Vertical layoutvoidsetLayoutDistributedHorizontal(int leftX, int y, int rightX, boolean leftToRight) Distributes the buttons horizontal evenly based on the leftX and rightX values.voidsetLayoutHorizontal(int startX, int y, int buttonGap, boolean leftToRight) Horizontal layout.voidsetLayoutVertical(int startX, int startY, int buttonGap, boolean leftToRight) Vertical layoutvoidsetPosition(int x, int y) Sets the x, y position of the toolbar.voidreverses the button order.
-
Method Details
-
setLayoutHorizontal
void setLayoutHorizontal(int startX, int y, int buttonGap, boolean leftToRight) Horizontal layout.- Parameters:
startX- - The start x coord.y- - The top Y coordbuttonGap- - The gap between buttons.leftToRight- - Button rendering order, true for left to right, false for right to left.
-
setLayoutCenteredHorizontal
void setLayoutCenteredHorizontal(int centerX, int y, int buttonGap, boolean leftToRight) Centered Horizontal layout- Parameters:
centerX- - The x coord that is the toolbar center.y- - The top Y coordbuttonGap- - The gap between buttons.leftToRight- - Button rendering order, true for left to right, false for right to left.
-
setLayoutDistributedHorizontal
void setLayoutDistributedHorizontal(int leftX, int y, int rightX, boolean leftToRight) Distributes the buttons horizontal evenly based on the leftX and rightX values.- Parameters:
leftX- - The leftXy- - The top Y coordrightX- - The right X coord.leftToRight- - Button rendering order, true for left to right, false for right to left.
-
setLayoutVertical
void setLayoutVertical(int startX, int startY, int buttonGap, boolean leftToRight) Vertical layout- Parameters:
startX- - The start x coord.startY- - The start y coord.buttonGap- - The gap between buttons.leftToRight- - Button rendering order, true for left to right, false for right to left.
-
setLayoutCenteredVertical
void setLayoutCenteredVertical(int startX, int centerY, int buttonGap, boolean leftToRight) Centered Vertical layout- Parameters:
startX- - The start x coord.centerY- - The center y coord.buttonGap- - The gap between buttons.leftToRight- - Button rendering order, true for left to right, false for right to left.
-
setReverse
void setReverse()reverses the button order. -
getHeight
int getHeight()Gets the toolbar height.- Returns:
- the height
-
getWidth
int getWidth()Gets the toolbar width- Returns:
- - The width.
-
getX
int getX()Gets the x position.- Returns:
- - the x position.
-
getY
int getY()Gets the y position.- Returns:
- - the y position.
-
getCenterX
int getCenterX()Gets the center x of the toolbar.- Returns:
- - the center x
-
getMiddleY
int getMiddleY()Gets the center/middle y of the toolbar.- Returns:
- the middle y.
-
getBottomY
int getBottomY()Gets the bottom y of the toolbar.- Returns:
- the bottom y.
-
getRightX
int getRightX()Gets the right most X position of the toolbar- Returns:
- - the right x.
-
setPosition
void setPosition(int x, int y) Sets the x, y position of the toolbar.- Parameters:
x- - the xy- - the y
-
isMouseOver
boolean isMouseOver()Is the mouse over the toolbar.- Returns:
- - is mouse over.
-