Class Field
java.lang.Object
org.collebol.client.gui.graphics.ui.Component
org.collebol.client.gui.graphics.ui.component.Field
The Field class represents a UI
Component.
A Field can hold multiple Components because it has it own ComponentHandler
Usage:
Field field = new Field(new Field.FieldBuilder(1) // 1 = ID
.backgroundColor(Color.BLUE)
.position(new Vector2D(100, 100))
.width(200)
.height(400)
);
- Since:
- 1.0-dev
- Author:
- ColleBol - contact@collebol.org
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat[]float[]floatbooleanbooleanvoidsetBackgroundColor(float[] backgroundColor) voidsetBorderColor(float[] borderColor) voidsetBorderSize(float borderSize) voidsetRepositioning(boolean repositioning) voidsetResizable(boolean resizable) Methods inherited from class org.collebol.client.gui.graphics.ui.Component
getHeight, getId, getPosition, getWidth, setHeight, setId, setPosition, setWidth
-
Constructor Details
-
Field
Field constructor.- Parameters:
builder- A FieldBuilder
-
-
Method Details
-
isResizable
public boolean isResizable() -
setResizable
public void setResizable(boolean resizable) -
isRepositioning
public boolean isRepositioning() -
setRepositioning
public void setRepositioning(boolean repositioning) -
getBackgroundColor
public float[] getBackgroundColor() -
setBackgroundColor
public void setBackgroundColor(float[] backgroundColor) -
getBorderSize
public float getBorderSize() -
setBorderSize
public void setBorderSize(float borderSize) -
getBorderColor
public float[] getBorderColor() -
setBorderColor
public void setBorderColor(float[] borderColor) -
subComponents
- Returns:
- A
ComponentHandlercontaining all the subcomponents of this Field.
-