- 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 (seeActivityRenderer
). 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
-
-
Field Summary
-
Fields inherited from class javafx.geometry.Rectangle2D
EMPTY
-
-
Constructor Summary
Constructors Constructor Description ActivityBounds(ActivityRef<?> activityRef, double x, double y, double width, double height)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Activity
getActivity()
ActivityRef<?>
getActivityRef()
Layer
getLayer()
Layout
getLayout()
int
getLineIndex()
Position
getPosition()
Row<?,?,?>
getRow()
int
hashCode()
void
setLayout(Layout layout)
void
setPosition(Position position)
String
toString()
-
Methods inherited from class javafx.geometry.Rectangle2D
contains, contains, contains, contains, getHeight, getMaxX, getMaxY, getMinX, getMinY, getWidth, intersects, intersects
-
-
-
-
Constructor Detail
-
ActivityBounds
public ActivityBounds(ActivityRef<?> activityRef, double x, double y, double width, double height)
-
-
Method Detail
-
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 classRectangle2D
-
equals
public final boolean equals(Object obj)
- Overrides:
equals
in classRectangle2D
-
toString
public String toString()
- Overrides:
toString
in classRectangle2D
-
-