Class Component

java.lang.Object
org.collebol.client.gui.graphics.ui.Component
Direct Known Subclasses:
Button, Field

public abstract class Component extends Object
The Component class is an abstract class that represents a UI component in the game. It contains properties for the component's ID, position, width, and height, along with their respective getters and setters.
Since:
1.0-dev
Author:
ColleBol - contact@collebol.org
  • Constructor Details

    • Component

      public Component()
  • Method Details

    • getHeight

      public float getHeight()
    • setHeight

      public void setHeight(float height)
    • getWidth

      public float getWidth()
    • setWidth

      public void setWidth(float width)
    • getPosition

      public Vector2D getPosition()
    • setPosition

      public void setPosition(Vector2D position)
    • getId

      public int getId()
    • setId

      public void setId(int id)