Class Button
java.lang.Object
org.collebol.engine.gui.graphics.ui.Component
org.collebol.engine.gui.graphics.ui.component.Button
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
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat[]float[]floatgetText()voidsetBackgroundColor(float[] backgroundColor) voidsetBorderColor(float[] borderColor) voidsetBorderSize(float borderSize) voidMethods inherited from class org.collebol.engine.gui.graphics.ui.Component
getHeight, getId, getPosition, getWidth, setHeight, setId, setPosition, setWidth
-
Constructor Details
-
Button
-
-
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
-
setText
-