Interface IThemeToolBar


public interface IThemeToolBar
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the bottom y of the toolbar.
    int
    Gets the center x of the toolbar.
    int
    Gets the toolbar height.
    int
    Gets the center/middle y of the toolbar.
    int
    Gets the right most X position of the toolbar
    int
    Gets the toolbar width
    int
    Gets the x position.
    int
    Gets the y position.
    boolean
    Is the mouse over the toolbar.
    void
    setLayoutCenteredHorizontal(int centerX, int y, int buttonGap, boolean leftToRight)
    Centered Horizontal layout
    void
    setLayoutCenteredVertical(int startX, int centerY, int buttonGap, boolean leftToRight)
    Centered Vertical layout
    void
    setLayoutDistributedHorizontal(int leftX, int y, int rightX, boolean leftToRight)
    Distributes the buttons horizontal evenly based on the leftX and rightX values.
    void
    setLayoutHorizontal(int startX, int y, int buttonGap, boolean leftToRight)
    Horizontal layout.
    void
    setLayoutVertical(int startX, int startY, int buttonGap, boolean leftToRight)
    Vertical layout
    void
    setPosition(int x, int y)
    Sets the x, y position of the toolbar.
    void
    reverses 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 coord
      buttonGap - - 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 coord
      buttonGap - - 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 leftX
      y - - The top Y coord
      rightX - - 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 x
      y - - the y
    • isMouseOver

      boolean isMouseOver()
      Is the mouse over the toolbar.
      Returns:
      - is mouse over.