Class 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 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()