public class IlvScheduleChart extends IlvHierarchyChart
The Schedule chart supports alternate locales by utilizing resource files. The resource files are documented here.
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
HORIZONTAL, ROW_VERTICAL_SCROLL, SCROLL_TIME_LEFT_KEYSTROKE, SCROLL_TIME_RIGHT_KEYSTROKE, SCROLL_VERTICAL_DOWN_KEYSTROKE, SCROLL_VERTICAL_UP_KEYSTROKE, SMOOTH_VERTICAL_SCROLL, TIME_CONVERTER_PROPERTY, VERTICAL, VERTICAL_SCROLLBAR_ALWAYS, VERTICAL_SCROLLBAR_AS_NEEDED, VERTICAL_SCROLLBAR_NEVER, ZOOM_IN_KEYSTROKE, ZOOM_OUT_KEYSTROKE
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
DEFAULT_MINIMUM_DURATION
APPLIED_RULE_MASK, BAD_CLASS_MASK, BAD_PROP_MASK, BAD_PROP_WITH_STACK_MASK, CREATED_MASK, DECL_MASK, DECL_VALUE_MASK, FAILED_CONVERSIONS_MASK, TIME_REPORT_MASK, WARNING_PROP_MASK
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
IlvScheduleChart()
Creates a new
IlvScheduleChart . |
Modifier and Type | Method and Description |
---|---|
protected IlvJTableColumn[] |
createDefaultTableColumns()
Creates the default table columns for the chart.
|
IlvActivityLayout |
getActivityLayout()
Returns the activity layout used in the Gantt sheet of the Schedule
chart.
|
float |
getReservationCacheLoadFactor()
Returns the time duration that the chart will use when it
queries the Gantt data model for additional reservations to be
displayed. |
float |
getReservationCacheLoadThreshold()
Returns the threshold that will trigger the chart to
query the Gantt data model for additional reservations to be
displayed. |
IlvReservation[] |
getSelectedReservations()
Returns the reservations that are selected in the Schedule chart.
|
IlvResource[] |
getSelectedResources()
Returns the resources that are selected in the Schedule chart.
|
boolean |
isReservationCachingEnabled()
Returns whether reservation caching is currently enabled.
|
void |
select(IlvReservation reservation,
boolean selected)
Selects or deselects the specified reservation.
|
void |
select(IlvResource resource,
boolean selected)
Selects or deselects the specified resource.
|
void |
setActivityLayout(IlvActivityLayout activityLayout)
Sets the activity layout used in the Gantt sheet of the Schedule
chart.
|
void |
setReservationCacheLoadFactor(float loadFactor)
Sets the time duration that the chart will use when it
queries the Gantt data model for additional reservations to be
displayed. |
void |
setReservationCacheLoadThreshold(float loadThreshold)
Returns the threshold that will trigger the chart to
query the Gantt data model for additional reservations to be
displayed. |
void |
setReservationCachingEnabled(boolean enabled)
Sets whether reservation caching is currently enabled.
|
addChartDividerListener, addGanttModelListener, addHeaderListener, addSelectionListener, addTimeScrollListener, addVerticalExpansionListener, addVerticalScrollListener, baseTextDirectionChanged, collapseRow, componentOrientationChanged, computeVerticalScrollPosition, deSelectAllRows, expandAllRows, expandAllRows, expandRow, getActionForGanttPanelKeyStroke, getActionForTablePanelKeyStroke, getActivityFactory, getActivityRendererFactory, getBaseTextDirection, getComponentManager, getConditionForGanttPanelKeyStroke, getConditionForTablePanelKeyStroke, getConstraintFactory, getConstraintGraphicFactory, getDisplayedRowAtPosition, getDisplayedRowIndexAtPosition, getDividerBorder, getDividerLocation, getDividerSize, getFirstVisibleRow, getGanttModel, getGanttSheet, getGanttSheetBackground, getHeaderHeight, getInsideBorder, getMaxVerticalPosition, getMaxVisibleTime, getMinimumGanttSheetWidth, getMinimumTableWidth, getMinVisibleDuration, getMinVisibleTime, getMouseWheelPreferredOrientation, getProject, getRegisteredGanttPanelKeyStrokes, getRegisteredTablePanelKeyStrokes, getReservationFactory, getResolvedBaseTextDirection, getResourceFactory, getRootRow, getRowHeight, getRowHeight, getRowType, getScrollTimeLeftAction, getScrollTimeRightAction, getScrollVerticalDownAction, getScrollVerticalUpAction, getSelectedConstraints, getSelectedGraphics, getSelectedRows, getStyleSheet, getStyleSheetDebugMask, getStyleSheets, getStyleSheets, getStylingManager, getTable, getTableBackground, getTableFont, getTableForeground, getTableGridColor, getTableHeaderBackground, getTableHeaderFont, getTableHeaderForeground, getTimeConverter, getTimeScale, getTimeScaleBackground, getTimeScaleFont, getTimeScaleForeground, getTimeScrollBar, getULocale, getVerticalExtent, getVerticalPosition, getVerticalScrollBarPolicy, getVerticalScrollMode, getVisibleDuration, getVisibleInterval, getVisibleIntervalAnimationSteps, getVisibleRow, getVisibleRowAtPosition, getVisibleRowBounds, getVisibleRowBounds, getVisibleRowCount, getVisibleRowIndex, getVisibleRowIndexAtPosition, getVisibleTime, getZoomInAction, getZoomOutAction, isConstantZoomFactorOnWidthChange, isConstraintLayerVisible, isDisplayingConstraints, isDividerOneTouchExpandable, isDividerOpaqueMove, isFixedRowHeight, isGanttSheetToolTipsEnabled, isGanttSheetVisible, isGraphicSelected, isHorizontalScrollBarVisible, isMouseWheelEnabled, isMultipleRowActivityGraphicsEnabled, isRootRowVisible, isRowExpanded, isRowSelected, isRowVisible, isSelectionAdjusting, isTableVisible, makeRowDisplayed, makeRowVisible, registerFunction, registerGanttPanelKeyboardAction, registerTablePanelKeyboardAction, removeChartDividerListener, removeGanttModelListener, removeHeaderListener, removeSelectionListener, removeTimeScrollListener, removeVerticalExpansionListener, removeVerticalScrollListener, select, selectedGraphicsIterator, selectedRowsIterator, selectRow, selectRow, setActivityFactory, setActivityRendererFactory, setBaseTextDirection, setComponentOrientation, setConstantZoomFactorOnWidthChange, setConstraintFactory, setConstraintGraphicFactory, setConstraintLayerVisible, setDisplayingConstraints, setDividerBorder, setDividerLocation, setDividerOneTouchExpandable, setDividerOpaqueMove, setDividerSize, setGanttModel, setGanttSheetBackground, setGanttSheetToolTipsEnabled, setGanttSheetVisible, setHorizontalScrollBarVisible, setInsideBorder, setLocale, setMaxVerticalPosition, setMaxVisibleTime, setMinimumGanttSheetWidth, setMinimumTableWidth, setMinVisibleDuration, setMinVisibleTime, setMouseWheelEnabled, setMouseWheelPreferredOrientation, setMultipleRowActivityGraphicsEnabled, setProject, setReservationFactory, setResourceFactory, setRootRowVisible, setRowHeight, setRowHeight, setSelectionAdjusting, setStyleSheet, setStyleSheetDebugMask, setStyleSheets, setStyleSheets, setTableBackground, setTableFont, setTableForeground, setTableGridColor, setTableHeaderBackground, setTableHeaderFont, setTableHeaderForeground, setTableVisible, setTimeConverter, setTimeScale, setTimeScaleBackground, setTimeScaleFont, setTimeScaleForeground, setULocale, setVerticalExtent, setVerticalPosition, setVerticalScrollBarPolicy, setVerticalScrollMode, setVisibleDuration, setVisibleInterval, setVisibleIntervalAnimationSteps, setVisibleTime, unregisterGanttPanelKeyboardAction, unregisterTablePanelKeyboardAction, updateUI, visibleRowsIterator, visibleRowsIterator
getAccessibleContext, getUI, getUIClassID, paramString, setUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addPropertyChangeListener, removePropertyChangeListener
public IlvScheduleChart()
IlvScheduleChart
.
As with IlvGanttChart
, the IlvScheduleChart
class also creates an embedded IlvGanttSheet
and uses it to
display reservations of the resources. By default, the parent activity
graphics are movable but not editable. This behavior can be changed by
the methods IlvGanttSheet.setParentActivityMovable(boolean)
and
IlvGanttSheet.setParentActivityEditable(boolean)
.
public void select(IlvResource resource, boolean selected)
resource
- The resource to be selected or deselected.selected
- Indicates whether the specified resource should be
selected or not.public void select(IlvReservation reservation, boolean selected)
reservation
- The reservation to be selected or deselected.selected
- Indicates whether the specified reservation should be
selected or not.public IlvResource[] getSelectedResources()
public IlvReservation[] getSelectedReservations()
public IlvActivityLayout getActivityLayout()
setActivityLayout(IlvActivityLayout)
public void setActivityLayout(IlvActivityLayout activityLayout)
activityLayout
- The activity layout.getActivityLayout()
protected IlvJTableColumn[] createDefaultTableColumns()
IlvAbstractJTableColumn
, has a
String
identifier which can be used to filter the
visible columns through CSS, and a String TableHeader
,
coming from resource file for localization.
String Identifier | Class | Resource for Header label | English label | French label |
Name | IlvTreeColumn |
TableColumn.Name.label | Name | Nom |
ID | IlvStringColumn |
TableColumn.ID.label | ID | ID |
Qty | IlvStringColumn |
TableColumn.Qty.label | Qty | Qté |
createDefaultTableColumns
in class IlvHierarchyChart
public boolean isReservationCachingEnabled()
false
. When reservation caching is disabled,
the schedule chart populates each resource row in the Gantt sheet with
all the reservations associated with that resource. When reservation
caching is enabled, the Gantt sheet
queries the Gantt model
for only those reservations that are within a
limited region surrounding the currently visible time interval
. As the visible time interval is scrolled and
zoomed, the reservationCacheLoadThreshold
determines when the chart queries the
data model for more reservations and the
reservationCacheLoadFactor
determines the size of the time interval that is queried. The chart
tracks internally the overall time interval that has been queried from
the Gantt model.true
if reservation caching is enabled, false
otherwise.setReservationCachingEnabled(boolean)
public void setReservationCachingEnabled(boolean enabled)
Gantt data model
currently
bound
to the chart, the data
model will be momentarily unbound and then rebound. When reservation
caching is disabled, the schedule chart populates each resource row in
the Gantt sheet with all the reservations associated with that
resource. When reservation caching is enabled, the Gantt sheet
queries the Gantt model
for only those reservations that are within a
limited region surrounding the currently visible time interval
. As the visible time interval is scrolled and
zoomed, the reservationCacheLoadThreshold
determines when the chart queries the
data model for more reservations and the
reservationCacheLoadFactor
determines the size of the time interval that is queried. The chart
tracks internally the overall time interval that has been queried from
the Gantt model.enabled
- true
to enable reservation caching, or false
to disable it.isReservationCachingEnabled()
public float getReservationCacheLoadThreshold()
query the Gantt data model
for additional reservations to be
displayed. The threshold is expressed as a fraction of the chart's
current visible duration
. Higher values
mean that the chart will query the data model more frequently. A value
of 0 means that the chart will not query the data model until the
visible interval is scrolled
to the limits of the overall time interval that the chart has already
queried the data model. The default value is 0.25.
For example, let us assume that the chart has already queried the Gantt data model for reservations within the time interval of May 1 to May 20, a duration of 20 days. Also, the chart's current visible interval has a duration of 8 days and the reservationCacheLoadThreshold is 0.25. Therefore, the chart will query the data model for additional reservations when the visible interval is scrolled to be within 2 days (0.25 * 8) of May 1 or May 20.
May 1 May 20 |<------interval already queried------>| -> |<-2 days ->| <-2 days | |<----visible--->| | | 8 days | threshold threshold
visible duration
.setReservationCacheLoadThreshold(float)
,
getReservationCacheLoadFactor()
,
setReservationCacheLoadFactor(float)
public void setReservationCacheLoadThreshold(float loadThreshold)
query the Gantt data model
for additional reservations to be
displayed. The threshold is expressed as a fraction of the chart's
current visible duration
. Higher values
mean that the chart will query the data model more frequently. A value
of 0 means that the chart will not query the data model until the
visible interval is scrolled
to the limits of the overall time interval that the chart has already
queried the data model. You should not set a threshold that is larger
than the
reservationCacheLoadFactor
because the threshold will remain exceeded, even after the data model
is queried for additional reservations.
For example, let us assume that the chart has already queried the Gantt data model for reservations within the time interval of May 1 to May 20, a duration of 20 days. Also, the chart's current visible interval has a duration of 8 days and the reservationCacheLoadThreshold is 0.25. Therefore, the chart will query the data model for additional reservations when the visible interval is scrolled to be within 2 days (0.25 * 8) of May 1 or May 20.
May 1 May 20 |<------interval already queried------>| -> |<-2 days ->| <-2 days | |<----visible--->| | | 8 days | threshold threshold
loadThreshold
- The reservation cache load threshold, as a fraction of the
chart's current visible duration
.getReservationCacheLoadThreshold()
,
getReservationCacheLoadFactor()
,
setReservationCacheLoadFactor(float)
public float getReservationCacheLoadFactor()
queries the Gantt data model
for additional reservations to be
displayed. The duration is expressed as a multiple of the chart's
current visible duration
. The default
value is 1.5.
For example, let us assume that the chart has a current visible
duration of 10 days, has just been
scrolled
to
the visible interval of June 1 to June 10, and the
reservationCacheLoadThreshold
has just been triggered. If the loadFactor is 0, the chart
will query the data model so that reservations in the exact June 1 -
June 10 interval are included for display. If the loadFactor
is 0.1, the chart will query the data model so that reservations in
the interval of May 31 - June 11 will be included, which is 1 day
longer (0.1 * 10) at both ends than the visible interval.
visible duration
.setReservationCacheLoadFactor(float)
,
getReservationCacheLoadThreshold()
,
setReservationCacheLoadThreshold(float)
public void setReservationCacheLoadFactor(float loadFactor)
queries the Gantt data model
for additional reservations to be
displayed. The duration is expressed as a multiple of the chart's
current visible duration
.
For example, let us assume that the chart has a current visible
duration of 10 days, has just been
scrolled
to
the visible interval of June 1 to June 10, and the
reservationCacheLoadThreshold
has just been triggered. If the loadFactor is 0, the chart
will query the data model so that reservations in the exact June 1 -
June 10 interval are included for display. If the loadFactor
is 0.1, the chart will query the data model so that reservations in
the interval of May 31 - June 11 will be included, which is 1 day
longer (0.1 * 10) at both ends than the visible interval.
loadFactor
- The reservation cache load factor, as a multiple of the chart's
current visible duration
.getReservationCacheLoadFactor()
,
getReservationCacheLoadThreshold()
,
setReservationCacheLoadThreshold(float)
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.