Class ActivityBounds

java.lang.Object
javafx.geometry.Rectangle2D
com.flexganttfx.view.graphics.ActivityBounds

public final class ActivityBounds
extends Rectangle2D
Activity bounds contain the visual bounds of and the reference to an activity. They are the result of a call to an activity renderer (see ActivityRenderer). They are needed for hitpoint detection, so that activities can be located based on x and y coordinates (e.g. mouse event coordinates).
Since:
1.0
  • Constructor Details

    • ActivityBounds

      public ActivityBounds​(ActivityRef<?> activityRef, double x, double y, double width, double height)
  • Method Details

    • getActivity

      public final Activity getActivity()
    • getLayer

      public final Layer getLayer()
    • getLineIndex

      public final int getLineIndex()
    • getRow

      public final Row<?,​?,​?> getRow()
    • getActivityRef

      public final ActivityRef<?> getActivityRef()
    • setPosition

      public final void setPosition​(Position position)
    • getPosition

      public final Position getPosition()
    • setLayout

      public final void setLayout​(Layout layout)
    • getLayout

      public final Layout getLayout()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Rectangle2D
    • equals

      public final boolean equals​(Object obj)
      Overrides:
      equals in class Rectangle2D
    • toString

      public String toString()
      Overrides:
      toString in class Rectangle2D