Klasse 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).
Seit:
1.0
  • Konstruktordetails

    • ActivityBounds

      public ActivityBounds(ActivityRef<?> activityRef, double x, double y, double width, double height)
      Creates activity bounds for the given activity reference and geometry.
      Parameter:
      activityRef - the activity reference
      x - the x coordinate
      y - the y coordinate
      width - the width
      height - the height
  • Methodendetails

    • getActivity

      public Activity getActivity()
      Returns the activity stored inside these bounds.
      Gibt zurück:
      the activity
    • getLayer

      public Layer getLayer()
      Returns the layer that contains the activity.
      Gibt zurück:
      the activity layer
    • getLineIndex

      public int getLineIndex()
      Returns the line index of the activity.
      Gibt zurück:
      the line index
    • getRow

      public Row<?,?,?> getRow()
      Returns the row that contains the activity.
      Gibt zurück:
      the parent row
    • getActivityRef

      public ActivityRef<?> getActivityRef()
      Returns the activity reference stored inside these bounds.
      Gibt zurück:
      the activity reference
    • setPosition

      public void setPosition(Position position)
      Sets the position of the activity within a sequence of activities.
      Parameter:
      position - the position to store
    • getPosition

      public Position getPosition()
      Returns the position of the activity within a sequence of activities.
      Gibt zurück:
      the position
    • setLayout

      public void setLayout(Layout layout)
      Sets the layout associated with these bounds.
      Parameter:
      layout - the layout to store
    • getLayout

      public Layout getLayout()
      Returns the layout associated with these bounds.
      Gibt zurück:
      the layout
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Rectangle2D
    • equals

      public boolean equals(Object obj)
      Setzt außer Kraft:
      equals in Klasse Rectangle2D
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Rectangle2D