Class AreaSelector

All Implemented Interfaces:
Drawable

public class AreaSelector extends SelectionTool
A tool to select areas
  • Constructor Details

    • AreaSelector

      public AreaSelector(LevelEditorScreen editor, com.badlogic.gdx.math.Rectangle region)
      Parameters:
      editor - the LevelEditorScreen that this selector will operate on
      region - the mutable region that this selector will mutate
  • Method Details

    • getArea

      public com.badlogic.gdx.math.Rectangle getArea()
      Returns:
      the actively selected region
    • setRegion

      public void setRegion(com.badlogic.gdx.math.Rectangle region)
      Set the region which is being operated on
      Parameters:
      region - new value
    • getName

      public String getName()
      Overrides:
      getName in class SelectionTool
    • endSelection

      public void endSelection()
      Description copied from class: SelectionTool
      End the logical selection
      Overrides:
      endSelection in class SelectionTool
    • cancel

      public void cancel()
      Description copied from class: EditorTool
      Called when the user presses Escape while this is the active tool
      Overrides:
      cancel in class SelectionTool