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
-
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
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 Details
-
ActivityBounds
-
-
Method Details
-
getActivity
-
getLayer
-
getLineIndex
public final int getLineIndex() -
getRow
-
getActivityRef
-
setPosition
-
getPosition
-
setLayout
-
getLayout
-
hashCode
public final int hashCode()- Overrides:
hashCode
in classRectangle2D
-
equals
- Overrides:
equals
in classRectangle2D
-
toString
- Overrides:
toString
in classRectangle2D
-