java.lang.Object
org.collebol.engine.gui.graphics.ui.Component
org.collebol.engine.gui.graphics.ui.component.Button

public class Button extends Component
The Button class represents a UI Component. A Button can hold text and a action field. So what will happen wen someone clicks the button.

Usage:

     Button button = new Button(new Button.ButtonBuilder()
         .text(new Text(new Text.TextBuilder()))
         .backgroundColor(Color.BLUE)
         .width(100)
         .height(100)
         //etc
     );
 
Since:
1.0-dev
Author:
ColleBol - contact@collebol.org
  • Constructor Details

  • Method Details

    • getBorderColor

      public float[] getBorderColor()
    • setBorderColor

      public void setBorderColor(float[] borderColor)
    • getBorderSize

      public float getBorderSize()
    • setBorderSize

      public void setBorderSize(float borderSize)
    • getBackgroundColor

      public float[] getBackgroundColor()
    • setBackgroundColor

      public void setBackgroundColor(float[] backgroundColor)
    • getText

      public Text getText()
    • setText

      public void setText(Text text)