Module com.flexganttfx.view
Package com.flexganttfx.view.graphics
Class GraphicsBase.ContextMenuParameter<R extends Row<?,?,?>>
java.lang.Object
com.flexganttfx.view.graphics.GraphicsBase.ContextMenuParameter<R>
- Type Parameters:
R
- the type of the rows used in the graphics view
- Enclosing class:
- GraphicsBase<R extends Row<?,
?, ?>>
A callback parameter class used for displaying a context menu. Instances
of this class will be passed constructed based on the information
available at the location of the context menu trigger event.
- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionContextMenuParameter
(GraphicsBase<R> graphics, R row, List<ActivityRef<?>> activities, Layout layout, Instant time, LocalTime localTime) Constructs a new context menu parameter object. -
Method Summary
Modifier and TypeMethodDescriptionfinal List<ActivityRef<?>>
Returns the activities found at the location where the context menu has been requested.final GraphicsBase<R>
Returns the graphics view where the context menu has been requested.Returns the layout found at the location where the context menu has been requested.Returns the local time found at the location where the context menu has been requested.final R
getRow()
Returns the row where the context menu has been requested.getTime()
Returns the time found at the location where the context menu has been requested.
-
Constructor Details
-
ContextMenuParameter
public ContextMenuParameter(GraphicsBase<R> graphics, R row, List<ActivityRef<?>> activities, Layout layout, Instant time, LocalTime localTime) Constructs a new context menu parameter object.- Parameters:
graphics
- the view where the context menu has been requestedrow
- the row where the context menu has been requestedactivities
- the activities found at the location within the row where the context menu has been requestedlayout
- the layout found at the location within the row where the context menu has been requestedtime
- the time found at the location within the row where the context menu has been requestedlocalTime
- the local time found at the location within the row where the context menu has been requested- Since:
- 1.0
-
-
Method Details
-
getGraphics
Returns the graphics view where the context menu has been requested.- Returns:
- the graphics view
- Since:
- 1.0
-
getRow
Returns the row where the context menu has been requested.- Returns:
- the row
- Since:
- 1.0
-
getActivities
Returns the activities found at the location where the context menu has been requested.- Returns:
- the activities
- Since:
- 1.0
-
getLayout
Returns the layout found at the location where the context menu has been requested.- Returns:
- the layout (e.g. GanttLayout)
- Since:
- 1.0
-
getLocalTime
Returns the local time found at the location where the context menu has been requested.- Returns:
- the local time (e.g. 6pm)
- Since:
- 1.0
-
getTime
Returns the time found at the location where the context menu has been requested.- Returns:
- the time
- Since:
- 1.0
-