Klasse ActivityBounds
java.lang.Object
javafx.geometry.Rectangle2D
com.flexganttfx.view.graphics.ActivityBounds
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
-
Feldübersicht
Von Klasse geerbte Felder Rectangle2D
EMPTY -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungActivityBounds(ActivityRef<?> activityRef, double x, double y, double width, double height) Creates activity bounds for the given activity reference and geometry. -
Methodenübersicht
Modifikator und TypMethodeBeschreibungbooleanReturns the activity stored inside these bounds.ActivityRef<?> Returns the activity reference stored inside these bounds.getLayer()Returns the layer that contains the activity.Returns the layout associated with these bounds.intReturns the line index of the activity.Returns the position of the activity within a sequence of activities.Row<?, ?, ?> getRow()Returns the row that contains the activity.inthashCode()voidSets the layout associated with these bounds.voidsetPosition(Position position) Sets the position of the activity within a sequence of activities.toString()Von Klasse geerbte Methoden Rectangle2D
contains, contains, contains, contains, getHeight, getMaxX, getMaxY, getMinX, getMinY, getWidth, intersects, intersects
-
Konstruktordetails
-
ActivityBounds
Creates activity bounds for the given activity reference and geometry.- Parameter:
activityRef- the activity referencex- the x coordinatey- the y coordinatewidth- the widthheight- the height
-
-
Methodendetails
-
getActivity
Returns the activity stored inside these bounds.- Gibt zurück:
- the activity
-
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
-
getActivityRef
Returns the activity reference stored inside these bounds.- Gibt zurück:
- the activity reference
-
setPosition
Sets the position of the activity within a sequence of activities.- Parameter:
position- the position to store
-
getPosition
Returns the position of the activity within a sequence of activities.- Gibt zurück:
- the position
-
setLayout
Sets the layout associated with these bounds.- Parameter:
layout- the layout to store
-
getLayout
-
hashCode
public int hashCode()- Setzt außer Kraft:
hashCodein KlasseRectangle2D
-
equals
- Setzt außer Kraft:
equalsin KlasseRectangle2D
-
toString
- Setzt außer Kraft:
toStringin KlasseRectangle2D
-