Module com.flexganttfx.view
Package com.flexganttfx.view.graphics
Class GraphicsBase<R extends Row<?,?,?>>
java.lang.Object
javafx.scene.Node
javafx.scene.Parent
javafx.scene.layout.Region
javafx.scene.control.Control
com.flexganttfx.view.util.FlexGanttFXControl
com.flexganttfx.view.graphics.GraphicsBase<R>
- Type Parameters:
R
- the type of the rows shown by the graphics
- All Implemented Interfaces:
Styleable
,EventTarget
,Skinnable
- Direct Known Subclasses:
ListViewGraphics
,SingleRowGraphics
,SplitPaneGraphics
,VBoxGraphics
The graphics view control is responsible for the rendering of activities and
system layers, the editing of activities, the event notifications, the hit
detection, system layer management, and for context menu support.
Background layers are drawn "behind" activities, foreground layers are drawn "in front of" activities. Each one of these lists are already pre-populated but can be changed by the application. For more information on the available system layers, please refer to their individual documentation.
System layers can be turned on and off directly via the API of
Rendering
The graphics view uses the canvas API of JavaFX. This is due to the complex nature of a Gantt chart and due to the large data volumes often observed in Gantt charts. Directly rendering large quantities of activities into a bitmap is much faster than constantly updating the scene graph and reapplying CSS styling. FlexGanttFX implements a pluggable renderer architecture where renderer instances can be mapped to activity types, very similar to the way Swing was doing it. The following code is an example of how to register a custom renderer for a given "Flight" activity type. Please note that the graphics view is capable of displaying activities in three different layouts, hence the layout type must also be passed to the method.
setActivityRenderer(Flight.class, GanttLayout.class, new FlightRenderer());
System Layers
Activities are not the only thing that need to be rendered. There are also the current time ("now"), grid lines, inner lines, agenda / chart lines, etc... All of these things are rendered by so-called system layers (seeSystemLayer
). The graphics view manages two lists of these layers.
One list for background layers (getBackgroundSystemLayers()
) and one
list for foreground layers (getForegroundSystemLayers()
).
Background layers are drawn "behind" activities, foreground layers are drawn "in front of" activities. Each one of these lists are already pre-populated but can be changed by the application. For more information on the available system layers, please refer to their individual documentation.
System layers can be turned on and off directly via the API of
GraphicsBase
. There is a boolean property for each layer that ships
with FlexGanttFX. The value of these properties can be set by calling the
methods that follow the pattern setShowXYZLayer
. System layers
that are controlled like this will appear and disappear with a fade in / fade
out animation, while calling SystemLayer.setVisible(boolean)
directly
will be without any animation.
Editing Customization
Two different callbacks are used to control the editing behaviour of activities. The first maps a mouse event / mouse location to anGraphicsBase.EditMode
and can be registered by calling
setEditModeCallback(Class, Class, Callback)
. The second callback is
used to determine whether a given editing mode / operation can be applied to
an activity at all. This callback is registered by calling
setActivityEditingCallback(Class, Callback)
. Most applications will
only need to work with the second callback and keep the defaults for the edit
mode locations (for example: right edge used to change end time, left edge
used to change start time).
Notifications / Events
Events of typeActivityEvent
are sent whenever the user performs a
change inside the graphics view. Applications that want to receive these
events can either call any one of the setOnActivityXYZEvent()
methods or by adding an event handler directly via
addEventHandler(ActionEvent.ACTIVITY_XYZ, ...)
. Events are fired
while the change is being performed and once it has been completed. For this
the ActivityEvent
class lists event types with the two different
endings CHANGING and CHANGED.
Filtering
The data displayed by the graphics control can be filtered in two ways: first by showing / hiding rows, second by showing / hiding activities. Row filtering is done by the parent GanttChart controls while activity filtering is done by the graphics control via an activity filter predicate:
setActivityFilter(Predicate<Activity> filter);
Finding / Lookup / Hitpoint Detection
The graphics view provides support for finding out information about a given position. Activities can be found by callinggetActivityBoundsAt(double, double)
or
getActivityRefAt(double, double)
. The time at an x-coordinate can be
looked up by calling getTimeAt(double)
. The opposite direction is
also available: a location can be found for a given time by calling
getLocation(Instant)
.
Context Menu
Context menus can be set on any control in JavaFX but due to the complexitiy of the graphics view it does make sense to provide additional built-in support. By callingsetContextMenuCallback(Callback)
a context menu
specific callback can be registered with the graphics control. This callback
will be invoked when the user triggers the context menu. A callback parameter
object (see GraphicsBase.ContextMenuParameter
) will be passed to the callback
already populated with the most important values that might be relevant for
building a context menu.- Since:
- 1.0
-
Property Summary
PropertiesTypePropertyDescriptionfinal ObjectProperty<Predicate<Activity>>
A property used to store a filter function, which determines if an activity will be rendered or not.final BooleanProperty
final BooleanProperty
A property used to enable / disable the autogrid mode.final BooleanProperty
Controls whether the marked time interval property of theEventline
will be automatically set when the user performs certain editing operations (e.g.final ReadOnlyBooleanProperty
A property used to determine if the graphics will be redrawn whenever the data in any of the activity repository changes.final DoubleProperty
A canvas buffer size that is larger than zero increases the rendering performance of the Gantt chart substantially as fewer repaints of each row's canvas are needed.A property used to store a callback which is used for creating a context menu.final BooleanProperty
A property used to enable / disable the debug mode.A property used to store the current drag and drop information.final ObjectProperty<Callback<ActivityRef<?>,
Image>> A property used to store a callback that will return the layer on which a dragged activity will be placed once the drop operation has finished.final ReadOnlyObjectProperty<ActivityRef<?>>
A property used to store the currently active editing mode, e.g.final BooleanProperty
Controls whether the view allows the user to interactively resize the row / change the row height.final DoubleProperty
final BooleanProperty
final DoubleProperty
A property used to store a fixed cell size for controls that are based on the virtual flow control.final ReadOnlyBooleanProperty
A convenience read-only property to check whether any kind of grid is active, either the automatic grid or a virtual grid.final StyleableObjectProperty<Paint>
final StyleableObjectProperty<Paint>
final StyleableObjectProperty<Paint>
final LongProperty
A property used to store the delay between two "blinks" of highlighted rows or activities.final ReadOnlyBooleanProperty
A read-only property used to control the highlighting effect.final BooleanProperty
Determines whether the user can perform a horizontal drag with a mouse drag.final ReadOnlyObjectProperty<ActivityRef<?>>
final ReadOnlyObjectProperty<Layout>
final ReadOnlyObjectProperty<R>
final StyleableObjectProperty<Paint>
final ReadOnlyBooleanProperty
A boolean property used to indicate whether the lasso selection tool is currently in use or not.final BooleanProperty
A property used to control whether the user can use the lasso for selecting multiple activities at once.A property used to store the currently used lasso selection behaviour.final BooleanProperty
A boolean property used to indicate whether the lasso selection tool is using the currently active grid settings.final IntegerProperty
A property used to store the number of grid levels that the user wants to see in the graphics view.final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<LassoEvent>>
final ObjectProperty<EventHandler<LassoEvent>>
final ObjectProperty<EventHandler<LassoEvent>>
final ObjectProperty<EventHandler<LassoEvent>>
final ObjectProperty<Node>
final ReadOnlyObjectProperty<ActivityRef<?>>
final ObjectProperty<Predicate<R>>
A predicate used to filter the rows.final ObjectProperty<Callback<GraphicsBase<R>,
GraphicsBase.RowHeader<R>>> A property used to store a callback for creating a node that will be placed to the left of each row in the graphics view.final DoubleProperty
Specifies the width of the so-called "row headers".final ListProperty<R>
Returns the property used to store the list of rows.final BooleanProperty
Returns the property that specifies whether the various canvas API-based rendering parts inside this framework will always callGraphicsContext.save()
to save the current state of the context before changing its state (followed byGraphicsContext.restore()
to restore the old state).A property used to store the currently supported selection mode.final BooleanProperty
final BooleanProperty
final BooleanProperty
final BooleanProperty
final BooleanProperty
final BooleanProperty
A property used to control wether a horizontal cursor line will be shown by the graphics view.final BooleanProperty
final BooleanProperty
final BooleanProperty
final BooleanProperty
Controls whether theLinksCanvas
will be visible and links will be drawn.final BooleanProperty
A property used to control whether vertical lines will be shown for a marked time interval (e.g.final BooleanProperty
final BooleanProperty
Determines if the row headers will be shown to the user or not.final BooleanProperty
final BooleanProperty
final BooleanProperty
A property used to control whether a vertical cursor line will be shown by the graphics view.final BooleanProperty
final BooleanProperty
final ObjectProperty<Timeline>
A property used to store a reference to the timeline control above the graphics.final StyleableObjectProperty<Paint>
final ObjectProperty<VirtualGrid<?>>
final StyleableObjectProperty<Paint>
Properties inherited from class javafx.scene.control.Control
contextMenu, skin, tooltip
Properties inherited from class javafx.scene.layout.Region
background, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, width
Properties inherited from class javafx.scene.Parent
needsLayout
Properties inherited from class javafx.scene.Node
accessibleHelp, accessibleRoleDescription, accessibleRole, accessibleText, blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effectiveNodeOrientation, effect, eventDispatcher, focused, focusTraversable, focusVisible, focusWithin, hover, id, inputMethodRequests, layoutBounds, layoutX, layoutY, localToParentTransform, localToSceneTransform, managed, mouseTransparent, nodeOrientation, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onInputMethodTextChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragEntered, onMouseDragExited, onMouseDragged, onMouseDragOver, onMouseDragReleased, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onRotate, onRotationFinished, onRotationStarted, onScrollFinished, onScroll, onScrollStarted, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, onZoomFinished, onZoom, onZoomStarted, opacity, parent, pickOnBounds, pressed, rotate, rotationAxis, scaleX, scaleY, scaleZ, scene, style, translateX, translateY, translateZ, viewOrder, visible
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
GraphicsBase.ContextMenuParameter<R extends Row<?,
?, ?>> A callback parameter class used for displaying a context menu.static enum
An enumerator used to define how to visuzalize the dragged activity during a drag and drop operation.static class
The drag and drop info class aggregates the various pieces of information that the application might be interested in while a drag and drop operation is in progress.static final class
A callback parameter object used for determining if the proposedGraphicsBase.EditMode
is currently allowed or not.static enum
An enumeration of possible editing states that the graphics view can be in.static final class
A callback parameter object used by the edit mode callback that provides information about the context for which the edit mode will be determined.static enum
An enumerator used to control the selection behaviour of the lasso.static final class
GraphicsBase.RowControlsParameter<R extends Row<?,
?, ?>> A callback parameter object used to provide context for the row controls factory.static enum
An enumerator used to define how many rows can show their row editors at the same time.static final class
GraphicsBase.RowEditorParameter<R extends Row<?,
?, ?>> A callback parameter object used to provide context for the row editor factory.static class
GraphicsBase.RowHeader<R extends Row<?,
?, ?>> A row header is a node that can be displayed to the left of each row inside the graphics area.static enum
An enumerator used to control the selection behaviour of the graphics view. -
Field Summary
Fields inherited from class javafx.scene.layout.Region
USE_COMPUTED_SIZE, USE_PREF_SIZE
Fields inherited from class javafx.scene.Node
BASELINE_OFFSET_SAME_AS_HEIGHT
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new graphics view and initializes the following: Virtual grid settings (1, 5, 10, 15, 30, 60 Minutes) Activity renderers for several of the default model classes. Edit mode callbacks for several of the default model classes. Activity editing callbacks. Background and foreground layers. Calendars (e. -
Method Summary
Modifier and TypeMethodDescriptionfinal ObjectProperty<Predicate<Activity>>
A property used to store a filter function, which determines if an activity will be rendered or not.final BooleanProperty
final BooleanProperty
A property used to enable / disable the autogrid mode.final BooleanProperty
Controls whether the marked time interval property of theEventline
will be automatically set when the user performs certain editing operations (e.g.final ReadOnlyBooleanProperty
A property used to determine if the graphics will be redrawn whenever the data in any of the activity repository changes.final DoubleProperty
A canvas buffer size that is larger than zero increases the rendering performance of the Gantt chart substantially as fewer repaints of each row's canvas are needed.A property used to store a callback which is used for creating a context menu.final BooleanProperty
A property used to enable / disable the debug mode.A property used to store the current drag and drop information.final ObjectProperty<Callback<ActivityRef<?>,
Image>> void
Performs a redraw of the displayed links and logs the given reason.A property used to store a callback that will return the layer on which a dragged activity will be placed once the drop operation has finished.final ReadOnlyObjectProperty<ActivityRef<?>>
A property used to store the currently active editing mode, e.g.final BooleanProperty
Controls whether the view allows the user to interactively resize the row / change the row height.final DoubleProperty
final BooleanProperty
final DoubleProperty
A property used to store a fixed cell size for controls that are based on the virtual flow control.final ActivityBounds
getActivityBoundsAt
(double x, double y) Finds the activity bounds at the given location.final <A extends Activity>
Callback<GraphicsBase.EditingCallbackParameter,Boolean> getActivityEditingCallback
(Class<A> activityType) Returns the value ofactivityFilterProperty()
.final ActivityRef<?>
getActivityRefAt
(double x, double y) Finds the activity reference at the given location.final <A extends Activity>
ActivityRenderer<? extends A>getActivityRenderer
(Class<? extends A> activityType, Class<? extends Layout> layoutType) final List<ActivityBounds>
getAllActivityBoundsAt
(double x, double y) Returns the bounds of all activities found at the given location.final List<ActivityRef<?>>
getAllActivityRefsAt
(double x, double y) Returns the references to all activities found at the given location.final List<ActivityRenderer<?>>
Returns a list of all currently registered activity renderers.final List<CalendarActivity>
getAllCalendarActivitiesAt
(double x, double y) Finds all calendar activities at the given location.final <SL extends SystemLayer<R>>
SLgetBackgroundSystemLayer
(Class<SL> layerType) final ObservableList<SystemLayer<R>>
final ObservableList<Calendar<? extends CalendarActivity>>
Returns the list of calendars that are registered with the graphics view.final double
Gets the value of thecanvasBuffer
property.static List<CssMetaData<? extends Styleable,
?>> Returns the value ofcontextMenuCallbackProperty()
.final List<CssMetaData<? extends Styleable,
?>> Gets the value of thedragAndDropFeedback
property.Returns the value ofdragAndDropInfoProperty()
.final Callback<ActivityRef<?>,
Image> Gets the value of thedragImageProvider
property.Returns the value ofdropLayerProviderProperty()
.final Instant
Calculates and returns the earliest time used by all rows in the model.final ActivityRef<?>
Gets the value of theeditedActivity
property.final GraphicsBase.EditMode
Returns the value ofeditModeProperty()
.getEditModeCallback
(Class<? extends MutableActivity> activityType, Class<? extends Layout> layoutType) final double
Gets the value of thefadeInOutVisibilityChangesDuration
property.final double
Returns the value offixedCellSizeProperty()
.final <SL extends SystemLayer<R>>
SLgetForegroundSystemLayer
(Class<SL> layerType) final ObservableList<SystemLayer<R>>
final Paint
Gets the value of thegridLineColor1
property.final Paint
Gets the value of thegridLineColor2
property.final Paint
Gets the value of thegridLineColor3
property.final long
Returns the value ofhighlightDelayProperty()
.final ObservableSet<ActivityRef<?>>
Returns a set that is used to store the currently highighted activities.final ObservableSet<Row<?,
?, ?>> Returns a set that is used to store the currently highlighted rows.final ActivityRef<?>
Gets the value of thehoverActivity
property.final Layout
Gets the value of thehoverLayout
property.final R
Gets the value of thehoverRow
property.final Paint
Gets the value of theinnerLinesColor
property.Returns the value of thelassoSelectionBehaviourProperty()
.final Instant
Calculates and returns the latest time used by all rows in the model.final ObservableList<Layer>
Returns the list that is used to store all layers of the model.final Layout
getLayoutAt
(double y) Finds the layout that is being used at the given y-coordinate.final <AL extends ActivityLink<?>>
LinkRenderer<AL>getLinkRenderer
(Class<AL> clazz) Returns a renderer for the given activity link type.final IntervalTree<ActivityLink>
getLinks()
Returns the interval tree that is used to store all activity links of the model.final LocalTime
getLocalTimeAt
(double y) Returns the local time at the given location.final double
getLocation
(Instant time) Returns the x coordinate for the given time.final int
Returns the value ofmaxGridLevelProperty()
.final EventHandler<ActivityEvent>
Gets the value of theonActivityChange
property.final EventHandler<ActivityEvent>
Gets the value of theonActivityChangeFinished
property.final EventHandler<ActivityEvent>
Gets the value of theonActivityChangeOngoing
property.final EventHandler<ActivityEvent>
Gets the value of theonActivityChangeStarted
property.final EventHandler<ActivityEvent>
Gets the value of theonActivityChartHighValueChangeFinished
property.final EventHandler<ActivityEvent>
Gets the value of theonActivityChartHighValueChangeOngoing
property.final EventHandler<ActivityEvent>
Gets the value of theonActivityChartHighValueChangeStarted
property.final EventHandler<ActivityEvent>
Gets the value of theonActivityChartLowValueChangeFinished
property.final EventHandler<ActivityEvent>
Gets the value of theonActivityChartLowValueChangeOngoing
property.final EventHandler<ActivityEvent>
Gets the value of theonActivityChartLowValueChangeStarted
property.final EventHandler<ActivityEvent>
Gets the value of theonActivityChartValueChangeFinished
property.final EventHandler<ActivityEvent>
Gets the value of theonActivityChartValueChangeOngoing
property.final EventHandler<ActivityEvent>
Gets the value of theonActivityChartValueChangeStarted
property.final EventHandler<ActivityEvent>
Gets the value of theonActivityDeleted
property.final EventHandler<ActivityEvent>
Gets the value of theonActivityDragDone
property.final EventHandler<ActivityEvent>
Gets the value of theonActivityDragFinished
property.final EventHandler<ActivityEvent>
Gets the value of theonActivityDragOngoing
property.final EventHandler<ActivityEvent>
Gets the value of theonActivityDragStarted
property.final EventHandler<ActivityEvent>
Gets the value of theonActivityEndTimeChangeFinished
property.final EventHandler<ActivityEvent>
Gets the value of theonActivityEndTimeChangeOngoing
property.final EventHandler<ActivityEvent>
Gets the value of theonActivityEndTimeChangeStarted
property.final EventHandler<ActivityEvent>
Gets the value of theonActivityHorizontalDragFinished
property.final EventHandler<ActivityEvent>
Gets the value of theonActivityHorizontalDragOngoing
property.final EventHandler<ActivityEvent>
Gets the value of theonActivityHorizontalDragStarted
property.final EventHandler<ActivityEvent>
Gets the value of theonActivityPercentageChangeFinished
property.final EventHandler<ActivityEvent>
Gets the value of theonActivityPercentageChangeOngoing
property.final EventHandler<ActivityEvent>
Gets the value of theonActivityPercentageChangeStarted
property.final EventHandler<ActivityEvent>
Gets the value of theonActivityStartTimeChangeFinished
property.final EventHandler<ActivityEvent>
Gets the value of theonActivityStartTimeChangeOngoing
property.final EventHandler<ActivityEvent>
Gets the value of theonActivityStartTimeChangeStarted
property.final EventHandler<ActivityEvent>
Gets the value of theonActivityVerticalDragDone
property.final EventHandler<ActivityEvent>
Gets the value of theonActivityVerticalDragFinished
property.final EventHandler<ActivityEvent>
Gets the value of theonActivityVerticalDragOngoing
property.final EventHandler<ActivityEvent>
Gets the value of theonActivityVerticalDragStarted
property.final EventHandler<LassoEvent>
Gets the value of theonLassoSelection
property.final EventHandler<LassoEvent>
Gets the value of theonLassoSelectionFinished
property.final EventHandler<LassoEvent>
Gets the value of theonLassoSelectionOngoing
property.final EventHandler<LassoEvent>
Gets the value of theonLassoSelectionStarted
property.final Node
Gets the value of theplaceholder
property.final ActivityRef<?>
Gets the value of thepressedActivity
property.final R
getRowAt
(double y) Finds the row at the given y-coordinate.Gets the value of therowControlsFactory
property.getRowDragAndDropCallback
(Class<? extends Row> rowType) Returns a callback that will be invoked when the user drags an activity over a row of the given type.Gets the value of therowEditingMode
property.final Callback<GraphicsBase.RowEditorParameter<R>,
Node> Gets the value of therowEditorFactory
property.final Predicate
Returns the value ofrowFilterProperty()
.final Callback<GraphicsBase<R>,
GraphicsBase.RowHeader<R>> Returns the value ofrowHeaderFactoryProperty()
.final double
Gets the value of therowHeadersWidth
property.final ObservableList<RowPane<R>>
final ObservableList<R>
getRows()
Returns the list that is used to store all rows of the model.final ObservableList<R>
final ObservableList<ActivityRef<?>>
Returns the list of currently selected activities.Returns the value ofselectionModeProperty()
.final <SL extends SystemLayer<R>>
SLgetSystemLayer
(Class<SL> layerType) final Instant
getTimeAt
(double location) Returns the time at the given location.final Timeline
Returns the value oftimelineProperty()
.final Paint
Gets the value of thetimeNowColor
property.final VirtualGrid<?>
Gets the value of thevirtualGrid
property.final ObservableList<VirtualGrid<?>>
final Paint
Gets the value of theweekendColor
property.final ReadOnlyBooleanProperty
A convenience read-only property to check whether any kind of grid is active, either the automatic grid or a virtual grid.final StyleableObjectProperty<Paint>
final StyleableObjectProperty<Paint>
final StyleableObjectProperty<Paint>
final LongProperty
A property used to store the delay between two "blinks" of highlighted rows or activities.final ReadOnlyBooleanProperty
A read-only property used to control the highlighting effect.final BooleanProperty
Determines whether the user can perform a horizontal drag with a mouse drag.final ReadOnlyObjectProperty<ActivityRef<?>>
final ReadOnlyObjectProperty<Layout>
final ReadOnlyObjectProperty<R>
final StyleableObjectProperty<Paint>
final boolean
Gets the value of theanimateRowEditor
property.final boolean
Returns the value ofautoGridEnabledProperty()
.final boolean
Returns the value ofautoMarkedTimeIntervalProperty()
.final boolean
Returns the value ofautomaticRedrawProperty()
.final boolean
Returns the value ofdebugModeProperty()
.final boolean
Gets the value of theenableRowResizing
property.final boolean
Gets the value of thefadeInOutVisibilityChanges
property.final boolean
Returns the value ofgridEnabledProperty()
.final boolean
Returns the value ofhighlightedProperty()
.final boolean
Returns the value ofhorizontalDragEnabledProperty()
.final boolean
Returns the value oflassoActiveProperty()
.final boolean
Returns the value oflassoEnabledProperty()
.final boolean
Returns the value oflassoSnapsToGridProperty()
.final boolean
Returns the value ofsafeRenderingProperty()
.final boolean
Gets the value of theshowAgendaLinesLayer
property.final boolean
Gets the value of theshowCalendarLayer
property.final boolean
Gets the value of theshowChartLinesLayer
property.final boolean
Gets the value of theshowDSTLineLayer
property.final boolean
Gets the value of theshowGridLineLayer
property.final boolean
Returns the value ofshowHorizontalCursorProperty()
.final boolean
Gets the value of theshowHoverTimeIntervalLayer
property.final boolean
Gets the value of theshowInnerLinesLayer
property.final boolean
Gets the value of theshowLayoutLayer
property.final boolean
Gets the value of theshowLinks
property.final boolean
Returns the value ofshowMarkedTimeIntervalProperty()
.final boolean
Gets the value of theshowNowLineLayer
property.final boolean
Gets the value of theshowRowHeaders
property.final boolean
Gets the value of theshowRowLayer
property.final boolean
Gets the value of theshowSelectedTimeIntervalsLayer
property.final boolean
Returns the value ofshowVerticalCursorProperty()
.final boolean
Gets the value of theshowZoneId
property.final boolean
Gets the value of theshowZoomTimeIntervalLayer
property.final ReadOnlyBooleanProperty
A boolean property used to indicate whether the lasso selection tool is currently in use or not.final BooleanProperty
A property used to control whether the user can use the lasso for selecting multiple activities at once.A property used to store the currently used lasso selection behaviour.final BooleanProperty
A boolean property used to indicate whether the lasso selection tool is using the currently active grid settings.final IntegerProperty
A property used to store the number of grid levels that the user wants to see in the graphics view.final void
moveLayerBackward
(Layer layer) Moves the given layer backward within the stack of layers.final void
moveLayerForward
(Layer layer) Moves the given layer forward within the stack of layers.final void
moveLayerToBack
(Layer layer) Moves the given layer to the back so that the activities located on it will be drawn first and all other activities on other layers will be drawn on top of them.final void
moveLayerToFront
(Layer layer) Moves the given layer to the front so that the activities located on it will be drawn on top of all other activities.final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<ActivityEvent>>
final ObjectProperty<EventHandler<LassoEvent>>
final ObjectProperty<EventHandler<LassoEvent>>
final ObjectProperty<EventHandler<LassoEvent>>
final ObjectProperty<EventHandler<LassoEvent>>
final ObjectProperty<Node>
final ReadOnlyObjectProperty<ActivityRef<?>>
void
redraw()
Performs a redraw of the displayed activities.void
Performs a redraw of the displayed activities and logs the given reason.void
Forces an immediate redraw of all rows.final ObjectProperty<Predicate<R>>
A predicate used to filter the rows.final ObjectProperty<Callback<GraphicsBase<R>,
GraphicsBase.RowHeader<R>>> A property used to store a callback for creating a node that will be placed to the left of each row in the graphics view.final DoubleProperty
Specifies the width of the so-called "row headers".final ListProperty<R>
Returns the property used to store the list of rows.final BooleanProperty
Returns the property that specifies whether the various canvas API-based rendering parts inside this framework will always callGraphicsContext.save()
to save the current state of the context before changing its state (followed byGraphicsContext.restore()
to restore the old state).A property used to store the currently supported selection mode.final void
setActivityEditingCallback
(Class<? extends MutableActivity> activityType, Callback<GraphicsBase.EditingCallbackParameter, Boolean> callback) Registers a callback used to determine if a given editing operation can be used for a given activity.final void
setActivityFilter
(Predicate<Activity> filter) Sets the value ofactivityFilterProperty()
.final <A extends Activity>
voidsetActivityRenderer
(Class<? extends A> activityType, Class<? extends Layout> layoutType, ActivityRenderer<? extends A> renderer) Registers a renderer for the given activity and layout type.final void
setAnimateRowEditor
(boolean animate) Sets the value of theanimateRowEditor
property.final void
setAutoGridEnabled
(boolean auto) Sets the value ofautoGridEnabledProperty()
.final void
setAutoMarkedTimeInterval
(boolean auto) Sets the value ofautoMarkedTimeIntervalProperty()
.final void
setAutomaticRedraw
(boolean automatic) Sets the value ofautomaticRedrawProperty()
.final void
setCanvasBuffer
(double canvasBuffer) Sets the value of thecanvasBuffer
property.final void
Sets the value ofcontextMenuCallbackProperty()
.final void
setDebugMode
(boolean debug) Sets the value ofdebugModeProperty()
.final void
Sets the value of thedragAndDropFeedback
property.final void
setDragImageProvider
(Callback<ActivityRef<?>, Image> provider) Sets the value of thedragImageProvider
property.final void
Sets the value ofdropLayerProviderProperty()
.final void
setEditModeCallback
(Class<? extends MutableActivity> activityType, Class<? extends Layout> layoutType, Callback<GraphicsBase.EditModeCallbackParameter, GraphicsBase.EditMode> callback) final void
setEnableRowResizing
(boolean enableRowResizing) Sets the value of theenableRowResizing
property.final void
setFadeInOutVisibilityChanges
(boolean show) Sets the value of thefadeInOutVisibilityChanges
property.final void
setFadeInOutVisibilityChangesDuration
(double duration) Sets the value of thefadeInOutVisibilityChangesDuration
property.final void
setFixedCellSize
(double size) Sets the value offixedCellSizeProperty()
.void
setGridLineColor1
(Paint color) Sets the value of thegridLineColor1
property.void
setGridLineColor2
(Paint color) Sets the value of thegridLineColor2
property.void
setGridLineColor3
(Paint color) Sets the value of thegridLineColor3
property.final void
setHighlightDelay
(long delay) Sets the value ofhighlightDelayProperty()
.final void
setHorizontalDragEnabled
(boolean enabled) Sets the value ofhorizontalDragEnabledProperty()
.void
setInnerLinesColor
(Paint color) Sets the value of theinnerLinesColor
property.final void
setLassoEnabled
(boolean enabled) Sets the value oflassoEnabledProperty()
.final void
Sets the value oflassoSelectionBehaviourProperty()
.final void
setLassoSnapsToGrid
(boolean snaps) Sets the value oflassoSnapsToGridProperty()
.final void
setLinkRenderer
(Class<? extends Activity> clazz, LinkRenderer<?> renderer) Sets a custom link renderer for the given type of activity link.final void
setMaxGridLevel
(int max) Sets the value ofmaxGridLevelProperty()
.final void
Sets the value of theonActivityChange
property.final void
Sets the value of theonActivityChangeFinished
property.final void
Sets the value of theonActivityChangeOngoing
property.final void
Sets the value of theonActivityChangeStarted
property.final void
Sets the value of theonActivityChartHighValueChangeFinished
property.final void
Sets the value of theonActivityChartHighValueChangeOngoing
property.final void
Sets the value of theonActivityChartHighValueChangeStarted
property.final void
Sets the value of theonActivityChartLowValueChangeFinished
property.final void
Sets the value of theonActivityChartLowValueChangeOngoing
property.final void
Sets the value of theonActivityChartLowValueChangeStarted
property.final void
Sets the value of theonActivityChartValueChangeFinished
property.final void
Sets the value of theonActivityChartValueChangeOngoing
property.final void
Sets the value of theonActivityChartValueChangeStarted
property.final void
Sets the value of theonActivityDeleted
property.final void
Sets the value of theonActivityDragDone
property.final void
Sets the value of theonActivityDragFinished
property.final void
Sets the value of theonActivityDragOngoing
property.final void
Sets the value of theonActivityDragStarted
property.final void
Sets the value of theonActivityEndTimeChangeFinished
property.final void
Sets the value of theonActivityEndTimeChangeOngoing
property.final void
Sets the value of theonActivityEndTimeChangeStarted
property.final void
Sets the value of theonActivityHorizontalDragFinished
property.final void
Sets the value of theonActivityHorizontalDragOngoing
property.final void
Sets the value of theonActivityHorizontalDragStarted
property.final void
Sets the value of theonActivityPercentageChangeFinished
property.final void
Sets the value of theonActivityPercentageChangeOngoing
property.final void
Sets the value of theonActivityPercentageChangeStarted
property.final void
Sets the value of theonActivityStartTimeChangeFinished
property.final void
Sets the value of theonActivityStartTimeChangeOngoing
property.final void
Sets the value of theonActivityStartTimeChangeStarted
property.final void
Sets the value of theonActivityVerticalDragDone
property.final void
Sets the value of theonActivityVerticalDragFinished
property.final void
Sets the value of theonActivityVerticalDragOngoing
property.final void
Sets the value of theonActivityVerticalDragStarted
property.final void
Sets the value of theonLassoSelection
property.final void
Sets the value of theonLassoSelectionFinished
property.final void
Sets the value of theonLassoSelectionOngoing
property.final void
Sets the value of theonLassoSelectionStarted
property.final void
setPlaceholder
(Node node) Sets the value of theplaceholder
property.final void
Sets the value of therowControlsFactory
property.final void
setRowDragAndDropCallback
(Class<? extends Row> rowType, Callback<GraphicsBase.DragAndDropInfo, Boolean> callback) Specifies a callback that will be invoked when the user drags an activity over a row of the given type.final void
Sets the value of therowEditingMode
property.final void
Sets the value of therowEditorFactory
property.final void
setRowFilter
(Predicate<R> predicate) Sets the value ofrowFilterProperty()
.final void
setRowHeaderFactory
(Callback<GraphicsBase<R>, GraphicsBase.RowHeader<R>> factory) Sets the value ofrowHeaderFactoryProperty()
.final void
setRowHeadersWidth
(double rowHeadersWidth) Sets the value of therowHeadersWidth
property.final void
setRows
(ObservableList<R> rows) Sets the value of therowsProperty()
.final void
setSafeRendering
(boolean safe) Sets the value ofsafeRenderingProperty()
.final void
Sets the value ofselectionModeProperty()
.final void
setShowAgendaLinesLayer
(boolean show) Sets the value of theshowAgendaLinesLayer
property.final void
setShowCalendarLayer
(boolean show) Sets the value of theshowCalendarLayer
property.final void
setShowChartLinesLayer
(boolean show) Sets the value of theshowChartLinesLayer
property.final void
setShowDSTLineLayer
(boolean show) Sets the value of theshowDSTLineLayer
property.final void
setShowGridLineLayer
(boolean show) Sets the value of theshowGridLineLayer
property.final void
setShowHorizontalCursor
(boolean show) Sets the value ofshowHorizontalCursorProperty()
.final void
setShowHoverTimeIntervalLayer
(boolean show) Sets the value of theshowHoverTimeIntervalLayer
property.final void
setShowInnerLinesLayer
(boolean show) Sets the value of theshowInnerLinesLayer
property.final void
setShowLayoutLayer
(boolean show) Sets the value of theshowLayoutLayer
property.final void
setShowLinks
(boolean showLinks) Sets the value of theshowLinks
property.final void
setShowMarkedTimeInterval
(boolean show) Sets the value ofshowMarkedTimeIntervalProperty()
.final void
setShowNowLineLayer
(boolean show) Sets the value of theshowNowLineLayer
property.final void
setShowRowHeaders
(boolean showRowHeaders) Sets the value of theshowRowHeaders
property.final void
setShowRowLayer
(boolean show) Sets the value of theshowRowLayer
property.final void
setShowSelectedTimeIntervalsLayer
(boolean show) Sets the value of theshowSelectedTimeIntervalsLayer
property.final void
setShowVerticalCursor
(boolean show) Sets the value ofshowVerticalCursorProperty()
.final void
setShowZoneId
(boolean show) Sets the value of theshowZoneId
property.final void
setShowZoomTimeIntervalLayer
(boolean show) Sets the value of theshowZoomTimeIntervalLayer
property.final void
setTimeline
(Timeline timeline) Sets the value oftimelineProperty()
.void
setTimeNowColor
(Paint color) Sets the value of thetimeNowColor
property.final void
setVirtualGrid
(VirtualGrid<?> grid) Sets the value of thevirtualGrid
property.void
setWeekendColor
(Paint color) Sets the value of theweekendColor
property.final BooleanProperty
final void
Makes theTimeline
show a time range starting with the earliest time used and ending with the latest time used by all currently loaded rows.final BooleanProperty
final BooleanProperty
final BooleanProperty
final void
Makes theTimeline
start with the earliest time used by the currently loaded rows.final BooleanProperty
final BooleanProperty
A property used to control wether a horizontal cursor line will be shown by the graphics view.final BooleanProperty
final BooleanProperty
final void
Makes theTimeline
show the latest time used by the currently loaded rows.final BooleanProperty
final BooleanProperty
Controls whether theLinksCanvas
will be visible and links will be drawn.final BooleanProperty
A property used to control whether vertical lines will be shown for a marked time interval (e.g.final BooleanProperty
final BooleanProperty
Determines if the row headers will be shown to the user or not.final BooleanProperty
final BooleanProperty
final BooleanProperty
A property used to control whether a vertical cursor line will be shown by the graphics view.final BooleanProperty
final BooleanProperty
final void
startRowEditing
(R row) final void
final void
stopRowEditing
(R row) final ObjectProperty<Timeline>
A property used to store a reference to the timeline control above the graphics.final StyleableObjectProperty<Paint>
final ObjectProperty<VirtualGrid<?>>
final StyleableObjectProperty<Paint>
Methods inherited from class com.flexganttfx.view.util.FlexGanttFXControl
getUserAgentStylesheet
Methods inherited from class javafx.scene.control.Control
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, createDefaultSkin, executeAccessibleAction, getBaselineOffset, getContextMenu, getCssMetaData, getInitialFocusTraversable, getSkin, getTooltip, isResizable, layoutChildren, queryAccessibleAttribute, setContextMenu, setSkin, setTooltip, skinProperty, tooltipProperty
Methods inherited from class javafx.scene.layout.Region
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getWidth, heightProperty, insetsProperty, isCacheShape, isCenterShape, isScaleShape, isSnapToPixel, layoutInArea, layoutInArea, layoutInArea, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, setWidth, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, snapToPixelProperty, widthProperty
Methods inherited from class javafx.scene.Parent
getChildren, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, requestParentLayout, setNeedsLayout, updateBounds
Methods inherited from class javafx.scene.Node
accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, focusVisibleProperty, focusWithinProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInitialCursor, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, getViewOrder, hasProperties, hoverProperty, idProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isFocusVisible, isFocusWithin, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setViewOrder, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, viewOrderProperty, visibleProperty
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface javafx.css.Styleable
getStyleableNode
-
Property Details
-
rowFilter
A predicate used to filter the rows. -
activityFilter
A property used to store a filter function, which determines if an activity will be rendered or not. An activity will be drawn if the function returns "true".- Since:
- 1.6
- See Also:
-
lassoEnabled
A property used to control whether the user can use the lasso for selecting multiple activities at once.- Since:
- 1.6
- See Also:
-
automaticRedraw
A property used to determine if the graphics will be redrawn whenever the data in any of the activity repository changes. The default value is true. Applications can use this property to disable the redrawing when they know that they have to add a lot of activities but do not want the chart to perform a lot of redraws. The graphics will be redrawn right away when the value of this property changes from true to false or vice versa.- Since:
- 1.5
- See Also:
-
canvasBuffer
A canvas buffer size that is larger than zero increases the rendering performance of the Gantt chart substantially as fewer repaints of each row's canvas are needed. -
lassoActive
A boolean property used to indicate whether the lasso selection tool is currently in use or not.- Since:
- 1.0
- See Also:
-
lassoSnapsToGrid
A boolean property used to indicate whether the lasso selection tool is using the currently active grid settings.- Since:
- 1.1
- See Also:
-
rows
Returns the property used to store the list of rows.- Since:
- 1.6
- See Also:
-
timeline
A property used to store a reference to the timeline control above the graphics.- Since:
- 1.0
- See Also:
-
fixedCellSize
A property used to store a fixed cell size for controls that are based on the virtual flow control. This value is not used by all subclasses of this class. Using a fixed cell size can result in a performance gain.- Since:
- 1.0
- See Also:
-
onActivityDeleted
-
onActivityChange
-
onActivityChangeStarted
-
onActivityChangeOngoing
-
onActivityChangeFinished
-
onActivityDragStarted
-
onActivityDragOngoing
-
onActivityDragFinished
-
onActivityDragDone
-
onActivityChartValueChangeStarted
-
onActivityChartValueChangeOngoing
-
onActivityChartValueChangeFinished
-
onActivityChartHighValueChangeStarted
public final ObjectProperty<EventHandler<ActivityEvent>> onActivityChartHighValueChangeStartedProperty -
onActivityChartHighValueChangeOngoing
public final ObjectProperty<EventHandler<ActivityEvent>> onActivityChartHighValueChangeOngoingProperty -
onActivityChartHighValueChangeFinished
public final ObjectProperty<EventHandler<ActivityEvent>> onActivityChartHighValueChangeFinishedProperty -
onActivityChartLowValueChangeStarted
public final ObjectProperty<EventHandler<ActivityEvent>> onActivityChartLowValueChangeStartedProperty -
onActivityChartLowValueChangeOngoing
public final ObjectProperty<EventHandler<ActivityEvent>> onActivityChartLowValueChangeOngoingProperty -
onActivityChartLowValueChangeFinished
public final ObjectProperty<EventHandler<ActivityEvent>> onActivityChartLowValueChangeFinishedProperty -
onActivityHorizontalDragStarted
-
onActivityHorizontalDragOngoing
-
onActivityHorizontalDragFinished
-
onActivityVerticalDragStarted
-
onActivityVerticalDragOngoing
-
onActivityVerticalDragFinished
-
onActivityVerticalDragDone
-
onActivityEndTimeChangeStarted
-
onActivityEndTimeChangeOngoing
-
onActivityEndTimeChangeFinished
-
onActivityPercentageChangeStarted
-
onActivityPercentageChangeOngoing
-
onActivityPercentageChangeFinished
-
onActivityStartTimeChangeStarted
-
onActivityStartTimeChangeOngoing
-
onActivityStartTimeChangeFinished
-
onLassoSelection
-
onLassoSelectionStarted
-
onLassoSelectionOngoing
-
onLassoSelectionFinished
-
editMode
A property used to store the currently active editing mode, e.g. "changing start time", "changing end time", "dragging horizontally", "dragging vertically", etc...
The property is read-only as it can not be set from the outside. It is being updated when the user moves the mouse cursor on top of an activity. The edit mode depends on the location of the cursor (left or right edge, center). SeesetActivityEditingCallback(Class, Callback)
for mapping mouse events to editing operations.- Since:
- 1.0
- See Also:
-
highlightDelay
A property used to store the delay between two "blinks" of highlighted rows or activities.- Since:
- 1.0
- See Also:
-
highlighted
A read-only property used to control the highlighting effect. The value of this property gets frequently toggled between true and false so that is triggers a redraw of the graphics and a blink effect.- Since:
- 1.0
- See Also:
-
contextMenuCallback
public final ObjectProperty<Callback<GraphicsBase.ContextMenuParameter<R extends Row<?,?, contextMenuCallbackProperty?>>, ContextMenu>> A property used to store a callback which is used for creating a context menu. Context menus can also be used by simply callingControl.setContextMenu(ContextMenu)
but using this callback saves you from collecting all the information and objects that can be found at the location of the context menu trigger event.- Since:
- 1.0
- See Also:
-
autoMarkedTimeInterval
Controls whether the marked time interval property of theEventline
will be automatically set when the user performs certain editing operations (e.g. move an activity horizontally). The default is "true". -
maxGridLevel
A property used to store the number of grid levels that the user wants to see in the graphics view. The value of this property must be between 1 and 5. The grid level depends on the number of scales shown by the dateline (seeDateline.getScaleResolutions()
). If the dateline is currently showing two scales (e.g. days and weeks) then the graphics view and theGridLinesLayer
can also display two different grid lines, for example a light gray one for days and a dark gray one for weeks.- Since:
- 1.0
- See Also:
-
showVerticalCursor
A property used to control whether a vertical cursor line will be shown by the graphics view. The line will always follow the location of the mouse cursor.- Since:
- 1.0
- See Also:
-
showHorizontalCursor
A property used to control wether a horizontal cursor line will be shown by the graphics view. The line will always follow the location of the mouse cursor.- Since:
- 1.0
- See Also:
-
showMarkedTimeInterval
A property used to control whether vertical lines will be shown for a marked time interval (e.g. while dragging the marked interval will display the new location of the dragged activity).- Since:
- 1.1
- See Also:
-
debugMode
A property used to enable / disable the debug mode. The debug mode will cause the object bounds of activities to be rendered in the graphics view and also the bounds of the lasso selection tool. Other information might get added in the future.- Since:
- 1.0
- See Also:
-
autoGridEnabled
A property used to enable / disable the autogrid mode. The autogrid mode will cause activities to snap to times based on the currently shown granularity of the dateline. If the dateline is showing "days" then the activities will snap to the beginning and / or end of a day. If the dateline is showing hours then the activities will snap to full hours.- Since:
- 1.1
- See Also:
-
gridEnabled
A convenience read-only property to check whether any kind of grid is active, either the automatic grid or a virtual grid.- Since:
- 1.2
- See Also:
-
selectionMode
A property used to store the currently supported selection mode. The graphics view supports single, multiple, and none.- Since:
- 1.0
- See Also:
-
lassoSelectionBehaviour
A property used to store the currently used lasso selection behaviour. This value of this property controls when an activity is actually considered selected by the lasso: does it need to be completely inside the lasso bounds or is it enough when it gets touched by the lasso? -
hoverActivity
- See Also:
-
hoverRow
- See Also:
-
hoverLayout
- See Also:
-
editedActivity
- See Also:
-
pressedActivity
-
virtualGrid
-
placeholder
-
dragAndDropInfo
A property used to store the current drag and drop information. This object stores data relevant to the current drag and drop operation.- Since:
- 1.0
- See Also:
-
dragImageProvider
-
showAgendaLinesLayer
-
showCalendarLayer
-
showLayoutLayer
-
showChartLinesLayer
-
showGridLineLayer
-
showHoverTimeIntervalLayer
-
showInnerLinesLayer
-
showNowLineLayer
-
showDSTLineLayer
-
showRowLayer
-
showSelectedTimeIntervalsLayer
-
showZoomTimeIntervalLayer
-
showZoneId
-
fadeInOutVisibilityChanges
-
fadeInOutVisibilityChangesDuration
-
showLinks
Controls whether theLinksCanvas
will be visible and links will be drawn. -
dragAndDropFeedback
-
rowControlsFactory
public final ObjectProperty<Callback<GraphicsBase.RowControlsParameter<R extends Row<?,?, rowControlsFactoryProperty?>>, Node>> -
enableRowResizing
Controls whether the view allows the user to interactively resize the row / change the row height.- Since:
- 11.12.0
- See Also:
-
rowHeaderFactory
public final ObjectProperty<Callback<GraphicsBase<R extends Row<?,?, rowHeaderFactoryProperty?>>, GraphicsBase.RowHeader<R extends Row<?, ?, ?>>>> A property used to store a callback for creating a node that will be placed to the left of each row in the graphics view.- Since:
- 11.11.0
- See Also:
-
showRowHeaders
Determines if the row headers will be shown to the user or not.- Since:
- 11.11.0
- See Also:
-
rowHeadersWidth
Specifies the width of the so-called "row headers". These are custom nodes that can be placed in front of every row inside the graphics area. For proper layout the width of all row headers has to be the same.- Since:
- 11.11.0
- See Also:
-
rowEditorFactory
public final ObjectProperty<Callback<GraphicsBase.RowEditorParameter<R extends Row<?,?, rowEditorFactoryProperty?>>, Node>> -
rowEditingMode
-
animateRowEditor
-
dropLayerProvider
A property used to store a callback that will return the layer on which a dragged activity will be placed once the drop operation has finished. The default provider returns the layer on which the activity is currently shown.- Since:
- 1.2
- See Also:
-
horizontalDragEnabled
Determines whether the user can perform a horizontal drag with a mouse drag.- Since:
- 1.3
- See Also:
-
safeRendering
Returns the property that specifies whether the various canvas API-based rendering parts inside this framework will always callGraphicsContext.save()
to save the current state of the context before changing its state (followed byGraphicsContext.restore()
to restore the old state).Using save / restore will ensure that the pluggable system layers and activity renderers will not have any side effects on each other. Setting this property to true has an impact on performance. The default value of this property is false.
Example
The following code shows how the property is used within the framework.GraphicsContext gc = canvas.getGraphicsContext2D(); if (graphics.isSafeRendering()) { gc.save(); } gc.setTransform(...); gc.strokeLine(...); if (graphics.isSafeRendering()) { gc.restore(); }
-
gridLineColor1
-
gridLineColor2
-
gridLineColor3
-
weekendColor
-
timeNowColor
-
innerLinesColor
-
-
Constructor Details
-
GraphicsBase
public GraphicsBase()Constructs a new graphics view and initializes the following:- Virtual grid settings (1, 5, 10, 15, 30, 60 Minutes)
- Activity renderers for several of the default model classes.
- Edit mode callbacks for several of the default model classes.
- Activity editing callbacks.
- Background and foreground layers.
- Calendars (e. g. weekend calendar).
- Since:
- 1.0
-
-
Method Details
-
getUserAgentStylesheet
- Overrides:
getUserAgentStylesheet
in classRegion
-
rowFilterProperty
A predicate used to filter the rows.- Returns:
- the filter predicate
- See Also:
-
setRowFilter
Sets the value ofrowFilterProperty()
.- Parameters:
predicate
- the filter predicate
-
getRowFilter
Returns the value ofrowFilterProperty()
.- Returns:
- the filter predicate
-
activityFilterProperty
A property used to store a filter function, which determines if an activity will be rendered or not. An activity will be drawn if the function returns "true".- Returns:
- the predicate / the filter function for activities
- Since:
- 1.6
- See Also:
-
getActivityFilter
Returns the value ofactivityFilterProperty()
.- Returns:
- the predicate / the filter function for activities
- Since:
- 1.6
-
setActivityFilter
Sets the value ofactivityFilterProperty()
.- Parameters:
filter
- the filter function- Since:
- 1.6
-
lassoEnabledProperty
A property used to control whether the user can use the lasso for selecting multiple activities at once.- Returns:
- the lasso enabled property
- Since:
- 1.6
- See Also:
-
setLassoEnabled
public final void setLassoEnabled(boolean enabled) Sets the value oflassoEnabledProperty()
.- Parameters:
enabled
- if true the lasso will be usable by the user- Since:
- 1.6
-
isLassoEnabled
public final boolean isLassoEnabled()Returns the value oflassoEnabledProperty()
.- Returns:
- true if the user can use the lasso
- Since:
- 1.6
-
automaticRedrawProperty
A property used to determine if the graphics will be redrawn whenever the data in any of the activity repository changes. The default value is true. Applications can use this property to disable the redrawing when they know that they have to add a lot of activities but do not want the chart to perform a lot of redraws. The graphics will be redrawn right away when the value of this property changes from true to false or vice versa.- Returns:
- the automatic redraw property
- Since:
- 1.5
- See Also:
-
isAutomaticRedraw
public final boolean isAutomaticRedraw()Returns the value ofautomaticRedrawProperty()
.- Returns:
- true if automatic redrawing will be performed (default)
- Since:
- 1.5
-
setAutomaticRedraw
public final void setAutomaticRedraw(boolean automatic) Sets the value ofautomaticRedrawProperty()
.- Parameters:
automatic
- if true then the graphics redraw after every repository change event- Since:
- 1.5
-
getCanvasBuffer
public final double getCanvasBuffer()Gets the value of thecanvasBuffer
property.- Property description:
- A canvas buffer size that is larger than zero increases the rendering performance of the Gantt chart substantially as fewer repaints of each row's canvas are needed.
- Returns:
- the value of the
canvasBuffer
property - See Also:
-
canvasBufferProperty
A canvas buffer size that is larger than zero increases the rendering performance of the Gantt chart substantially as fewer repaints of each row's canvas are needed.- Returns:
- the canvas buffer size (default is 250 pixel)
- See Also:
-
setCanvasBuffer
public final void setCanvasBuffer(double canvasBuffer) Sets the value of thecanvasBuffer
property.- Property description:
- A canvas buffer size that is larger than zero increases the rendering performance of the Gantt chart substantially as fewer repaints of each row's canvas are needed.
- Parameters:
canvasBuffer
- the value for thecanvasBuffer
property- See Also:
-
lassoActiveProperty
A boolean property used to indicate whether the lasso selection tool is currently in use or not.- Returns:
- true if the user is currently performing a lasso selection operation
- Since:
- 1.0
- See Also:
-
isLassoActive
public final boolean isLassoActive()Returns the value oflassoActiveProperty()
.- Returns:
- true if the user is currently performing a lasso selection operation.
- Since:
- 1.0
-
lassoSnapsToGridProperty
A boolean property used to indicate whether the lasso selection tool is using the currently active grid settings.- Returns:
- the lasso snaps property
- Since:
- 1.1
- See Also:
-
isLassoSnapsToGrid
public final boolean isLassoSnapsToGrid()Returns the value oflassoSnapsToGridProperty()
.- Returns:
- true if the lasso is obeying the current virtual grid settings
- Since:
- 1.1
-
setLassoSnapsToGrid
public final void setLassoSnapsToGrid(boolean snaps) Sets the value oflassoSnapsToGridProperty()
.- Parameters:
snaps
- if true the lasso will obey the grid- Since:
- 1.1
-
getLinks
Returns the interval tree that is used to store all activity links of the model.- Returns:
- a list of activity links
- Since:
- 1.0
-
getLayers
Returns the list that is used to store all layers of the model.- Returns:
- a list of layers
- Since:
- 1.0
-
rowsProperty
Returns the property used to store the list of rows.- Returns:
- the list of rows
- Since:
- 1.6
- See Also:
-
setRows
Sets the value of therowsProperty()
.- Parameters:
rows
- the new rows to display- Since:
- 1.6
-
getRows
Returns the list that is used to store all rows of the model.- Returns:
- a list of rows
- Since:
- 1.6
-
timelineProperty
A property used to store a reference to the timeline control above the graphics.- Returns:
- the property used to store the timeline reference
- Since:
- 1.0
- See Also:
-
setTimeline
Sets the value oftimelineProperty()
.- Parameters:
timeline
- the timeline control above the graphics- Since:
- 1.0
-
getTimeline
Returns the value oftimelineProperty()
.- Returns:
- the timeline control above the graphics
- Since:
- 1.0
-
fixedCellSizeProperty
A property used to store a fixed cell size for controls that are based on the virtual flow control. This value is not used by all subclasses of this class. Using a fixed cell size can result in a performance gain.- Returns:
- the property used to store a fixed cell size
- Since:
- 1.0
- See Also:
-
getFixedCellSize
public final double getFixedCellSize()Returns the value offixedCellSizeProperty()
.- Returns:
- the fixed cell size (default is -1)
- Since:
- 1.0
-
setFixedCellSize
public final void setFixedCellSize(double size) Sets the value offixedCellSizeProperty()
.- Parameters:
size
- the fixed cell size, -1 to disable fixed cell size- Since:
- 1.0
-
getLocation
Returns the x coordinate for the given time.- Parameters:
time
- the time for which to lookup a coordinate- Returns:
- the x coordinate for the given time
- Since:
- 1.0
- See Also:
-
getTimeAt
Returns the time at the given location.- Parameters:
location
- the x-coordinate for which to retrieve the time- Returns:
- the time at the given location
- Since:
- 1.0
-
getLocalTimeAt
Returns the local time at the given location. This method will only return a valid value if theAgendaLayout
is being used at the given location (in graphics view coordinate space).- Parameters:
y
- the y-coordinate in the coordinate space of the graphics view- Returns:
- the local time at the given location or null if location not
managed by an
AgendaLayout
- Since:
- 1.0
-
getRowAt
Finds the row at the given y-coordinate.- Parameters:
y
- the y-coordinate in the coordinate space of the graphics view for which to return a row model object- Returns:
- the row model object at the given y-coordinate
- Since:
- 1.0
-
getLayoutAt
Finds the layout that is being used at the given y-coordinate.- Parameters:
y
- the y-coordinate in the coordinate space of the graphics view for which to return the layout- Returns:
- the layout used at the given location
- Since:
- 1.0
-
getActivityBoundsAt
Finds the activity bounds at the given location. Returns the bounds of the activity drawn last if several activities can be found at the given location.- Parameters:
x
- the x-coordinate in the coordinate space of the graphics viewy
- the y-coordinate in the coordinate space of the graphics view- Returns:
- the bounds of the activity found at the given location or null if no activity can be found
- Since:
- 1.0
-
getActivityRefAt
Finds the activity reference at the given location. Returns the reference of the activity drawn last if several activities can be found at the given location.- Parameters:
x
- the x-coordinate in the coordinate space of the graphics viewy
- the y-coordinate in the coordinate space of the graphics view- Returns:
- the reference of the activity found at the given location or null if no activity can be found
- Since:
- 1.0
-
getAllActivityBoundsAt
Returns the bounds of all activities found at the given location. Activities can be drawn on top of each other, hence several bounds can exist at the same location.- Parameters:
x
- the x-coordinate in the coordinate space of the graphics viewy
- the y-coordinate in the coordinate space of the graphics view- Returns:
- the bounds of the activities found at the given location or null if no activities can be found
- Since:
- 1.0
-
getAllActivityRefsAt
Returns the references to all activities found at the given location. Activities can be drawn on top of each other, hence several references can exist at the same location.- Parameters:
x
- the x-coordinate in the coordinate space of the graphics viewy
- the y-coordinate in the coordinate space of the graphics view- Returns:
- the references of all activities found at the given location or null if no activities can be found
- Since:
- 1.0
-
getAllCalendarActivitiesAt
Finds all calendar activities at the given location.- Parameters:
x
- the x-coordinate in the coordinate space of the graphics viewy
- the y-coordinate in the coordinate space of the graphics view- Returns:
- all calendar activities at the given location
- Since:
- 1.1
-
moveLayerToFront
Moves the given layer to the front so that the activities located on it will be drawn on top of all other activities.- Parameters:
layer
- the layer to move- Since:
- 1.0
- See Also:
-
moveLayerToBack
Moves the given layer to the back so that the activities located on it will be drawn first and all other activities on other layers will be drawn on top of them.- Parameters:
layer
- the layer to move- Since:
- 1.0
- See Also:
-
moveLayerForward
Moves the given layer forward within the stack of layers.- Parameters:
layer
- the layer to move- Since:
- 1.0
- See Also:
-
moveLayerBackward
Moves the given layer backward within the stack of layers.- Parameters:
layer
- the layer to move- Since:
- 1.0
- See Also:
-
onActivityDeletedProperty
- Returns:
- the
onActivityDeleted
property - See Also:
-
setOnActivityDeleted
Sets the value of theonActivityDeleted
property.- Property description:
- Parameters:
value
- the value for theonActivityDeleted
property- See Also:
-
getOnActivityDeleted
Gets the value of theonActivityDeleted
property.- Property description:
- Returns:
- the value of the
onActivityDeleted
property - See Also:
-
onActivityChangeProperty
- Returns:
- the
onActivityChange
property - See Also:
-
setOnActivityChange
Sets the value of theonActivityChange
property.- Property description:
- Parameters:
value
- the value for theonActivityChange
property- See Also:
-
getOnActivityChange
Gets the value of theonActivityChange
property.- Property description:
- Returns:
- the value of the
onActivityChange
property - See Also:
-
onActivityChangeStartedProperty
- Returns:
- the
onActivityChangeStarted
property - See Also:
-
setOnActivityChangeStarted
Sets the value of theonActivityChangeStarted
property.- Property description:
- Parameters:
value
- the value for theonActivityChangeStarted
property- See Also:
-
getOnActivityChangeStarted
Gets the value of theonActivityChangeStarted
property.- Property description:
- Returns:
- the value of the
onActivityChangeStarted
property - See Also:
-
onActivityChangeOngoingProperty
- Returns:
- the
onActivityChangeOngoing
property - See Also:
-
setOnActivityChangeOngoing
Sets the value of theonActivityChangeOngoing
property.- Property description:
- Parameters:
value
- the value for theonActivityChangeOngoing
property- See Also:
-
getOnActivityChangeOngoing
Gets the value of theonActivityChangeOngoing
property.- Property description:
- Returns:
- the value of the
onActivityChangeOngoing
property - See Also:
-
onActivityChangeFinishedProperty
- Returns:
- the
onActivityChangeFinished
property - See Also:
-
setOnActivityChangeFinished
Sets the value of theonActivityChangeFinished
property.- Property description:
- Parameters:
value
- the value for theonActivityChangeFinished
property- See Also:
-
getOnActivityChangeFinished
Gets the value of theonActivityChangeFinished
property.- Property description:
- Returns:
- the value of the
onActivityChangeFinished
property - See Also:
-
onActivityDragStartedProperty
- Returns:
- the
onActivityDragStarted
property - See Also:
-
setOnActivityDragStarted
Sets the value of theonActivityDragStarted
property.- Property description:
- Parameters:
value
- the value for theonActivityDragStarted
property- See Also:
-
getOnActivityDragStarted
Gets the value of theonActivityDragStarted
property.- Property description:
- Returns:
- the value of the
onActivityDragStarted
property - See Also:
-
onActivityDragOngoingProperty
- Returns:
- the
onActivityDragOngoing
property - See Also:
-
setOnActivityDragOngoing
Sets the value of theonActivityDragOngoing
property.- Property description:
- Parameters:
value
- the value for theonActivityDragOngoing
property- See Also:
-
getOnActivityDragOngoing
Gets the value of theonActivityDragOngoing
property.- Property description:
- Returns:
- the value of the
onActivityDragOngoing
property - See Also:
-
onActivityDragFinishedProperty
- Returns:
- the
onActivityDragFinished
property - See Also:
-
setOnActivityDragFinished
Sets the value of theonActivityDragFinished
property.- Property description:
- Parameters:
value
- the value for theonActivityDragFinished
property- See Also:
-
getOnActivityDragFinished
Gets the value of theonActivityDragFinished
property.- Property description:
- Returns:
- the value of the
onActivityDragFinished
property - See Also:
-
onActivityDragDoneProperty
- Returns:
- the
onActivityDragDone
property - See Also:
-
setOnActivityDragDone
Sets the value of theonActivityDragDone
property.- Property description:
- Parameters:
value
- the value for theonActivityDragDone
property- See Also:
-
getOnActivityDragDone
Gets the value of theonActivityDragDone
property.- Property description:
- Returns:
- the value of the
onActivityDragDone
property - See Also:
-
onActivityChartValueChangeStartedProperty
public final ObjectProperty<EventHandler<ActivityEvent>> onActivityChartValueChangeStartedProperty()- Returns:
- the
onActivityChartValueChangeStarted
property - See Also:
-
setOnActivityChartValueChangeStarted
Sets the value of theonActivityChartValueChangeStarted
property.- Property description:
- Parameters:
value
- the value for theonActivityChartValueChangeStarted
property- See Also:
-
getOnActivityChartValueChangeStarted
Gets the value of theonActivityChartValueChangeStarted
property.- Property description:
- Returns:
- the value of the
onActivityChartValueChangeStarted
property - See Also:
-
onActivityChartValueChangeOngoingProperty
public final ObjectProperty<EventHandler<ActivityEvent>> onActivityChartValueChangeOngoingProperty()- Returns:
- the
onActivityChartValueChangeOngoing
property - See Also:
-
setOnActivityChartValueChangeOngoing
Sets the value of theonActivityChartValueChangeOngoing
property.- Property description:
- Parameters:
value
- the value for theonActivityChartValueChangeOngoing
property- See Also:
-
getOnActivityChartValueChangeOngoing
Gets the value of theonActivityChartValueChangeOngoing
property.- Property description:
- Returns:
- the value of the
onActivityChartValueChangeOngoing
property - See Also:
-
onActivityChartValueChangeFinishedProperty
public final ObjectProperty<EventHandler<ActivityEvent>> onActivityChartValueChangeFinishedProperty()- Returns:
- the
onActivityChartValueChangeFinished
property - See Also:
-
setOnActivityChartValueChangeFinished
Sets the value of theonActivityChartValueChangeFinished
property.- Property description:
- Parameters:
value
- the value for theonActivityChartValueChangeFinished
property- See Also:
-
getOnActivityChartValueChangeFinished
Gets the value of theonActivityChartValueChangeFinished
property.- Property description:
- Returns:
- the value of the
onActivityChartValueChangeFinished
property - See Also:
-
onActivityChartHighValueChangeStartedProperty
public final ObjectProperty<EventHandler<ActivityEvent>> onActivityChartHighValueChangeStartedProperty()- Returns:
- the
onActivityChartHighValueChangeStarted
property - See Also:
-
setOnActivityChartHighValueChangeStarted
Sets the value of theonActivityChartHighValueChangeStarted
property.- Property description:
- Parameters:
value
- the value for theonActivityChartHighValueChangeStarted
property- See Also:
-
getOnActivityChartHighValueChangeStarted
Gets the value of theonActivityChartHighValueChangeStarted
property.- Property description:
- Returns:
- the value of the
onActivityChartHighValueChangeStarted
property - See Also:
-
onActivityChartHighValueChangeOngoingProperty
public final ObjectProperty<EventHandler<ActivityEvent>> onActivityChartHighValueChangeOngoingProperty()- Returns:
- the
onActivityChartHighValueChangeOngoing
property - See Also:
-
setOnActivityChartHighValueChangeOngoing
Sets the value of theonActivityChartHighValueChangeOngoing
property.- Property description:
- Parameters:
value
- the value for theonActivityChartHighValueChangeOngoing
property- See Also:
-
getOnActivityChartHighValueChangeOngoing
Gets the value of theonActivityChartHighValueChangeOngoing
property.- Property description:
- Returns:
- the value of the
onActivityChartHighValueChangeOngoing
property - See Also:
-
onActivityChartHighValueChangeFinishedProperty
public final ObjectProperty<EventHandler<ActivityEvent>> onActivityChartHighValueChangeFinishedProperty()- Returns:
- the
onActivityChartHighValueChangeFinished
property - See Also:
-
setOnActivityChartHighValueChangeFinished
Sets the value of theonActivityChartHighValueChangeFinished
property.- Property description:
- Parameters:
value
- the value for theonActivityChartHighValueChangeFinished
property- See Also:
-
getOnActivityChartHighValueChangeFinished
Gets the value of theonActivityChartHighValueChangeFinished
property.- Property description:
- Returns:
- the value of the
onActivityChartHighValueChangeFinished
property - See Also:
-
onActivityChartLowValueChangeStartedProperty
public final ObjectProperty<EventHandler<ActivityEvent>> onActivityChartLowValueChangeStartedProperty()- Returns:
- the
onActivityChartLowValueChangeStarted
property - See Also:
-
setOnActivityChartLowValueChangeStarted
Sets the value of theonActivityChartLowValueChangeStarted
property.- Property description:
- Parameters:
value
- the value for theonActivityChartLowValueChangeStarted
property- See Also:
-
getOnActivityChartLowValueChangeStarted
Gets the value of theonActivityChartLowValueChangeStarted
property.- Property description:
- Returns:
- the value of the
onActivityChartLowValueChangeStarted
property - See Also:
-
onActivityChartLowValueChangeOngoingProperty
public final ObjectProperty<EventHandler<ActivityEvent>> onActivityChartLowValueChangeOngoingProperty()- Returns:
- the
onActivityChartLowValueChangeOngoing
property - See Also:
-
setOnActivityChartLowValueChangeOngoing
Sets the value of theonActivityChartLowValueChangeOngoing
property.- Property description:
- Parameters:
value
- the value for theonActivityChartLowValueChangeOngoing
property- See Also:
-
getOnActivityChartLowValueChangeOngoing
Gets the value of theonActivityChartLowValueChangeOngoing
property.- Property description:
- Returns:
- the value of the
onActivityChartLowValueChangeOngoing
property - See Also:
-
onActivityChartLowValueChangeFinishedProperty
public final ObjectProperty<EventHandler<ActivityEvent>> onActivityChartLowValueChangeFinishedProperty()- Returns:
- the
onActivityChartLowValueChangeFinished
property - See Also:
-
setOnActivityChartLowValueChangeFinished
Sets the value of theonActivityChartLowValueChangeFinished
property.- Property description:
- Parameters:
value
- the value for theonActivityChartLowValueChangeFinished
property- See Also:
-
getOnActivityChartLowValueChangeFinished
Gets the value of theonActivityChartLowValueChangeFinished
property.- Property description:
- Returns:
- the value of the
onActivityChartLowValueChangeFinished
property - See Also:
-
onActivityHorizontalDragStartedProperty
- Returns:
- the
onActivityHorizontalDragStarted
property - See Also:
-
setOnActivityHorizontalDragStarted
Sets the value of theonActivityHorizontalDragStarted
property.- Property description:
- Parameters:
value
- the value for theonActivityHorizontalDragStarted
property- See Also:
-
getOnActivityHorizontalDragStarted
Gets the value of theonActivityHorizontalDragStarted
property.- Property description:
- Returns:
- the value of the
onActivityHorizontalDragStarted
property - See Also:
-
onActivityHorizontalDragOngoingProperty
- Returns:
- the
onActivityHorizontalDragOngoing
property - See Also:
-
setOnActivityHorizontalDragOngoing
Sets the value of theonActivityHorizontalDragOngoing
property.- Property description:
- Parameters:
value
- the value for theonActivityHorizontalDragOngoing
property- See Also:
-
getOnActivityHorizontalDragOngoing
Gets the value of theonActivityHorizontalDragOngoing
property.- Property description:
- Returns:
- the value of the
onActivityHorizontalDragOngoing
property - See Also:
-
onActivityHorizontalDragFinishedProperty
- Returns:
- the
onActivityHorizontalDragFinished
property - See Also:
-
setOnActivityHorizontalDragFinished
Sets the value of theonActivityHorizontalDragFinished
property.- Property description:
- Parameters:
value
- the value for theonActivityHorizontalDragFinished
property- See Also:
-
getOnActivityHorizontalDragFinished
Gets the value of theonActivityHorizontalDragFinished
property.- Property description:
- Returns:
- the value of the
onActivityHorizontalDragFinished
property - See Also:
-
onActivityVerticalDragStartedProperty
- Returns:
- the
onActivityVerticalDragStarted
property - See Also:
-
setOnActivityVerticalDragStarted
Sets the value of theonActivityVerticalDragStarted
property.- Property description:
- Parameters:
value
- the value for theonActivityVerticalDragStarted
property- See Also:
-
getOnActivityVerticalDragStarted
Gets the value of theonActivityVerticalDragStarted
property.- Property description:
- Returns:
- the value of the
onActivityVerticalDragStarted
property - See Also:
-
onActivityVerticalDragOngoingProperty
- Returns:
- the
onActivityVerticalDragOngoing
property - See Also:
-
setOnActivityVerticalDragOngoing
Sets the value of theonActivityVerticalDragOngoing
property.- Property description:
- Parameters:
value
- the value for theonActivityVerticalDragOngoing
property- See Also:
-
getOnActivityVerticalDragOngoing
Gets the value of theonActivityVerticalDragOngoing
property.- Property description:
- Returns:
- the value of the
onActivityVerticalDragOngoing
property - See Also:
-
onActivityVerticalDragFinishedProperty
- Returns:
- the
onActivityVerticalDragFinished
property - See Also:
-
setOnActivityVerticalDragFinished
Sets the value of theonActivityVerticalDragFinished
property.- Property description:
- Parameters:
value
- the value for theonActivityVerticalDragFinished
property- See Also:
-
getOnActivityVerticalDragFinished
Gets the value of theonActivityVerticalDragFinished
property.- Property description:
- Returns:
- the value of the
onActivityVerticalDragFinished
property - See Also:
-
onActivityVerticalDragDoneProperty
- Returns:
- the
onActivityVerticalDragDone
property - See Also:
-
setOnActivityVerticalDragDone
Sets the value of theonActivityVerticalDragDone
property.- Property description:
- Parameters:
value
- the value for theonActivityVerticalDragDone
property- See Also:
-
getOnActivityVerticalDragDone
Gets the value of theonActivityVerticalDragDone
property.- Property description:
- Returns:
- the value of the
onActivityVerticalDragDone
property - See Also:
-
onActivityEndTimeChangeStartedProperty
- Returns:
- the
onActivityEndTimeChangeStarted
property - See Also:
-
setOnActivityEndTimeChangeStarted
Sets the value of theonActivityEndTimeChangeStarted
property.- Property description:
- Parameters:
value
- the value for theonActivityEndTimeChangeStarted
property- See Also:
-
getOnActivityEndTimeChangeStarted
Gets the value of theonActivityEndTimeChangeStarted
property.- Property description:
- Returns:
- the value of the
onActivityEndTimeChangeStarted
property - See Also:
-
onActivityEndTimeChangeOngoingProperty
- Returns:
- the
onActivityEndTimeChangeOngoing
property - See Also:
-
setOnActivityEndTimeChangeOngoing
Sets the value of theonActivityEndTimeChangeOngoing
property.- Property description:
- Parameters:
value
- the value for theonActivityEndTimeChangeOngoing
property- See Also:
-
getOnActivityEndTimeChangeOngoing
Gets the value of theonActivityEndTimeChangeOngoing
property.- Property description:
- Returns:
- the value of the
onActivityEndTimeChangeOngoing
property - See Also:
-
onActivityEndTimeChangeFinishedProperty
- Returns:
- the
onActivityEndTimeChangeFinished
property - See Also:
-
setOnActivityEndTimeChangeFinished
Sets the value of theonActivityEndTimeChangeFinished
property.- Property description:
- Parameters:
value
- the value for theonActivityEndTimeChangeFinished
property- See Also:
-
getOnActivityEndTimeChangeFinished
Gets the value of theonActivityEndTimeChangeFinished
property.- Property description:
- Returns:
- the value of the
onActivityEndTimeChangeFinished
property - See Also:
-
onActivityPercentageChangeStartedProperty
public final ObjectProperty<EventHandler<ActivityEvent>> onActivityPercentageChangeStartedProperty()- Returns:
- the
onActivityPercentageChangeStarted
property - See Also:
-
setOnActivityPercentageChangeStarted
Sets the value of theonActivityPercentageChangeStarted
property.- Property description:
- Parameters:
value
- the value for theonActivityPercentageChangeStarted
property- See Also:
-
getOnActivityPercentageChangeStarted
Gets the value of theonActivityPercentageChangeStarted
property.- Property description:
- Returns:
- the value of the
onActivityPercentageChangeStarted
property - See Also:
-
onActivityPercentageChangeOngoingProperty
public final ObjectProperty<EventHandler<ActivityEvent>> onActivityPercentageChangeOngoingProperty()- Returns:
- the
onActivityPercentageChangeOngoing
property - See Also:
-
setOnActivityPercentageChangeOngoing
Sets the value of theonActivityPercentageChangeOngoing
property.- Property description:
- Parameters:
value
- the value for theonActivityPercentageChangeOngoing
property- See Also:
-
getOnActivityPercentageChangeOngoing
Gets the value of theonActivityPercentageChangeOngoing
property.- Property description:
- Returns:
- the value of the
onActivityPercentageChangeOngoing
property - See Also:
-
onActivityPercentageChangeFinishedProperty
public final ObjectProperty<EventHandler<ActivityEvent>> onActivityPercentageChangeFinishedProperty()- Returns:
- the
onActivityPercentageChangeFinished
property - See Also:
-
setOnActivityPercentageChangeFinished
Sets the value of theonActivityPercentageChangeFinished
property.- Property description:
- Parameters:
value
- the value for theonActivityPercentageChangeFinished
property- See Also:
-
getOnActivityPercentageChangeFinished
Gets the value of theonActivityPercentageChangeFinished
property.- Property description:
- Returns:
- the value of the
onActivityPercentageChangeFinished
property - See Also:
-
onActivityStartTimeChangeStartedProperty
- Returns:
- the
onActivityStartTimeChangeStarted
property - See Also:
-
setOnActivityStartTimeChangeStarted
Sets the value of theonActivityStartTimeChangeStarted
property.- Property description:
- Parameters:
value
- the value for theonActivityStartTimeChangeStarted
property- See Also:
-
getOnActivityStartTimeChangeStarted
Gets the value of theonActivityStartTimeChangeStarted
property.- Property description:
- Returns:
- the value of the
onActivityStartTimeChangeStarted
property - See Also:
-
onActivityStartTimeChangeOngoingProperty
- Returns:
- the
onActivityStartTimeChangeOngoing
property - See Also:
-
setOnActivityStartTimeChangeOngoing
Sets the value of theonActivityStartTimeChangeOngoing
property.- Property description:
- Parameters:
value
- the value for theonActivityStartTimeChangeOngoing
property- See Also:
-
getOnActivityStartTimeChangeOngoing
Gets the value of theonActivityStartTimeChangeOngoing
property.- Property description:
- Returns:
- the value of the
onActivityStartTimeChangeOngoing
property - See Also:
-
onActivityStartTimeChangeFinishedProperty
public final ObjectProperty<EventHandler<ActivityEvent>> onActivityStartTimeChangeFinishedProperty()- Returns:
- the
onActivityStartTimeChangeFinished
property - See Also:
-
setOnActivityStartTimeChangeFinished
Sets the value of theonActivityStartTimeChangeFinished
property.- Property description:
- Parameters:
value
- the value for theonActivityStartTimeChangeFinished
property- See Also:
-
getOnActivityStartTimeChangeFinished
Gets the value of theonActivityStartTimeChangeFinished
property.- Property description:
- Returns:
- the value of the
onActivityStartTimeChangeFinished
property - See Also:
-
onLassoSelectionProperty
- Returns:
- the
onLassoSelection
property - See Also:
-
setOnLassoSelection
Sets the value of theonLassoSelection
property.- Property description:
- Parameters:
value
- the value for theonLassoSelection
property- See Also:
-
getOnLassoSelection
Gets the value of theonLassoSelection
property.- Property description:
- Returns:
- the value of the
onLassoSelection
property - See Also:
-
onLassoSelectionStartedProperty
- Returns:
- the
onLassoSelectionStarted
property - See Also:
-
setOnLassoSelectionStarted
Sets the value of theonLassoSelectionStarted
property.- Property description:
- Parameters:
value
- the value for theonLassoSelectionStarted
property- See Also:
-
getOnLassoSelectionStarted
Gets the value of theonLassoSelectionStarted
property.- Property description:
- Returns:
- the value of the
onLassoSelectionStarted
property - See Also:
-
onLassoSelectionOngoingProperty
- Returns:
- the
onLassoSelectionOngoing
property - See Also:
-
setOnLassoSelectionOngoing
Sets the value of theonLassoSelectionOngoing
property.- Property description:
- Parameters:
value
- the value for theonLassoSelectionOngoing
property- See Also:
-
getOnLassoSelectionOngoing
Gets the value of theonLassoSelectionOngoing
property.- Property description:
- Returns:
- the value of the
onLassoSelectionOngoing
property - See Also:
-
onLassoSelectionFinishedProperty
- Returns:
- the
onLassoSelectionFinished
property - See Also:
-
setOnLassoSelectionFinished
Sets the value of theonLassoSelectionFinished
property.- Property description:
- Parameters:
value
- the value for theonLassoSelectionFinished
property- See Also:
-
getOnLassoSelectionFinished
Gets the value of theonLassoSelectionFinished
property.- Property description:
- Returns:
- the value of the
onLassoSelectionFinished
property - See Also:
-
editModeProperty
A property used to store the currently active editing mode, e.g. "changing start time", "changing end time", "dragging horizontally", "dragging vertically", etc...
The property is read-only as it can not be set from the outside. It is being updated when the user moves the mouse cursor on top of an activity. The edit mode depends on the location of the cursor (left or right edge, center). SeesetActivityEditingCallback(Class, Callback)
for mapping mouse events to editing operations.- Returns:
- the currently active edit mode
- Since:
- 1.0
- See Also:
-
getEditMode
Returns the value ofeditModeProperty()
.- Returns:
- the currently active edit mode
- Since:
- 1.0
-
getHighlightedRows
Returns a set that is used to store the currently highlighted rows. A row added to this set will start blinking and draw the attention of the user to it.- Returns:
- the set of highlighted rows
- Since:
- 1.0
- See Also:
-
getHighlightedActivities
Returns a set that is used to store the currently highighted activities. An activity added to this set will start blinking and draw the attention of the user to it.- Returns:
- the set of highlighted activities
- Since:
- 1.0
- See Also:
-
highlightDelayProperty
A property used to store the delay between two "blinks" of highlighted rows or activities.- Returns:
- the property used for the delay (in milliseconds)
- Since:
- 1.0
- See Also:
-
setHighlightDelay
public final void setHighlightDelay(long delay) Sets the value ofhighlightDelayProperty()
.- Parameters:
delay
- the highlight delay in milliseconds- Since:
- 1.0
-
getHighlightDelay
public final long getHighlightDelay()Returns the value ofhighlightDelayProperty()
.- Returns:
- the highlight delay in milliseconds
- Since:
- 1.0
-
highlightedProperty
A read-only property used to control the highlighting effect. The value of this property gets frequently toggled between true and false so that is triggers a redraw of the graphics and a blink effect.- Returns:
- a read-only property that signals if the highlight is on or off (causes blinking)
- Since:
- 1.0
- See Also:
-
isHighlighted
public final boolean isHighlighted()Returns the value ofhighlightedProperty()
.- Returns:
- a flag value used to toggle the highlighting effect
- Since:
- 1.0
-
contextMenuCallbackProperty
public final ObjectProperty<Callback<GraphicsBase.ContextMenuParameter<R>,ContextMenu>> contextMenuCallbackProperty()A property used to store a callback which is used for creating a context menu. Context menus can also be used by simply callingControl.setContextMenu(ContextMenu)
but using this callback saves you from collecting all the information and objects that can be found at the location of the context menu trigger event.- Returns:
- a callback for creating a context menu
- Since:
- 1.0
- See Also:
-
setContextMenuCallback
public final void setContextMenuCallback(Callback<GraphicsBase.ContextMenuParameter<R>, ContextMenu> callback) Sets the value ofcontextMenuCallbackProperty()
.- Parameters:
callback
- a callback for creating a parameterized context menu- Since:
- 1.0
-
getContextMenuCallback
Returns the value ofcontextMenuCallbackProperty()
.- Returns:
- the callback for creating a parameterized context menu
- Since:
- 1.0
-
autoMarkedTimeIntervalProperty
Controls whether the marked time interval property of theEventline
will be automatically set when the user performs certain editing operations (e.g. move an activity horizontally). The default is "true".- Returns:
- the auto marked time interval property
- See Also:
-
isAutoMarkedTimeInterval
public final boolean isAutoMarkedTimeInterval()Returns the value ofautoMarkedTimeIntervalProperty()
.- Returns:
- true if the marked time interval gets updated automatically
-
setAutoMarkedTimeInterval
public final void setAutoMarkedTimeInterval(boolean auto) Sets the value ofautoMarkedTimeIntervalProperty()
.- Parameters:
auto
- if true the marked time interval will be updated automatically
-
maxGridLevelProperty
A property used to store the number of grid levels that the user wants to see in the graphics view. The value of this property must be between 1 and 5. The grid level depends on the number of scales shown by the dateline (seeDateline.getScaleResolutions()
). If the dateline is currently showing two scales (e.g. days and weeks) then the graphics view and theGridLinesLayer
can also display two different grid lines, for example a light gray one for days and a dark gray one for weeks.- Returns:
- the maximum number of grid levels
- Since:
- 1.0
- See Also:
-
getMaxGridLevel
public final int getMaxGridLevel()Returns the value ofmaxGridLevelProperty()
.- Returns:
- the maximum number of grid levels
- Since:
- 1.0
-
setMaxGridLevel
public final void setMaxGridLevel(int max) Sets the value ofmaxGridLevelProperty()
.- Parameters:
max
- the maximum number of grid levels, a value between 1 and 5- Since:
- 1.0
-
showVerticalCursorProperty
A property used to control whether a vertical cursor line will be shown by the graphics view. The line will always follow the location of the mouse cursor.- Returns:
- a property used for controlling the visibility of a vertical cursor line
- Since:
- 1.0
- See Also:
-
isShowVerticalCursor
public final boolean isShowVerticalCursor()Returns the value ofshowVerticalCursorProperty()
.- Returns:
- true if the cursor will be shown
- Since:
- 1.0
-
setShowVerticalCursor
public final void setShowVerticalCursor(boolean show) Sets the value ofshowVerticalCursorProperty()
.- Parameters:
show
- if true a vertical cursor line will be shown- Since:
- 1.0
-
showHorizontalCursorProperty
A property used to control wether a horizontal cursor line will be shown by the graphics view. The line will always follow the location of the mouse cursor.- Returns:
- a property used for controlling the visibility of a horizontal cursor line
- Since:
- 1.0
- See Also:
-
isShowHorizontalCursor
public final boolean isShowHorizontalCursor()Returns the value ofshowHorizontalCursorProperty()
.- Returns:
- true if the cursor will be shown
- Since:
- 1.0
-
setShowHorizontalCursor
public final void setShowHorizontalCursor(boolean show) Sets the value ofshowHorizontalCursorProperty()
.- Parameters:
show
- if true a horizontal cursor line will be shown- Since:
- 1.0
-
showMarkedTimeIntervalProperty
A property used to control whether vertical lines will be shown for a marked time interval (e.g. while dragging the marked interval will display the new location of the dragged activity).- Returns:
- a property used for controlling the visibility of a horizontal cursor line
- Since:
- 1.1
- See Also:
-
isShowMarkedTimeInterval
public final boolean isShowMarkedTimeInterval()Returns the value ofshowMarkedTimeIntervalProperty()
.- Returns:
- true if the marker lines will be shown
- Since:
- 1.1
- See Also:
-
setShowMarkedTimeInterval
public final void setShowMarkedTimeInterval(boolean show) Sets the value ofshowMarkedTimeIntervalProperty()
.- Parameters:
show
- if true marker lines will be drawn for the currently marked time interval- Since:
- 1.1
- See Also:
-
debugModeProperty
A property used to enable / disable the debug mode. The debug mode will cause the object bounds of activities to be rendered in the graphics view and also the bounds of the lasso selection tool. Other information might get added in the future.- Returns:
- a property used to enable / disable the debug mode
- Since:
- 1.0
- See Also:
-
isDebugMode
public final boolean isDebugMode()Returns the value ofdebugModeProperty()
.- Returns:
- true if the debug mode is enabled
- Since:
- 1.0
-
setDebugMode
public final void setDebugMode(boolean debug) Sets the value ofdebugModeProperty()
.- Parameters:
debug
- if true the debug mode is enabled- Since:
- 1.0
-
autoGridEnabledProperty
A property used to enable / disable the autogrid mode. The autogrid mode will cause activities to snap to times based on the currently shown granularity of the dateline. If the dateline is showing "days" then the activities will snap to the beginning and / or end of a day. If the dateline is showing hours then the activities will snap to full hours.- Returns:
- a property used to enable / disable the debug mode
- Since:
- 1.1
- See Also:
-
isAutoGridEnabled
public final boolean isAutoGridEnabled()Returns the value ofautoGridEnabledProperty()
.- Returns:
- true if the autogrid mode is enabled
- Since:
- 1.1
-
setAutoGridEnabled
public final void setAutoGridEnabled(boolean auto) Sets the value ofautoGridEnabledProperty()
.- Parameters:
auto
- if true the autogrid mode is enabled- Since:
- 1.1
-
gridEnabledProperty
A convenience read-only property to check whether any kind of grid is active, either the automatic grid or a virtual grid.- Returns:
- true if the graphics is using a grid for its editing operations
- Since:
- 1.2
- See Also:
-
isGridEnabled
public final boolean isGridEnabled()Returns the value ofgridEnabledProperty()
.- Returns:
- true if any kind of grid support is enabled
- Since:
- 1.2
-
selectionModeProperty
A property used to store the currently supported selection mode. The graphics view supports single, multiple, and none.- Returns:
- the property used to store the selection mode
- Since:
- 1.0
- See Also:
-
getSelectionMode
Returns the value ofselectionModeProperty()
.- Returns:
- the currently used selection mode (single, all, none)
- Since:
- 1.0
-
setSelectionMode
Sets the value ofselectionModeProperty()
.- Parameters:
mode
- the new selection mode- Since:
- 1.0
-
getSelectedActivities
Returns the list of currently selected activities.- Returns:
- the list of selected activities
- Since:
- 1.0
-
lassoSelectionBehaviourProperty
A property used to store the currently used lasso selection behaviour. This value of this property controls when an activity is actually considered selected by the lasso: does it need to be completely inside the lasso bounds or is it enough when it gets touched by the lasso?- Returns:
- the property used to store the lasso selection behaviour
- Since:
- 1.0
- See Also:
-
setLassoSelectionBehaviour
Sets the value oflassoSelectionBehaviourProperty()
.- Parameters:
behaviour
- the lasso selection behaviour to use- Since:
- 1.0
-
getLassoSelectionBehaviour
Returns the value of thelassoSelectionBehaviourProperty()
.- Returns:
- the currently used lasso selection behaviour
- Since:
- 1.0
-
getCalendars
Returns the list of calendars that are registered with the graphics view. Calendars are used to render static information in the background of each row. One example are the days that are considered weekend days (e.g. saturday and sunday). They will be drawn with a gray background.- Returns:
- the calendars drawn by the graphics view
- Since:
- 1.0
- See Also:
-
showEarliestActivities
public final void showEarliestActivities()Makes theTimeline
start with the earliest time used by the currently loaded rows. -
showLatestActivities
public final void showLatestActivities()Makes theTimeline
show the latest time used by the currently loaded rows.- Since:
- 1.0
- See Also:
-
showAllActivities
public final void showAllActivities()Makes theTimeline
show a time range starting with the earliest time used and ending with the latest time used by all currently loaded rows. -
getEarliestTimeUsed
Calculates and returns the earliest time used by all rows in the model.- Returns:
- the earliest time used by the graphics view
- Since:
- 1.0
- See Also:
-
getLatestTimeUsed
Calculates and returns the latest time used by all rows in the model.- Returns:
- the latest time used by the graphics view
- Since:
- 1.0
- See Also:
-
hoverActivityProperty
- Returns:
- the
hoverActivity
property - See Also:
-
getHoverActivity
Gets the value of thehoverActivity
property.- Property description:
- Returns:
- the value of the
hoverActivity
property - See Also:
-
hoverRowProperty
- Returns:
- the
hoverRow
property - See Also:
-
getHoverRow
Gets the value of thehoverRow
property.- Property description:
- Returns:
- the value of the
hoverRow
property - See Also:
-
hoverLayoutProperty
- Returns:
- the
hoverLayout
property - See Also:
-
getHoverLayout
Gets the value of thehoverLayout
property.- Property description:
- Returns:
- the value of the
hoverLayout
property - See Also:
-
editedActivityProperty
- Returns:
- the
editedActivity
property - See Also:
-
getEditedActivity
Gets the value of theeditedActivity
property.- Property description:
- Returns:
- the value of the
editedActivity
property - See Also:
-
pressedActivityProperty
- Returns:
- the
pressedActivity
property - See Also:
-
getPressedActivity
Gets the value of thepressedActivity
property.- Property description:
- Returns:
- the value of the
pressedActivity
property - See Also:
-
virtualGridProperty
- Returns:
- the
virtualGrid
property - See Also:
-
getVirtualGrid
Gets the value of thevirtualGrid
property.- Property description:
- Returns:
- the value of the
virtualGrid
property - See Also:
-
setVirtualGrid
Sets the value of thevirtualGrid
property.- Property description:
- Parameters:
grid
- the value for thevirtualGrid
property- See Also:
-
getVirtualGrids
-
placeholderProperty
- Returns:
- the
placeholder
property - See Also:
-
getPlaceholder
Gets the value of theplaceholder
property.- Property description:
- Returns:
- the value of the
placeholder
property - See Also:
-
setPlaceholder
Sets the value of theplaceholder
property.- Property description:
- Parameters:
node
- the value for theplaceholder
property- See Also:
-
getRowPanes
-
redraw
public void redraw()Performs a redraw of the displayed activities. Also lays out the links shown by theLinksCanvas
. -
redraw
Performs a redraw of the displayed activities and logs the given reason. Also lays out the links shown by theLinksCanvas
. -
redrawImmediately
public void redrawImmediately()Forces an immediate redraw of all rows.- Since:
- 11.12.3
- See Also:
-
drawLinks
Performs a redraw of the displayed links and logs the given reason. -
getAllActivityRenderers
Returns a list of all currently registered activity renderers.- Returns:
- all activity renderers
- Since:
- 8.9.0
-
setActivityRenderer
public final <A extends Activity> void setActivityRenderer(Class<? extends A> activityType, Class<? extends Layout> layoutType, ActivityRenderer<? extends A> renderer) Registers a renderer for the given activity and layout type. The renderer will be used to "draw" any activity of the given type when the activity is laid out via the given layout.- Type Parameters:
A
- the type of the activity- Parameters:
activityType
- the type of the activitylayoutType
- the type of the layoutrenderer
- the renderer instance
-
getActivityRenderer
public final <A extends Activity> ActivityRenderer<? extends A> getActivityRenderer(Class<? extends A> activityType, Class<? extends Layout> layoutType) -
setLinkRenderer
Sets a custom link renderer for the given type of activity link.- Parameters:
clazz
- the activity typerenderer
- the renderer
-
getLinkRenderer
Returns a renderer for the given activity link type.- Type Parameters:
AL
- the activity link type- Parameters:
clazz
- the activity link type- Returns:
- the link renderer
-
setActivityEditingCallback
public final void setActivityEditingCallback(Class<? extends MutableActivity> activityType, Callback<GraphicsBase.EditingCallbackParameter, Boolean> callback) Registers a callback used to determine if a given editing operation can be used for a given activity.- Parameters:
activityType
- the type of the activity for which to use the callbackcallback
- the callback- Since:
- 1.0
-
getActivityEditingCallback
public final <A extends Activity> Callback<GraphicsBase.EditingCallbackParameter,Boolean> getActivityEditingCallback(Class<A> activityType) -
setRowDragAndDropCallback
public final void setRowDragAndDropCallback(Class<? extends Row> rowType, Callback<GraphicsBase.DragAndDropInfo, Boolean> callback) Specifies a callback that will be invoked when the user drags an activity over a row of the given type. The callback implementation then determines if a drop would be accepted in the given row.- Parameters:
rowType
- the type of the row for which the callback gets registeredcallback
- the callback implementation- Since:
- 1.0
-
getRowDragAndDropCallback
public final Callback<GraphicsBase.DragAndDropInfo,Boolean> getRowDragAndDropCallback(Class<? extends Row> rowType) Returns a callback that will be invoked when the user drags an activity over a row of the given type. The callback implementation then determines if a drop would be accepted in the given row.- Parameters:
rowType
- the type of the row for which the callback gets registered- Returns:
- the callback implementation
- Since:
- 1.0
-
dragAndDropInfoProperty
A property used to store the current drag and drop information. This object stores data relevant to the current drag and drop operation.- Returns:
- the property used to store the current drag and drop information
- Since:
- 1.0
- See Also:
-
getDragAndDropInfo
Returns the value ofdragAndDropInfoProperty()
.- Returns:
- the current drag and drop information
- Since:
- 1.0
-
dragImageProviderProperty
- Returns:
- the
dragImageProvider
property - See Also:
-
setDragImageProvider
Sets the value of thedragImageProvider
property.- Property description:
- Parameters:
provider
- the value for thedragImageProvider
property- See Also:
-
getDragImageProvider
Gets the value of thedragImageProvider
property.- Property description:
- Returns:
- the value of the
dragImageProvider
property - See Also:
-
getBackgroundSystemLayer
-
getForegroundSystemLayer
-
getSystemLayer
-
getBackgroundSystemLayers
-
getForegroundSystemLayers
-
showAgendaLinesLayerProperty
- Returns:
- the
showAgendaLinesLayer
property - See Also:
-
setShowAgendaLinesLayer
public final void setShowAgendaLinesLayer(boolean show) Sets the value of theshowAgendaLinesLayer
property.- Property description:
- Parameters:
show
- the value for theshowAgendaLinesLayer
property- See Also:
-
isShowAgendaLinesLayer
public final boolean isShowAgendaLinesLayer()Gets the value of theshowAgendaLinesLayer
property.- Property description:
- Returns:
- the value of the
showAgendaLinesLayer
property - See Also:
-
showCalendarLayerProperty
- Returns:
- the
showCalendarLayer
property - See Also:
-
setShowCalendarLayer
public final void setShowCalendarLayer(boolean show) Sets the value of theshowCalendarLayer
property.- Property description:
- Parameters:
show
- the value for theshowCalendarLayer
property- See Also:
-
isShowCalendarLayer
public final boolean isShowCalendarLayer()Gets the value of theshowCalendarLayer
property.- Property description:
- Returns:
- the value of the
showCalendarLayer
property - See Also:
-
showLayoutLayerProperty
- Returns:
- the
showLayoutLayer
property - See Also:
-
setShowLayoutLayer
public final void setShowLayoutLayer(boolean show) Sets the value of theshowLayoutLayer
property.- Property description:
- Parameters:
show
- the value for theshowLayoutLayer
property- See Also:
-
isShowLayoutLayer
public final boolean isShowLayoutLayer()Gets the value of theshowLayoutLayer
property.- Property description:
- Returns:
- the value of the
showLayoutLayer
property - See Also:
-
showChartLinesLayerProperty
- Returns:
- the
showChartLinesLayer
property - See Also:
-
setShowChartLinesLayer
public final void setShowChartLinesLayer(boolean show) Sets the value of theshowChartLinesLayer
property.- Property description:
- Parameters:
show
- the value for theshowChartLinesLayer
property- See Also:
-
isShowChartLinesLayer
public final boolean isShowChartLinesLayer()Gets the value of theshowChartLinesLayer
property.- Property description:
- Returns:
- the value of the
showChartLinesLayer
property - See Also:
-
showGridLineLayerProperty
- Returns:
- the
showGridLineLayer
property - See Also:
-
setShowGridLineLayer
public final void setShowGridLineLayer(boolean show) Sets the value of theshowGridLineLayer
property.- Property description:
- Parameters:
show
- the value for theshowGridLineLayer
property- See Also:
-
isShowGridLineLayer
public final boolean isShowGridLineLayer()Gets the value of theshowGridLineLayer
property.- Property description:
- Returns:
- the value of the
showGridLineLayer
property - See Also:
-
showHoverTimeIntervalLayerProperty
- Returns:
- the
showHoverTimeIntervalLayer
property - See Also:
-
setShowHoverTimeIntervalLayer
public final void setShowHoverTimeIntervalLayer(boolean show) Sets the value of theshowHoverTimeIntervalLayer
property.- Property description:
- Parameters:
show
- the value for theshowHoverTimeIntervalLayer
property- See Also:
-
isShowHoverTimeIntervalLayer
public final boolean isShowHoverTimeIntervalLayer()Gets the value of theshowHoverTimeIntervalLayer
property.- Property description:
- Returns:
- the value of the
showHoverTimeIntervalLayer
property - See Also:
-
showInnerLinesLayerProperty
- Returns:
- the
showInnerLinesLayer
property - See Also:
-
setShowInnerLinesLayer
public final void setShowInnerLinesLayer(boolean show) Sets the value of theshowInnerLinesLayer
property.- Property description:
- Parameters:
show
- the value for theshowInnerLinesLayer
property- See Also:
-
isShowInnerLinesLayer
public final boolean isShowInnerLinesLayer()Gets the value of theshowInnerLinesLayer
property.- Property description:
- Returns:
- the value of the
showInnerLinesLayer
property - See Also:
-
showNowLineLayerProperty
- Returns:
- the
showNowLineLayer
property - See Also:
-
setShowNowLineLayer
public final void setShowNowLineLayer(boolean show) Sets the value of theshowNowLineLayer
property.- Property description:
- Parameters:
show
- the value for theshowNowLineLayer
property- See Also:
-
isShowNowLineLayer
public final boolean isShowNowLineLayer()Gets the value of theshowNowLineLayer
property.- Property description:
- Returns:
- the value of the
showNowLineLayer
property - See Also:
-
showDSTLineLayerProperty
- Returns:
- the
showDSTLineLayer
property - See Also:
-
setShowDSTLineLayer
public final void setShowDSTLineLayer(boolean show) Sets the value of theshowDSTLineLayer
property.- Property description:
- Parameters:
show
- the value for theshowDSTLineLayer
property- See Also:
-
isShowDSTLineLayer
public final boolean isShowDSTLineLayer()Gets the value of theshowDSTLineLayer
property.- Property description:
- Returns:
- the value of the
showDSTLineLayer
property - See Also:
-
showRowLayerProperty
- Returns:
- the
showRowLayer
property - See Also:
-
setShowRowLayer
public final void setShowRowLayer(boolean show) Sets the value of theshowRowLayer
property.- Property description:
- Parameters:
show
- the value for theshowRowLayer
property- See Also:
-
isShowRowLayer
public final boolean isShowRowLayer()Gets the value of theshowRowLayer
property.- Property description:
- Returns:
- the value of the
showRowLayer
property - See Also:
-
showSelectedTimeIntervalsLayerProperty
- Returns:
- the
showSelectedTimeIntervalsLayer
property - See Also:
-
setShowSelectedTimeIntervalsLayer
public final void setShowSelectedTimeIntervalsLayer(boolean show) Sets the value of theshowSelectedTimeIntervalsLayer
property.- Property description:
- Parameters:
show
- the value for theshowSelectedTimeIntervalsLayer
property- See Also:
-
isShowSelectedTimeIntervalsLayer
public final boolean isShowSelectedTimeIntervalsLayer()Gets the value of theshowSelectedTimeIntervalsLayer
property.- Property description:
- Returns:
- the value of the
showSelectedTimeIntervalsLayer
property - See Also:
-
showZoomTimeIntervalLayerProperty
- Returns:
- the
showZoomTimeIntervalLayer
property - See Also:
-
setShowZoomTimeIntervalLayer
public final void setShowZoomTimeIntervalLayer(boolean show) Sets the value of theshowZoomTimeIntervalLayer
property.- Property description:
- Parameters:
show
- the value for theshowZoomTimeIntervalLayer
property- See Also:
-
isShowZoomTimeIntervalLayer
public final boolean isShowZoomTimeIntervalLayer()Gets the value of theshowZoomTimeIntervalLayer
property.- Property description:
- Returns:
- the value of the
showZoomTimeIntervalLayer
property - See Also:
-
showZoneIdProperty
- Returns:
- the
showZoneId
property - See Also:
-
setShowZoneId
public final void setShowZoneId(boolean show) Sets the value of theshowZoneId
property.- Property description:
- Parameters:
show
- the value for theshowZoneId
property- See Also:
-
isShowZoneId
public final boolean isShowZoneId()Gets the value of theshowZoneId
property.- Property description:
- Returns:
- the value of the
showZoneId
property - See Also:
-
fadeInOutVisibilityChangesProperty
- Returns:
- the
fadeInOutVisibilityChanges
property - See Also:
-
isFadeInOutVisibilityChanges
public final boolean isFadeInOutVisibilityChanges()Gets the value of thefadeInOutVisibilityChanges
property.- Property description:
- Returns:
- the value of the
fadeInOutVisibilityChanges
property - See Also:
-
setFadeInOutVisibilityChanges
public final void setFadeInOutVisibilityChanges(boolean show) Sets the value of thefadeInOutVisibilityChanges
property.- Property description:
- Parameters:
show
- the value for thefadeInOutVisibilityChanges
property- See Also:
-
fadeInOutVisibilityChangesDurationProperty
- Returns:
- the
fadeInOutVisibilityChangesDuration
property - See Also:
-
getFadeInOutVisibilityChangesDuration
public final double getFadeInOutVisibilityChangesDuration()Gets the value of thefadeInOutVisibilityChangesDuration
property.- Property description:
- Returns:
- the value of the
fadeInOutVisibilityChangesDuration
property - See Also:
-
setFadeInOutVisibilityChangesDuration
public final void setFadeInOutVisibilityChangesDuration(double duration) Sets the value of thefadeInOutVisibilityChangesDuration
property.- Property description:
- Parameters:
duration
- the value for thefadeInOutVisibilityChangesDuration
property- See Also:
-
isShowLinks
public final boolean isShowLinks()Gets the value of theshowLinks
property.- Property description:
- Controls whether the
LinksCanvas
will be visible and links will be drawn. - Returns:
- the value of the
showLinks
property - See Also:
-
showLinksProperty
Controls whether theLinksCanvas
will be visible and links will be drawn.- Returns:
- true if the links will be drawn
- See Also:
-
setShowLinks
public final void setShowLinks(boolean showLinks) Sets the value of theshowLinks
property.- Property description:
- Controls whether the
LinksCanvas
will be visible and links will be drawn. - Parameters:
showLinks
- the value for theshowLinks
property- See Also:
-
dragAndDropFeedbackProperty
- Returns:
- the
dragAndDropFeedback
property - See Also:
-
setDragAndDropFeedback
Sets the value of thedragAndDropFeedback
property.- Property description:
- Parameters:
feedback
- the value for thedragAndDropFeedback
property- See Also:
-
getDragAndDropFeedback
Gets the value of thedragAndDropFeedback
property.- Property description:
- Returns:
- the value of the
dragAndDropFeedback
property - See Also:
-
rowControlsFactoryProperty
public final ObjectProperty<Callback<GraphicsBase.RowControlsParameter<R>,Node>> rowControlsFactoryProperty()- Returns:
- the
rowControlsFactory
property - See Also:
-
setRowControlsFactory
public final void setRowControlsFactory(Callback<GraphicsBase.RowControlsParameter<R>, Node> factory) Sets the value of therowControlsFactory
property.- Property description:
- Parameters:
factory
- the value for therowControlsFactory
property- See Also:
-
getRowControlsFactory
Gets the value of therowControlsFactory
property.- Property description:
- Returns:
- the value of the
rowControlsFactory
property - See Also:
-
enableRowResizingProperty
Controls whether the view allows the user to interactively resize the row / change the row height.- Returns:
- true if the rows can be resized
- Since:
- 11.12.0
- See Also:
-
isEnableRowResizing
public final boolean isEnableRowResizing()Gets the value of theenableRowResizing
property.- Property description:
- Controls whether the view allows the user to interactively resize the row / change the row height.
- Returns:
- the value of the
enableRowResizing
property - Since:
- 11.12.0
- See Also:
-
setEnableRowResizing
public final void setEnableRowResizing(boolean enableRowResizing) Sets the value of theenableRowResizing
property.- Property description:
- Controls whether the view allows the user to interactively resize the row / change the row height.
- Parameters:
enableRowResizing
- the value for theenableRowResizing
property- Since:
- 11.12.0
- See Also:
-
rowHeaderFactoryProperty
public final ObjectProperty<Callback<GraphicsBase<R>,GraphicsBase.RowHeader<R>>> rowHeaderFactoryProperty()A property used to store a callback for creating a node that will be placed to the left of each row in the graphics view.- Returns:
- the row header node callback property
- Since:
- 11.11.0
- See Also:
-
setRowHeaderFactory
Sets the value ofrowHeaderFactoryProperty()
.- Parameters:
factory
- the factory used for creating the row header nodes- Since:
- 11.11.0
-
getRowHeaderFactory
Returns the value ofrowHeaderFactoryProperty()
.- Returns:
- the row header nodes factory
- Since:
- 11.11.0
-
showRowHeadersProperty
Determines if the row headers will be shown to the user or not.- Returns:
- true if the row headers will be visible
- Since:
- 11.11.0
- See Also:
-
isShowRowHeaders
public final boolean isShowRowHeaders()Gets the value of theshowRowHeaders
property.- Property description:
- Determines if the row headers will be shown to the user or not.
- Returns:
- the value of the
showRowHeaders
property - Since:
- 11.11.0
- See Also:
-
setShowRowHeaders
public final void setShowRowHeaders(boolean showRowHeaders) Sets the value of theshowRowHeaders
property.- Property description:
- Determines if the row headers will be shown to the user or not.
- Parameters:
showRowHeaders
- the value for theshowRowHeaders
property- Since:
- 11.11.0
- See Also:
-
rowHeadersWidthProperty
Specifies the width of the so-called "row headers". These are custom nodes that can be placed in front of every row inside the graphics area. For proper layout the width of all row headers has to be the same.- Returns:
- the width in pixels used for all row headers
- Since:
- 11.11.0
- See Also:
-
getRowHeadersWidth
public final double getRowHeadersWidth()Gets the value of therowHeadersWidth
property.- Property description:
- Specifies the width of the so-called "row headers". These are custom nodes that can be placed in front of every row inside the graphics area. For proper layout the width of all row headers has to be the same.
- Returns:
- the value of the
rowHeadersWidth
property - Since:
- 11.11.0
- See Also:
-
setRowHeadersWidth
public final void setRowHeadersWidth(double rowHeadersWidth) Sets the value of therowHeadersWidth
property.- Property description:
- Specifies the width of the so-called "row headers". These are custom nodes that can be placed in front of every row inside the graphics area. For proper layout the width of all row headers has to be the same.
- Parameters:
rowHeadersWidth
- the value for therowHeadersWidth
property- Since:
- 11.11.0
- See Also:
-
rowEditorFactoryProperty
public final ObjectProperty<Callback<GraphicsBase.RowEditorParameter<R>,Node>> rowEditorFactoryProperty()- Returns:
- the
rowEditorFactory
property - See Also:
-
setRowEditorFactory
Sets the value of therowEditorFactory
property.- Property description:
- Parameters:
factory
- the value for therowEditorFactory
property- See Also:
-
getRowEditorFactory
Gets the value of therowEditorFactory
property.- Property description:
- Returns:
- the value of the
rowEditorFactory
property - See Also:
-
rowEditingModeProperty
- Returns:
- the
rowEditingMode
property - See Also:
-
setRowEditingMode
Sets the value of therowEditingMode
property.- Property description:
- Parameters:
mode
- the value for therowEditingMode
property- See Also:
-
getRowEditingMode
Gets the value of therowEditingMode
property.- Property description:
- Returns:
- the value of the
rowEditingMode
property - See Also:
-
getRowsEditing
-
stopRowEditing
public final void stopRowEditing() -
stopRowEditing
-
startRowEditing
-
animateRowEditorProperty
- Returns:
- the
animateRowEditor
property - See Also:
-
setAnimateRowEditor
public final void setAnimateRowEditor(boolean animate) Sets the value of theanimateRowEditor
property.- Property description:
- Parameters:
animate
- the value for theanimateRowEditor
property- See Also:
-
isAnimateRowEditor
public final boolean isAnimateRowEditor()Gets the value of theanimateRowEditor
property.- Property description:
- Returns:
- the value of the
animateRowEditor
property - See Also:
-
setEditModeCallback
public final void setEditModeCallback(Class<? extends MutableActivity> activityType, Class<? extends Layout> layoutType, Callback<GraphicsBase.EditModeCallbackParameter, GraphicsBase.EditMode> callback) -
getEditModeCallback
public final Callback<GraphicsBase.EditModeCallbackParameter,GraphicsBase.EditMode> getEditModeCallback(Class<? extends MutableActivity> activityType, Class<? extends Layout> layoutType) -
dropLayerProviderProperty
public final ObjectProperty<Callback<GraphicsBase.DragAndDropInfo,Layer>> dropLayerProviderProperty()A property used to store a callback that will return the layer on which a dragged activity will be placed once the drop operation has finished. The default provider returns the layer on which the activity is currently shown.- Returns:
- a property used to store the drop layer provider
- Since:
- 1.2
- See Also:
-
getDropLayerProvider
Returns the value ofdropLayerProviderProperty()
.- Returns:
- the drop layer provider used for DnD operations
- Since:
- 1.2
-
setDropLayerProvider
Sets the value ofdropLayerProviderProperty()
.- Parameters:
provider
- the drop layer provider used for DnD operations- Since:
- 1.2
-
horizontalDragEnabledProperty
Determines whether the user can perform a horizontal drag with a mouse drag.- Returns:
- true if the visible time range can be changed via a mouse drag
- Since:
- 1.3
- See Also:
-
setHorizontalDragEnabled
public final void setHorizontalDragEnabled(boolean enabled) Sets the value ofhorizontalDragEnabledProperty()
.- Parameters:
enabled
- if true the user can perform horizontal scrolling
-
isHorizontalDragEnabled
public final boolean isHorizontalDragEnabled()Returns the value ofhorizontalDragEnabledProperty()
.- Returns:
- true if the user can perform horizontal scrolling
-
safeRenderingProperty
Returns the property that specifies whether the various canvas API-based rendering parts inside this framework will always callGraphicsContext.save()
to save the current state of the context before changing its state (followed byGraphicsContext.restore()
to restore the old state).Using save / restore will ensure that the pluggable system layers and activity renderers will not have any side effects on each other. Setting this property to true has an impact on performance. The default value of this property is false.
Example
The following code shows how the property is used within the framework.GraphicsContext gc = canvas.getGraphicsContext2D(); if (graphics.isSafeRendering()) { gc.save(); } gc.setTransform(...); gc.strokeLine(...); if (graphics.isSafeRendering()) { gc.restore(); }
- Returns:
- the property to control safe rendering
- See Also:
-
setSafeRendering
public final void setSafeRendering(boolean safe) Sets the value ofsafeRenderingProperty()
.- Parameters:
safe
- if true the safe rendering mode will be used (the graphics context state will be saved before invoking renderers or drawing system layers).
-
isSafeRendering
public final boolean isSafeRendering()Returns the value ofsafeRenderingProperty()
.- Returns:
- "true" if the safe rendering mode will be used (the graphics context state will be saved before invoking renderers or drawing system layers).
-
gridLineColor1Property
- Returns:
- the
gridLineColor1
property - See Also:
-
getGridLineColor1
Gets the value of thegridLineColor1
property.- Property description:
- Returns:
- the value of the
gridLineColor1
property - See Also:
-
setGridLineColor1
Sets the value of thegridLineColor1
property.- Property description:
- Parameters:
color
- the value for thegridLineColor1
property- See Also:
-
gridLineColor2Property
- Returns:
- the
gridLineColor2
property - See Also:
-
getGridLineColor2
Gets the value of thegridLineColor2
property.- Property description:
- Returns:
- the value of the
gridLineColor2
property - See Also:
-
setGridLineColor2
Sets the value of thegridLineColor2
property.- Property description:
- Parameters:
color
- the value for thegridLineColor2
property- See Also:
-
gridLineColor3Property
- Returns:
- the
gridLineColor3
property - See Also:
-
getGridLineColor3
Gets the value of thegridLineColor3
property.- Property description:
- Returns:
- the value of the
gridLineColor3
property - See Also:
-
setGridLineColor3
Sets the value of thegridLineColor3
property.- Property description:
- Parameters:
color
- the value for thegridLineColor3
property- See Also:
-
weekendColorProperty
- Returns:
- the
weekendColor
property - See Also:
-
getWeekendColor
Gets the value of theweekendColor
property.- Property description:
- Returns:
- the value of the
weekendColor
property - See Also:
-
setWeekendColor
Sets the value of theweekendColor
property.- Property description:
- Parameters:
color
- the value for theweekendColor
property- See Also:
-
timeNowColorProperty
- Returns:
- the
timeNowColor
property - See Also:
-
getTimeNowColor
Gets the value of thetimeNowColor
property.- Property description:
- Returns:
- the value of the
timeNowColor
property - See Also:
-
setTimeNowColor
Sets the value of thetimeNowColor
property.- Property description:
- Parameters:
color
- the value for thetimeNowColor
property- See Also:
-
innerLinesColorProperty
- Returns:
- the
innerLinesColor
property - See Also:
-
getInnerLinesColor
Gets the value of theinnerLinesColor
property.- Property description:
- Returns:
- the value of the
innerLinesColor
property - See Also:
-
setInnerLinesColor
Sets the value of theinnerLinesColor
property.- Property description:
- Parameters:
color
- the value for theinnerLinesColor
property- See Also:
-
getClassCssMetaData
-
getControlCssMetaData
- Overrides:
getControlCssMetaData
in classControl
-