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

public class Field extends Component
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
  • Constructor Details

    • Field

      public Field(Field.FieldBuilder builder)
      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

      public ComponentHandler subComponents()
      Returns:
      A ComponentHandler containing all the subcomponents of this Field.