public class IlvHierarchyChart extends JPanel implements IlvTimeScrollable, IlvVerticalScrollable, IlvStylable, IlvAcceptFunctions
IlvHierarchyChart
class is the base class for
IlvGanttChart
and IlvScheduleChart
. The left part of
the chart is an IlvJTable
that displays the activities or
resources of a given IlvGanttModel
as a tree structure. The
right part of the chart is an IlvGanttSheet
showing activities
or reservations.
The Hierarchy chart supports alternate locales by utilizing resource files. The resource files are documented here.
Two horizontal time scrolling modes are supported by the chart:
minimum visible time
and the maximum visible time
. Both
values must be valid and non-null.
In bounded scrolling mode there are four interrelated time properties: minVisibleTime, maxVisibleTime, visibleTime, and visibleDuration. These four values define two nested ranges like this:
minVisibleTime <= visibleTime <= visibleTime+visibleDuration <= maxVisibleTime
The chart enforces this relationship by correcting or trimming properties according to the following rules:
setMinVisibleTime(java.util.Date)
and setMaxVisibleTime(java.util.Date)
methods first validate that:
minVisibleTime <= maxVisibleTime
If not, an IllegalArgumentException is thrown. Next, the visible time and visible duration properties may be trimmed (in that order), to fit within the new min-max interval.
setVisibleTime(java.util.Date)
and extent
setVisibleDuration(ilog.views.gantt.IlvDuration)
methods trim their argument to fit
within the limits defined by the other three properties. For
example if
maxVisibleTime.equals(visibleTime.add(IlvDuration.ONE_DAY))
, then setVisibleDuration(IlvDuration.ONE_WEEK)
would change the duration to
IlvDuration.ONE_DAY
.
The chart uses the
IlvTimeScrollUtil.trimInterval(IlvTimeScrollable, IlvTimeInterval)
method to perform consistent validation and trimming of the time
value arguments.
minimum visible time
and the
maximum visible time
are undefined and
are set to null. Even in unbounded scrolling mode, there is an
inherent limitation on the
minimum
and
maximum
times that
can be scrolled to. As in bounded scrolling mode, this is enforced
by having the chart use the
IlvTimeScrollUtil.trimInterval(IlvTimeScrollable, IlvTimeInterval)
method to perform validation and trimming of the time value
arguments.
The following default keyboard actions are installed on the chart and its sub-components by default:
Action | KeyStroke | Component | Condition |
Zoom In |
Control-Z |
Chart | WHEN_ANCESTOR_OF_FOCUSED_COMPONENT |
Zoom Out |
Control-U |
Chart | WHEN_ANCESTOR_OF_FOCUSED_COMPONENT |
Scroll Up |
Up Arrow |
Right Gantt Panel | WHEN_ANCESTOR_OF_FOCUSED_COMPONENT |
Scroll Down |
Down Arrow |
Right Gantt Panel | WHEN_ANCESTOR_OF_FOCUSED_COMPONENT |
Scroll Time Left |
Left Arrow |
Right Gantt Panel | WHEN_ANCESTOR_OF_FOCUSED_COMPONENT |
Scroll Time Right |
Right Arrow |
Right Gantt Panel | WHEN_ANCESTOR_OF_FOCUSED_COMPONENT |
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
static int |
HORIZONTAL
Horizontal orientation.
|
static int |
ROW_VERTICAL_SCROLL
The scrolling mode that indicates that vertical
scrolling will occur by rows.
|
static KeyStroke |
SCROLL_TIME_LEFT_KEYSTROKE
The default left-arrow
KeyStroke that is used to
register the scroll-time-left action
with the right Gantt panel when the chart is created. |
static KeyStroke |
SCROLL_TIME_RIGHT_KEYSTROKE
The default right-arrow
KeyStroke that is used to
register the scroll-time-right action
with the right Gantt panel when the chart is created. |
static KeyStroke |
SCROLL_VERTICAL_DOWN_KEYSTROKE
The default down-arrow
KeyStroke that is used to
register the scroll-down action
with the right Gantt panel when the chart is created. |
static KeyStroke |
SCROLL_VERTICAL_UP_KEYSTROKE
The default up-arrow
KeyStroke that is used to
register the scroll-up action with
the right Gantt panel when the chart is created. |
static int |
SMOOTH_VERTICAL_SCROLL
The scrolling mode that indicates that vertical
scrolling will occur smoothly by pixels.
|
static String |
TIME_CONVERTER_PROPERTY
Identifies a change to the time converter of the chart.
|
static int |
VERTICAL
Vertical orientation.
|
static int |
VERTICAL_SCROLLBAR_ALWAYS
The vertical scroll bar will always be displayed.
|
static int |
VERTICAL_SCROLLBAR_AS_NEEDED
The vertical scroll bar will be displayed as needed.
|
static int |
VERTICAL_SCROLLBAR_NEVER
The vertical scroll bar will never be displayed.
|
static KeyStroke |
ZOOM_IN_KEYSTROKE
The default Control-Z
KeyStroke that is used to
register the zoom-in action with the chart
when the chart is created. |
static KeyStroke |
ZOOM_OUT_KEYSTROKE
The default Control-U
KeyStroke that is used to
register the zoom-out action with the chart
when the chart is created. |
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 |
---|
IlvHierarchyChart(int rowType)
Creates a new
IlvHierarchyChart . |
Modifier and Type | Method and Description |
---|---|
void |
addChartDividerListener(ChartDividerListener aListener)
Adds the specified listener to receive divider events from this chart.
|
void |
addGanttModelListener(GanttModelListener listener)
Adds the specified listener to receive notifications when this chart's
Gantt model has been changed. |
void |
addHeaderListener(HeaderListener listener)
Adds the specified listener for receiving header change events from this
chart.
|
void |
addSelectionListener(SelectionListener listener)
Adds the specified listener to receive selection events from this
chart.
|
void |
addTimeScrollListener(TimeScrollListener listener)
Adds the specified listener to receive time scroll events from this
chart.
|
void |
addVerticalExpansionListener(VerticalExpansionListener listener)
Adds the specified listener to receive vertical expansion events from
this chart.
|
void |
addVerticalScrollListener(VerticalScrollListener listener)
Adds the specified listener to receive vertical scroll events from
this chart.
|
protected void |
baseTextDirectionChanged()
This method is invoked when the effective base text direction has changed.
|
void |
collapseRow(IlvHierarchyNode row)
Ensures that the specified row is collapsed.
|
protected void |
componentOrientationChanged(ComponentOrientation oldOrientation,
ComponentOrientation newOrientation)
This method is invoked when the component orientation of this chart has
changed.
|
int |
computeVerticalScrollPosition(int rowDelta)
Returns the position that will cause the chart to scroll by the specified number of
rows up or down.
|
protected IlvJTableColumn[] |
createDefaultTableColumns()
Creates the default table columns for the chart.
|
void |
deSelectAllRows()
Deselects all of the currently selected rows.
|
void |
expandAllRows()
Ensures that all rows in the chart are expanded and visible.
|
void |
expandAllRows(IlvHierarchyNode row)
Ensures that the specified row and all of its children are
expanded and visible.
|
void |
expandRow(IlvHierarchyNode row)
Ensures that the specified row is expanded and visible.
|
ActionListener |
getActionForGanttPanelKeyStroke(KeyStroke aKeyStroke)
Returns the object that will perform the action registered with the
right Gantt panel.
|
ActionListener |
getActionForTablePanelKeyStroke(KeyStroke aKeyStroke)
Returns the object that will perform the action registered with the
left table panel.
|
IlvActivityFactory |
getActivityFactory()
Returns the activity factory used for creating activities.
|
IlvActivityRendererFactory |
getActivityRendererFactory()
Returns the activity-renderer factory used to create activity
graphics.
|
int |
getBaseTextDirection()
Returns the base text direction for this chart.
|
IlvGanttComponentManager |
getComponentManager()
Returns the component manager that is coordinating the scrolling, row
expand/collapse, and selection behaviors for the chart's UI
components.
|
int |
getConditionForGanttPanelKeyStroke(KeyStroke aKeyStroke)
Returns the condition code for the action that is registered with the
right Gantt panel for the specified keystroke.
|
int |
getConditionForTablePanelKeyStroke(KeyStroke aKeyStroke)
Returns the condition code for the action that is registered with the
left table panel for the specified keystroke.
|
IlvConstraintFactory |
getConstraintFactory()
Returns the constraint factory used for creating constraints.
|
IlvConstraintGraphicFactory |
getConstraintGraphicFactory()
Returns the constraint-graphics factory used to create constraint
graphics.
|
IlvHierarchyNode |
getDisplayedRowAtPosition(int position)
Returns the row at the specified vertical position relative to
the display area.
|
int |
getDisplayedRowIndexAtPosition(int position)
Returns the row index at the specified vertical position
relative to the display area.
|
Border |
getDividerBorder()
Deprecated.
Beginning with Rogue Wave JViews 6.0 you should use the
getInsideBorder() method instead. |
int |
getDividerLocation()
Returns the location of the divider as the number of pixels from the
left side of the chart.
|
int |
getDividerSize()
Returns the size of the divider in pixels.
|
IlvHierarchyNode |
getFirstVisibleRow()
Returns the first visible row in the hierarchy chart or
null
if no rows are visible. |
IlvGanttModel |
getGanttModel()
Returns the Gantt data model for the hierarchy chart.
|
IlvGanttSheet |
getGanttSheet()
Returns the Gantt sheet displaying the activities or the
reservations.
|
Color |
getGanttSheetBackground()
Returns the background color of the Gantt sheet.
|
int |
getHeaderHeight()
Returns the header height of the time scale for synchronization.
|
Border |
getInsideBorder()
Returns the inside border of the chart.
|
int |
getMaxVerticalPosition()
Returns the maximum vertical position that the chart can display.
|
Date |
getMaxVisibleTime()
Returns the maximum time that the chart can show in bounded
scrolling mode.
|
int |
getMinimumGanttSheetWidth()
Returns the minimum width of the Gantt sheet.
|
int |
getMinimumTableWidth()
Returns the minimum width of the table.
|
IlvDuration |
getMinVisibleDuration()
Returns the minimum duration that the chart can show.
|
Date |
getMinVisibleTime()
Returns the minimum time that the chart can show in bounded
scrolling mode.
|
int |
getMouseWheelPreferredOrientation()
Returns the preferred orientation of scrolling by the mouse wheel, either
VERTICAL or HORIZONTAL . |
URL |
getProject()
Returns the project file URL loaded by this chart.
|
KeyStroke[] |
getRegisteredGanttPanelKeyStrokes()
Returns the
KeyStroke s that are registered with the
right Gantt panel to initiate actions. |
KeyStroke[] |
getRegisteredTablePanelKeyStrokes()
Returns the
KeyStroke s that are registered with the
left table panel to initiate actions. |
IlvReservationFactory |
getReservationFactory()
Returns the reservation factory used for creating reservations.
|
int |
getResolvedBaseTextDirection()
Returns the resolved base text direction.
|
IlvResourceFactory |
getResourceFactory()
Returns the resource factory used for creating resources.
|
IlvHierarchyNode |
getRootRow()
Returns the root row of the displayed hierarchy chart or
null if the hierarchy chart has no rows. |
int |
getRowHeight()
Returns the row height used when all rows in the chart are set to have
the same height.
|
int |
getRowHeight(IlvHierarchyNode row)
Returns the height of the specified row.
|
int |
getRowType()
Returns an
int representing the type of the rows in the
hierarchy chart. |
IlvTimeScrollAction |
getScrollTimeLeftAction()
Returns the
scroll-time-left action that
is registered by default on the right Gantt panel with the
left-arrow keystroke . |
IlvTimeScrollAction |
getScrollTimeRightAction()
Returns the
scroll-time-right action that
is registered by default on the right Gantt panel with the
right-arrow keystroke . |
IlvVerticalScrollAction |
getScrollVerticalDownAction()
Returns the
vertical-scroll-down action
that is registered by default on the right Gantt panel with the
down-arrow keystroke . |
IlvVerticalScrollAction |
getScrollVerticalUpAction()
Returns the
vertical-scroll-up action
that is registered by default on the right Gantt panel with the
up-arrow keystroke . |
IlvConstraint[] |
getSelectedConstraints()
Returns the constraints that are selected in the chart.
|
IlvGraphic[] |
getSelectedGraphics()
Returns the selected graphics in the Gantt sheet.
|
IlvHierarchyNode[] |
getSelectedRows()
Returns the rows that are selected in the chart.
|
String |
getStyleSheet()
Returns the first of the Cascading Style Sheets for the chart.
|
int |
getStyleSheetDebugMask()
Returns the current debug level, expressed as an OR combination of
the predefined flags:
IlvStylable.APPLIED_RULE_MASK
IlvStylable.BAD_CLASS_MASK
IlvStylable.BAD_PROP_MASK
IlvStylable.CREATED_MASK
IlvStylable.DECL_MASK
IlvStylable.DECL_VALUE_MASK
IlvStylable.FAILED_CONVERSIONS_MASK
IlvStylable.TIME_REPORT_MASK
IlvStylable.WARNING_PROP_MASK
|
String[] |
getStyleSheets()
Returns the chart's Cascading Style Sheets.
|
String |
getStyleSheets(int index)
Returns one of the chart's Cascading Style Sheets.
|
ilog.views.gantt.styling.IlvGanttCSSManager |
getStylingManager()
Returns the styling manager for this chart.
|
IlvJTable |
getTable()
Retrieves the
IlvJTable used to display the activity or
resource hierarchy in a Gantt model. |
Color |
getTableBackground()
Returns the background color of the table.
|
Font |
getTableFont()
Returns the font used in the table.
|
Color |
getTableForeground()
Returns the foreground color of the table.
|
Color |
getTableGridColor()
Returns the color of the table grid.
|
Color |
getTableHeaderBackground()
Returns the background color of the table header.
|
Font |
getTableHeaderFont()
Returns the font of the table header.
|
Color |
getTableHeaderForeground()
Returns the foreground color of the table header.
|
IlvTimeConverter |
getTimeConverter()
Returns the time converter used by the
Gantt sheet and the
time scale.
|
IlvTimeScale |
getTimeScale()
Returns the time scale.
|
Color |
getTimeScaleBackground()
Returns the background color of the time scale.
|
Font |
getTimeScaleFont()
Returns the font of the time scale.
|
Color |
getTimeScaleForeground()
Returns the foreground color of the time scale.
|
IlvTimeScrollBar |
getTimeScrollBar()
Returns the horizontal time scroll bar.
|
ULocale |
getULocale()
Returns the locale of this component.
|
int |
getVerticalExtent()
Returns the extent of the vertical range displayed by the chart.
|
int |
getVerticalPosition()
Returns the beginning of the vertical range displayed by the chart.
|
int |
getVerticalScrollBarPolicy()
Returns the vertical scroll bar policy.
|
int |
getVerticalScrollMode()
Returns the interactive vertical scrolling mode.
|
IlvDuration |
getVisibleDuration()
Returns the duration of the time interval displayed by the chart.
|
IlvTimeInterval |
getVisibleInterval()
Returns the time interval displayed by the chart.
|
int |
getVisibleIntervalAnimationSteps()
Returns the number of steps in the animation of changes to the
visible interval of the chart. |
IlvHierarchyNode |
getVisibleRow(int rowIndex)
Returns the row that is visible on the specified row index.
|
IlvHierarchyNode |
getVisibleRowAtPosition(int position)
Returns the row at the specified vertical position , relative
to the first visible row at
position = 0 . |
Rectangle |
getVisibleRowBounds(IlvHierarchyNode row)
Returns the vertical bounds of the specified row as the y and
height fields of a rectangle.
|
Rectangle |
getVisibleRowBounds(int row)
Returns the vertical bounds of the specified row as the y and
height fields of a rectangle.
|
int |
getVisibleRowCount()
Returns the number of rows that are currently
visible . |
int |
getVisibleRowIndex(IlvHierarchyNode row)
Returns the row index that the specified row is displayed on.
|
int |
getVisibleRowIndexAtPosition(int position)
Returns the row index at the specified vertical position ,
relative to the first visible row at
position = 0 . |
Date |
getVisibleTime()
Returns the beginning of the time interval displayed by the chart.
|
IlvZoomInAction |
getZoomInAction()
Returns the
zoom-in action that is registered
by default on the chart with the
Control-Z keystroke . |
IlvZoomOutAction |
getZoomOutAction()
Returns the
zoom-out action that is
registered by default on the chart with the
Control-U keystroke . |
boolean |
isConstantZoomFactorOnWidthChange()
Returns whether the visible duration of the chart will be modified when its
width changes in order to maintain a constant zoom factor.
|
boolean |
isConstraintLayerVisible()
Returns whether the constraint graphic layer is visible in the Gantt
sheet.
|
boolean |
isDisplayingConstraints()
Returns whether the Gantt sheet is displaying constraints.
|
boolean |
isDividerOneTouchExpandable()
Returns whether the divider should provide a UI widget to expand or collapse the divider quickly.
|
boolean |
isDividerOpaqueMove()
Returns whether the divider is in Opaque Move mode or not.
|
boolean |
isFixedRowHeight()
Tests if all rows in the chart are set to have the same fixed
height.
|
boolean |
isGanttSheetToolTipsEnabled()
Returns
true if tooltips are enabled for the Gantt
sheet. |
boolean |
isGanttSheetVisible()
Specifies whether the Gantt sheet is visible.
|
boolean |
isGraphicSelected(IlvGraphic graphic)
Returns whether the specified graphic is currently selected in the
Gantt sheet.
|
boolean |
isHorizontalScrollBarVisible()
Returns the visibility status of the horizontal scroll bar.
|
boolean |
isMouseWheelEnabled()
Indicates whether or not scrolling and zooming will take place in
response to movement of the mouse wheel.
|
boolean |
isMultipleRowActivityGraphicsEnabled()
Returns whether
activity graphics are
allowed to be drawn over multiple rows. |
boolean |
isRootRowVisible()
This method returns the value of the
rootRowVisible property
and is independent of whether the data model has a root row to be
displayed. |
boolean |
isRowExpanded(IlvHierarchyNode row)
Returns whether the specified row and all of its ancestors are currently
expanded.
|
boolean |
isRowSelected(IlvHierarchyNode row)
Returns whether the specified row is selected.
|
boolean |
isRowVisible(IlvHierarchyNode row)
Returns whether the specified row is visible.
|
boolean |
isSelectionAdjusting()
Returns whether we are currently selecting or deselecting a series of
objects.
|
boolean |
isTableVisible()
Specifies whether the hierarchy table is visible.
|
void |
makeRowDisplayed(IlvHierarchyNode row)
Ensures that the specified row is displayed.
|
void |
makeRowVisible(IlvHierarchyNode row)
Ensures that the specified row is visible.
|
void |
registerFunction(IlvCSSFunction function)
Registers another function in the Cascading Style Sheets engine.
|
void |
registerGanttPanelKeyboardAction(ActionListener anAction,
KeyStroke aKeyStroke,
int aCondition)
Registers a new keyboard action with the right panel of the chart.
|
void |
registerTablePanelKeyboardAction(ActionListener anAction,
KeyStroke aKeyStroke,
int aCondition)
Registers a new keyboard action with the left panel of the chart.
|
void |
removeChartDividerListener(ChartDividerListener aListener)
Removes the specified listener so that it no longer receives divider
events from this chart.
|
void |
removeGanttModelListener(GanttModelListener listener)
Removes the specified listener so that it will no longer receive
notifications when this chart's
Gantt model has
been changed. |
void |
removeHeaderListener(HeaderListener listener)
Removes the specified listener so that it no longer receives
header change events from this chart.
|
void |
removeSelectionListener(SelectionListener listener)
Removes the specified listener so that it will no longer receive
selection events from this chart.
|
void |
removeTimeScrollListener(TimeScrollListener listener)
Removes the specified listener so that it will no longer receive time
scroll events from this chart.
|
void |
removeVerticalExpansionListener(VerticalExpansionListener listener)
Removes the specified listener so that it will no longer receive
vertical expansion events from this chart.
|
void |
removeVerticalScrollListener(VerticalScrollListener listener)
Removes the specified listener so that it will no longer receive
vertical scroll events from this chart.
|
void |
select(IlvConstraint constraint,
boolean selected)
Selects or deselects a constraint.
|
Iterator |
selectedGraphicsIterator()
Returns an iterator over the currently selected graphics in the Gantt
sheet.
|
Iterator |
selectedRowsIterator()
Returns an iterator over the rows that are selected in the chart.
|
void |
selectRow(IlvHierarchyNode row,
boolean selected)
Selects or deselects the specified row.
|
void |
selectRow(int index,
boolean selected)
Selects or deselects the row having the specified index.
|
void |
setActivityFactory(IlvActivityFactory factory)
Sets the activity factory for creating activities.
|
void |
setActivityRendererFactory(IlvActivityRendererFactory factory)
Sets the activity-renderer factory used to create activity graphics.
|
void |
setBaseTextDirection(int btd)
Sets the base text direction for this chart.
|
void |
setComponentOrientation(ComponentOrientation o)
Sets the component orientation of this chart.
|
void |
setConstantZoomFactorOnWidthChange(boolean enabled)
Sets whether the visible duration of the chart will be modified when its
width changes in order to maintain a constant zoom factor.
|
void |
setConstraintFactory(IlvConstraintFactory factory)
Sets the constraint factory for creating constraints.
|
void |
setConstraintGraphicFactory(IlvConstraintGraphicFactory factory)
Sets the constraint-graphics factory used to create constraint
graphics.
|
void |
setConstraintLayerVisible(boolean visible)
Specifies whether the constraint graphic layer should be visible in
the Gantt sheet.
|
void |
setDisplayingConstraints(boolean enable)
Sets whether the Gantt sheet is displaying constraints.
|
void |
setDividerBorder(Border border)
Deprecated.
Beginning with Rogue Wave JViews 6.0 you should use the
setInsideBorder(javax.swing.border.Border) method instead. |
void |
setDividerLocation(int location)
Sets the location of the divider as the number of pixels from the left
side of the chart.
|
void |
setDividerOneTouchExpandable(boolean newValue)
Sets whether the divider should provide a UI widget to expand or collapse the divider quickly.
|
void |
setDividerOpaqueMove(boolean opaqueMove)
Sets whether the divider is in Opaque Move mode.
|
void |
setDividerSize(int size)
Sets the size of the divider.
|
void |
setGanttModel(IlvGanttModel ganttModel)
Sets the data model for the hierarchy chart.
|
void |
setGanttSheetBackground(Color color)
Sets the background color of the Gantt sheet.
|
void |
setGanttSheetToolTipsEnabled(boolean enable)
Sets whether tooltips are enabled for the Gantt sheet.
|
void |
setGanttSheetVisible(boolean visible)
Sets the visibility of the Gantt sheet.
|
void |
setHorizontalScrollBarVisible(boolean visible)
Sets the visibility status of the horizontal scroll bar.
|
void |
setInsideBorder(Border border)
Sets the inside border of the chart.
|
void |
setLocale(Locale locale)
Sets the locale of this component.
|
void |
setMaxVerticalPosition(int max)
Sets the maximum vertical position that the chart can display.
|
void |
setMaxVisibleTime(Date max)
Sets the maximum time that the chart can show in bounded
scrolling mode.
|
void |
setMinimumGanttSheetWidth(int minimumWidth)
Sets the minimum width of the Gantt sheet to a constant value.
|
void |
setMinimumTableWidth(int minimumWidth)
Sets the minimum width of the table to a constant value.
|
void |
setMinVisibleDuration(IlvDuration duration)
Sets the minimum duration that the chart can show.
|
void |
setMinVisibleTime(Date min)
Sets the minimum time that the chart can show in bounded
scrolling mode.
|
void |
setMouseWheelEnabled(boolean handleWheel)
Enables/disables scrolling and zooming in response to movement of the
mouse wheel.
|
void |
setMouseWheelPreferredOrientation(int orientation)
Sets the preferred orientation of scrolling by the mouse wheel, either
VERTICAL or HORIZONTAL . |
void |
setMultipleRowActivityGraphicsEnabled(boolean enable)
Enables or disables the capability of
activity graphics drawing over multiple
rows. |
void |
setProject(URL project)
Sets the project file URL of this chart.
|
void |
setReservationFactory(IlvReservationFactory factory)
Sets the reservation factory for creating reservations.
|
void |
setResourceFactory(IlvResourceFactory factory)
Sets the resource factory for creating resources.
|
void |
setRootRowVisible(boolean rootVisible)
Sets whether the root row of the chart is visible, or whether the
children of the root row should be the highest level visible rows.
|
void |
setRowHeight(IlvHierarchyNode row,
int rowHeight)
Sets the height of the specified row.
|
void |
setRowHeight(int rowHeight)
Sets all rows in the chart to have the same height.
|
void |
setSelectionAdjusting(boolean selectionAdjusting)
Starts a series of selection events.
|
void |
setStyleSheet(String styleSheet)
Sets the first style sheet for the chart.
|
void |
setStyleSheetDebugMask(int mask)
Sets the debug level while parsing the style sheets.
|
void |
setStyleSheets(int index,
String css)
Changes one of the Cascading Style Sheets for the chart.
|
void |
setStyleSheets(String[] css)
Sets the Cascading Style Sheets for the chart.
|
void |
setTableBackground(Color color)
Sets the background color of the table.
|
void |
setTableFont(Font font)
Sets the font used in the table.
|
void |
setTableForeground(Color color)
Sets the foreground color of the table.
|
void |
setTableGridColor(Color color)
Sets the color of the table grid.
|
void |
setTableHeaderBackground(Color color)
Sets the background color of the table header.
|
void |
setTableHeaderFont(Font font)
Sets the font of the table header.
|
void |
setTableHeaderForeground(Color color)
Sets the foreground color of the table header.
|
void |
setTableVisible(boolean visible)
Sets the visibility of the hierarchy table.
|
void |
setTimeConverter(IlvTimeConverter timeConverter)
Sets the time converter used by the
Gantt sheet and the
time scale.
|
void |
setTimeScale(IlvTimeScale timeScale)
Sets the time scale.
|
void |
setTimeScaleBackground(Color color)
Sets the background color of the time scale.
|
void |
setTimeScaleFont(Font font)
Sets the font of the time scale.
|
void |
setTimeScaleForeground(Color color)
Sets the foreground color of the time scale.
|
void |
setULocale(ULocale locale)
Sets the locale of this component.
|
void |
setVerticalExtent(int extent)
Sets the extent of the vertical range displayed by the chart.
|
void |
setVerticalPosition(int position)
Sets the beginning of the vertical range displayed by the chart.
|
void |
setVerticalScrollBarPolicy(int policy)
Sets the vertical scroll bar policy.
|
void |
setVerticalScrollMode(int mode)
Sets the interactive vertical scrolling mode.
|
void |
setVisibleDuration(IlvDuration duration)
Sets the duration of the time interval displayed by the chart.
|
void |
setVisibleInterval(Date time,
IlvDuration duration)
Sets the time interval displayed by the chart.
|
void |
setVisibleIntervalAnimationSteps(int steps)
Sets the number of steps in the animation of changes to the
visible interval of the chart. |
void |
setVisibleTime(Date time)
Sets the beginning of the time interval displayed by the chart.
|
void |
unregisterGanttPanelKeyboardAction(KeyStroke aKeyStroke)
Unregisters a keyboard action from the right panel of the chart.
|
void |
unregisterTablePanelKeyboardAction(KeyStroke aKeyStroke)
Unregisters a keyboard action from the left panel of the chart.
|
void |
updateUI()
This method is a notification that the L&F has changed.
|
Iterator<IlvHierarchyNode> |
visibleRowsIterator()
Returns an iterator that traverses all of the visible rows in the chart.
|
Iterator<IlvHierarchyNode> |
visibleRowsIterator(IlvHierarchyNode rootRow)
Returns an iterator that traverses only the visible rows in the
specified subtree of rows.
|
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 static final int VERTICAL_SCROLLBAR_AS_NEEDED
public static final int VERTICAL_SCROLLBAR_NEVER
public static final int VERTICAL_SCROLLBAR_ALWAYS
public static final String TIME_CONVERTER_PROPERTY
setTimeConverter(ilog.views.gantt.graphic.IlvTimeConverter)
,
Constant Field Valuespublic static final int SMOOTH_VERTICAL_SCROLL
getVerticalScrollMode()
,
ROW_VERTICAL_SCROLL
,
Constant Field Valuespublic static final int ROW_VERTICAL_SCROLL
getVerticalScrollMode()
,
SMOOTH_VERTICAL_SCROLL
,
Constant Field Valuespublic static final int HORIZONTAL
public static final int VERTICAL
public static final KeyStroke ZOOM_IN_KEYSTROKE
KeyStroke
that is used to
register the zoom-in action
with the chart
when the chart is created.
IlvAction action = getZoomInAction(); action.setAccelerator(ZOOM_IN_KEYSTROKE); registerKeyboardAction(action, action.getAccelerator(), WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);Therefore, the default zoom-in action can be unregistered from the chart by using:
unregisterKeyboardAction(getZoomInAction().getAccelerator());
public static final KeyStroke ZOOM_OUT_KEYSTROKE
KeyStroke
that is used to
register the zoom-out action
with the chart
when the chart is created.
IlvAction action = getZoomOutAction(); action.setAccelerator(ZOOM_OUT_KEYSTROKE); registerKeyboardAction(action, action.getAccelerator(), WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);Therefore, the default zoom-out action can be unregistered from the chart by using:
unregisterKeyboardAction(getZoomOutAction().getAccelerator());
public static final KeyStroke SCROLL_VERTICAL_UP_KEYSTROKE
KeyStroke
that is used to
register the scroll-up action
with
the right Gantt panel when the chart is created.
IlvAction action = getScrollVerticalUpAction(); action.setAccelerator(SCROLL_VERTICAL_UP_KEYSTROKE); registerGanttPanelKeyboardAction(action, action.getAccelerator(), WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);Therefore, the default scroll-up action can be unregistered from the right panel by using:
unregisterGanttPanelKeyboardAction(getScrollVerticalUpAction().getAccelerator());
public static final KeyStroke SCROLL_VERTICAL_DOWN_KEYSTROKE
KeyStroke
that is used to
register the scroll-down action
with the right Gantt panel when the chart is created.
IlvAction action = getScrollVerticalDownAction(); action.setAccelerator(SCROLL_VERTICAL_DOWN_KEYSTROKE); registerGanttPanelKeyboardAction(action, action.getAccelerator(), WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);Therefore, the default scroll-down action can be unregistered from the right panel by using:
unregisterGanttPanelKeyboardAction(getScrollVerticalDownAction().getAccelerator());
public static final KeyStroke SCROLL_TIME_LEFT_KEYSTROKE
KeyStroke
that is used to
register the scroll-time-left action
with the right Gantt panel when the chart is created.
IlvAction action = getScrollTimeLeftAction(); action.setAccelerator(SCROLL_TIME_LEFT_KEYSTROKE); registerGanttPanelKeyboardAction(action, action.getAccelerator(), WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);Therefore, the default scroll-time-left action can be unregistered from the right panel by using:
unregisterGanttPanelKeyboardAction(getScrollTimeLeftAction().getAccelerator());
public static final KeyStroke SCROLL_TIME_RIGHT_KEYSTROKE
KeyStroke
that is used to
register the scroll-time-right action
with the right Gantt panel when the chart is created.
IlvAction action = getScrollTimeRightAction(); action.setAccelerator(SCROLL_TIME_RIGHT_KEYSTROKE); registerGanttPanelKeyboardAction(action, action.getAccelerator(), WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);Therefore, the default scroll-time-right action can be unregistered from the right panel by using:
unregisterGanttPanelKeyboardAction(getScrollTimeRightAction().getAccelerator());
public IlvHierarchyChart(int rowType)
IlvHierarchyChart
. This constructor
first creates an internal activity-oriented or resource-oriented
IlvGanttConfiguration
object. Then it creates an
IlvJTable
and an IlvGanttSheet
for the configuration.rowType
- Indicates the kind of hierarchy chart that will be
created. If rowType
is
IlvGanttConfiguration.ACTIVITY_ROWS
, an
activity-oriented hierarchy chart is created. If
rowType
is
IlvGanttConfiguration.RESOURCE_ROWS
, a
resource-oriented hierarchy chart is created.public ULocale getULocale()
ULocale
.IllegalStateException
- if this component's locale has been removed
through setLocale(null)
and none of the ancestors has
a Locale
set eithersetULocale(ULocale)
public void setULocale(ULocale locale)
locale
- An ICU ULocale
, or null
if this
component shall inherit its locale from the parent component.getULocale()
,
setLocale(Locale)
public void setLocale(Locale locale)
setLocale
in class Component
locale
- An Locale
, or null
if this
component shall inherit its locale from the parent component.setULocale(ULocale)
public IlvGanttComponentManager getComponentManager()
public IlvGanttModel getGanttModel()
public void setGanttModel(IlvGanttModel ganttModel)
getGanttModel()
public void addGanttModelListener(GanttModelListener listener)
Gantt model
has been changed. Note that this is
not the same as being notified when elements within the Gantt
model have been modified.listener
- The listener that will be subscribed to subsequent
Gantt model events.removeGanttModelListener(ilog.views.gantt.event.GanttModelListener)
public void removeGanttModelListener(GanttModelListener listener)
Gantt model
has
been changed.listener
- The listener that will be unsubscribed from receiving
Gantt model events.addGanttModelListener(ilog.views.gantt.event.GanttModelListener)
public Border getInsideBorder()
setInsideBorder(javax.swing.border.Border)
public void setInsideBorder(Border border)
border
- The border.getInsideBorder()
public void updateUI()
protected IlvJTableColumn[] createDefaultTableColumns()
public IlvJTable getTable()
IlvJTable
used to display the activity or
resource hierarchy in a Gantt model.public Font getTableFont()
setTableFont(java.awt.Font)
public void setTableFont(Font font)
getTableFont()
public Color getTableForeground()
setTableForeground(java.awt.Color)
public void setTableForeground(Color color)
getTableForeground()
public Color getTableBackground()
setTableBackground(java.awt.Color)
public void setTableBackground(Color color)
getTableBackground()
public Color getTableGridColor()
setTableGridColor(java.awt.Color)
public void setTableGridColor(Color color)
getTableGridColor()
public Color getTableHeaderBackground()
setTableHeaderBackground(java.awt.Color)
public void setTableHeaderBackground(Color color)
getTableHeaderBackground()
public Color getTableHeaderForeground()
setTableHeaderForeground(java.awt.Color)
public void setTableHeaderForeground(Color color)
getTableHeaderForeground()
public Font getTableHeaderFont()
setTableHeaderFont(java.awt.Font)
public void setTableHeaderFont(Font font)
getTableHeaderFont()
public boolean isTableVisible()
setTableVisible(boolean)
public void setTableVisible(boolean visible)
isTableVisible()
public int getMinimumTableWidth()
getTable().getMinimumSize().getWidth()
is
not the same as calling this method.setMinimumTableWidth(int)
public void setMinimumTableWidth(int minimumWidth)
getTable().setMinimumSize()
is not the same as calling this
method.minimumWidth
- The new minimum width of the table.getMinimumTableWidth()
public IlvGanttSheet getGanttSheet()
public Color getGanttSheetBackground()
setGanttSheetBackground(java.awt.Color)
public void setGanttSheetBackground(Color color)
getGanttSheetBackground()
public int getMinimumGanttSheetWidth()
getGanttSheet().getMinimumSize().getWidth()
is not the same as calling
this method.setMinimumGanttSheetWidth(int)
public void setMinimumGanttSheetWidth(int minimumWidth)
getGanttSheet().setMinimumSize()
is not
the same as calling this method.minimumWidth
- The new minimum width of the Gantt sheet.getMinimumGanttSheetWidth()
public boolean isGanttSheetVisible()
setGanttSheetVisible(boolean)
public void setGanttSheetVisible(boolean visible)
isGanttSheetVisible()
public boolean isDisplayingConstraints()
true
for a Gantt chart
or false
for a Schedule chart
.setDisplayingConstraints(boolean)
public void setDisplayingConstraints(boolean enable)
true
for a Gantt chart
or false
for a Schedule chart
.
Displaying constraints in a resource-oriented Schedule chart is only guaranteed to work correctly if each activity participates in 0 or 1 reservations. If an activity participates in 2 or more reservations, the Schedule chart will not display constraints in an intuitive manner. The Schedule chart does not check to ensure that this is the case. It is up to the data model to adhere to this restriction.
enable
- Indicates whether to display constraints.isDisplayingConstraints()
public boolean isConstraintLayerVisible()
true
.setConstraintLayerVisible(boolean)
public void setConstraintLayerVisible(boolean visible)
visible
- The visibility of the constraint layer.isConstraintLayerVisible()
public boolean isGanttSheetToolTipsEnabled()
true
if tooltips are enabled for the Gantt
sheet. The default value is true
.public void setGanttSheetToolTipsEnabled(boolean enable)
public boolean isMultipleRowActivityGraphicsEnabled()
activity graphics
are
allowed to be drawn over multiple rows. The default value is
false
, indicating that activity graphics must be drawn
within the vertical bounds of their own row.setMultipleRowActivityGraphicsEnabled(boolean)
public void setMultipleRowActivityGraphicsEnabled(boolean enable)
activity graphics
drawing over multiple
rows.enable
- Indicates whether activity graphics can be drawn over
multiple rows. The default value is false
,
indicating that activity graphics must be drawn within the
vertical bounds of their own row.isMultipleRowActivityGraphicsEnabled()
public boolean isConstantZoomFactorOnWidthChange()
false
, the visible duration of the chart will stay the same
and its zoom factor will be modified when the width of the chart changes.
The default value is true
.
When multiple IlvTimeScrollable
user interface components have
their time scrolling synchronized through an
IlvBasicTimeScrollController
or one of its subclasses, all of
the scrollable components should be placed in a container that ensures
that they maintain equal widths and their
constantZoomFactorOnWidthChange
properties must be set
to the same value. When the GUI resizes, each scrollable component is
responsible for computing its own duration change.
setConstantZoomFactorOnWidthChange(boolean)
public void setConstantZoomFactorOnWidthChange(boolean enabled)
true
.
When multiple IlvTimeScrollable
user interface components have
their time scrolling synchronized through an
IlvBasicTimeScrollController
or one of its subclasses, all of
the scrollable components should be placed in a container that ensures
that they maintain equal widths and their
constantZoomFactorOnWidthChange
properties must be set
to the same value. When the GUI resizes, each scrollable component is
responsible for computing its own duration change.
enabled
- Indicates whether the zoom factor stays the same and
the visible duration changes when the chart resizes. If
false
, the visible duration stays the same
and the zoom factor changes.isConstantZoomFactorOnWidthChange()
public int getVerticalScrollBarPolicy()
public void setVerticalScrollBarPolicy(int policy)
policy
- The new scroll bar policy. Must be one of the following
constants: VERTICAL_SCROLLBAR_AS_NEEDED
,
VERTICAL_SCROLLBAR_NEVER
, or
VERTICAL_SCROLLBAR_ALWAYS
.VERTICAL_SCROLLBAR_AS_NEEDED
,
VERTICAL_SCROLLBAR_NEVER
,
VERTICAL_SCROLLBAR_ALWAYS
public IlvTimeScrollBar getTimeScrollBar()
public boolean isHorizontalScrollBarVisible()
public void setHorizontalScrollBarVisible(boolean visible)
public int getDividerLocation()
setDividerLocation(int)
public void setDividerLocation(int location)
location
- The location of the divider.getDividerLocation()
public boolean isDividerOpaqueMove()
setDividerOpaqueMove(boolean)
public void setDividerOpaqueMove(boolean opaqueMove)
isDividerOpaqueMove()
public int getDividerSize()
setDividerSize(int)
public void setDividerSize(int size)
size
- The size of the divider in pixels.getDividerSize()
public boolean isDividerOneTouchExpandable()
true
, some look and feel may not support one-touch expanding and will ignore
this property.setDividerOneTouchExpandable(boolean)
public void setDividerOneTouchExpandable(boolean newValue)
newValue
- Indicates whether the divider should provide an expand or collapse widget.isDividerOneTouchExpandable()
@Deprecated public Border getDividerBorder()
getInsideBorder()
method instead.setDividerBorder(javax.swing.border.Border)
@Deprecated public void setDividerBorder(Border border)
setInsideBorder(javax.swing.border.Border)
method instead.border
- The border.getDividerBorder()
public void addChartDividerListener(ChartDividerListener aListener)
aListener
- The listener that will be subscribed to subsequent
ChartDividerListener
events.public void removeChartDividerListener(ChartDividerListener aListener)
aListener
- The listener that will be unsubscribed from receiving
ChartDividerListener
events.public IlvTimeScale getTimeScale()
public void setTimeScale(IlvTimeScale timeScale)
constantZoomFactorOnWidthChange
of the time scale is set to match
that of the chart.public Color getTimeScaleForeground()
setTimeScaleForeground(java.awt.Color)
public void setTimeScaleForeground(Color color)
getTimeScaleForeground()
public Color getTimeScaleBackground()
setTimeScaleBackground(java.awt.Color)
public void setTimeScaleBackground(Color color)
getTimeScaleBackground()
public Font getTimeScaleFont()
setTimeScaleFont(java.awt.Font)
public void setTimeScaleFont(Font font)
getTimeScaleFont()
public void setComponentOrientation(ComponentOrientation o)
setComponentOrientation
in class Component
protected void componentOrientationChanged(ComponentOrientation oldOrientation, ComponentOrientation newOrientation)
oldOrientation
- The component orientation before the change.newOrientation
- The component orientation after the change.Component.getComponentOrientation()
,
setComponentOrientation(ComponentOrientation)
public final int getBaseTextDirection()
The base text direction influences the display of text strings that are composed of segments that are read from left to right as well as of segments that are read from right to left. It determines the order of these segments.
IlvBidiUtil.COMPONENT_DIRECTION
,
IlvBidiUtil.CONTEXTUAL_DIRECTION
,
IlvBidiUtil.LEFT_TO_RIGHT
,
IlvBidiUtil.RIGHT_TO_LEFT
,
IlvBidiUtil.INHERITED_DIRECTION
.setBaseTextDirection(int)
,
getResolvedBaseTextDirection()
public void setBaseTextDirection(int btd)
The base text direction influences the display of text strings that are composed of segments that are read from left to right as well as of segments that are read from right to left. It determines the order of these segments.
Possible values are:
IlvBidiUtil.COMPONENT_DIRECTION
,
IlvBidiUtil.CONTEXTUAL_DIRECTION
,
IlvBidiUtil.LEFT_TO_RIGHT
, IlvBidiUtil.RIGHT_TO_LEFT
,
and IlvBidiUtil.INHERITED_DIRECTION
, which in this case is
equivalent to IlvBidiUtil.COMPONENT_DIRECTION
.
The base text direction affects, in particular:
btd
- The base text direction.getBaseTextDirection()
public int getResolvedBaseTextDirection()
The base text direction influences the display of text strings that are composed of segments that are read from left to right as well as of segments that are read from right to left. It determines the order of these segments.
This method is based on getBaseTextDirection()
but determines
the value when it is inherited from a parent component
(IlvBidiUtil.INHERITED_DIRECTION
) or dependent on
the component orientation (IlvBidiUtil.COMPONENT_DIRECTION
).
IlvBidiUtil.CONTEXTUAL_DIRECTION
,
IlvBidiUtil.LEFT_TO_RIGHT
,
IlvBidiUtil.RIGHT_TO_LEFT
.protected void baseTextDirectionChanged()
getResolvedBaseTextDirection()
has
changed, orgetComponentOrientation()
has changed
and the value of getResolvedBaseTextDirection()
is
IlvBidiUtil.CONTEXTUAL_DIRECTION
.public int getRowType()
int
representing the type of the rows in the
hierarchy chart. This integer will be one of the constants:
IlvGanttConfiguration.ACTIVITY_ROWS
or
IlvGanttConfiguration.RESOURCE_ROWS
.IlvGanttConfiguration.ACTIVITY_ROWS
or
IlvGanttConfiguration.RESOURCE_ROWS
.public IlvHierarchyNode getRootRow()
null
if the hierarchy chart has no rows. The type of
the returned row will match the row type of the chart. In other words,
if getRowType
is
ACTIVITY_ROWS
, then the
returned row will be an IlvActivity
. If
getRowType
is
RESOURCE_ROWS
, then the
returned row will be an IlvResource
.public IlvHierarchyNode getFirstVisibleRow()
null
if no rows are visible.
If the data model contains at least a root row and the
root row is set to be visible, this
method will return the root row. If the root row is set not visible,
this method will return the first child of the root row if one exists in
the data model. The type of the returned row will match the row
organization of this configuration. That is, if getRowType
returns an
IlvGanttConfiguration.ACTIVITY_ROWS
, the returned row will be an
IlvActivity
. If getRowType
returns an
IlvGanttConfiguration.RESOURCE_ROWS
, the returned row will be an
IlvResource
. This method is equivalent to calling
getVisibleRow(0)
.getRootRow()
,
isRootRowVisible()
,
setRootRowVisible(boolean)
public boolean isRootRowVisible()
rootRowVisible
property
and is independent of whether the data model has a root row to be
displayed. The default value is true
.true
is
returned. If the children of the root row are the highest level visible
rows, false
is returned.setRootRowVisible(boolean)
,
getFirstVisibleRow()
,
getRootRow()
public void setRootRowVisible(boolean rootVisible)
rootVisible
- Set to true
to make the root row of the
chart visible. Set to false
to make the children of the
root row the highest level visible rows.isRootRowVisible()
,
getFirstVisibleRow()
,
getRootRow()
public int getVisibleRowIndex(IlvHierarchyNode row)
getRowType
is
ACTIVITY_ROWS
, then
row must be an IlvActivity
. If
getRowType
is
RESOURCE_ROWS
, then
row must be an IlvResource
.row
- The row.public IlvHierarchyNode getVisibleRow(int rowIndex)
null
is returned. The type
of the returned row will match the row type of the chart. In other
words, if getRowType
is
ACTIVITY_ROWS
, then the
returned row will be an IlvActivity
. If
getRowType
is
RESOURCE_ROWS
, then the
returned row will be an IlvResource
.rowIndex
- The row index.null
if rowIndex < 0
or rowIndex >=
getVisibleRowCount()
.public int getVisibleRowCount()
visible
. A visible row is one that has all of
its ancestors expanded. A visible row is not necessarily in the
display area.public boolean isRowVisible(IlvHierarchyNode row)
getRowType
is
ACTIVITY_ROWS
, then
row must be an IlvActivity
. If
getRowType
is
RESOURCE_ROWS
, then
row must be an IlvResource
.row
- The row.true
if the row is visible, and
false
otherwise.public Iterator<IlvHierarchyNode> visibleRowsIterator(IlvHierarchyNode rootRow)
getRowType
is
ACTIVITY_ROWS
, then
rootRow must be an IlvActivity
. If
getRowType
is
RESOURCE_ROWS
, then
rootRow must be an IlvResource
.rootRow
- The root row of the subtree.visibleRowsIterator()
public Iterator<IlvHierarchyNode> visibleRowsIterator()
visibleRowsIterator(IlvHierarchyNode)
public void makeRowVisible(IlvHierarchyNode row)
expanded
. The type of the specified row
must match the row type of the chart. In other words, if
getRowType
is
ACTIVITY_ROWS
, then
row must be an IlvActivity
. If
getRowType
is
RESOURCE_ROWS
, then
row must be an IlvResource
.row
- The row.public Rectangle getVisibleRowBounds(int row)
first row
at
y = 0
and do not take the current vertical scroll
position into account. If the row is not visible, null
is returned.row
- The row.null
if row < 0
or row >=
getVisibleRowCount()
.public Rectangle getVisibleRowBounds(IlvHierarchyNode row)
first row
at
y = 0
and do not take the current vertical scroll
position into account. If the row is not visible, null
is returned.
The type of the specified row must match the row type of the
chart. In other words, if getRowType
is
ACTIVITY_ROWS
, then
row must be an IlvActivity
. If
getRowType
is
RESOURCE_ROWS
, then
row must be an IlvResource
.
row
- The row.null
if row is not visible.public int getVisibleRowIndexAtPosition(int position)
position = 0
.
This method does not take the current vertical scroll position into
account and returns -1 if rowIndex < 0
or
rowIndex >=
getVisibleRowCount()
.position
- The vertical position of interest.getVisibleRowAtPosition(int)
,
getDisplayedRowIndexAtPosition(int)
,
getDisplayedRowAtPosition(int)
public IlvHierarchyNode getVisibleRowAtPosition(int position)
position = 0
. This method
does not take the current vertical scroll position into account and
returns null
if the position does not correspond to a
visible row. The type of the returned row will match the row type of
the chart. In other words, if getRowType
is
ACTIVITY_ROWS
, then the
returned row will be an IlvActivity
. If
getRowType
is
RESOURCE_ROWS
, then the
returned row will be an IlvResource
.position
- The vertical position of interest.null
if the position is out of range.getVisibleRowIndexAtPosition(int)
,
getDisplayedRowIndexAtPosition(int)
,
getDisplayedRowAtPosition(int)
public int getDisplayedRowIndexAtPosition(int position)
rowIndex < 0
or
row >= getVisibleRowCount()
.position
- The vertical position of interest, relative to the
display area.getVisibleRowIndexAtPosition(int)
,
getVisibleRowAtPosition(int)
,
getDisplayedRowAtPosition(int)
public IlvHierarchyNode getDisplayedRowAtPosition(int position)
getRowType
is
ACTIVITY_ROWS
, then the
returned row will be an IlvActivity
. If
getRowType
is
RESOURCE_ROWS
, then the
returned row will be an IlvResource
. This method returns
null
if the position does not correspond to a visible
row.position
- The vertical position of interest, relative to the
display area.null
if the position is out of range.getVisibleRowIndexAtPosition(int)
,
getVisibleRowAtPosition(int)
,
getDisplayedRowIndexAtPosition(int)
public void makeRowDisplayed(IlvHierarchyNode row)
visible
and is scrolled into the display area. The type of the specified
row must match the row type of the chart. In other words, if
getRowType
is
ACTIVITY_ROWS
, then
row must be an IlvActivity
. If
getRowType
is
RESOURCE_ROWS
, then
row must be an IlvResource
.row
- The row.public boolean isRowExpanded(IlvHierarchyNode row)
true
implies that the row has visible
children. If the row has no children or if it, or any of its ancestors,
are not expanded then this method returns false
. This implies
that the row has no visible children. The type of row
must
match the row type of the chart. That is, if getRowType
returns an ACTIVITY_ROWS
, then
row
must be an IlvActivity
. If
getRowType
returns an
RESOURCE_ROWS
,
then row
must be an IlvResource
.row
- The row.true
is returned.expandRow(ilog.views.gantt.IlvHierarchyNode)
,
expandAllRows()
,
expandAllRows(IlvHierarchyNode)
,
collapseRow(ilog.views.gantt.IlvHierarchyNode)
public void expandRow(IlvHierarchyNode row)
getRowType
is
ACTIVITY_ROWS
, then
row must be an IlvActivity
. If
getRowType
is
RESOURCE_ROWS
, then
row must be an IlvResource
.row
- The row to be expanded.isRowExpanded(ilog.views.gantt.IlvHierarchyNode)
,
expandAllRows()
,
expandAllRows(IlvHierarchyNode)
,
collapseRow(ilog.views.gantt.IlvHierarchyNode)
public void expandAllRows(IlvHierarchyNode row)
getRowType
is
ACTIVITY_ROWS
, then
row must be an IlvActivity
. If
getRowType
is
RESOURCE_ROWS
, then
row must be an IlvResource
.row
- The row to be expanded.isRowExpanded(ilog.views.gantt.IlvHierarchyNode)
,
expandRow(ilog.views.gantt.IlvHierarchyNode)
,
expandAllRows()
,
collapseRow(ilog.views.gantt.IlvHierarchyNode)
public void expandAllRows()
public void collapseRow(IlvHierarchyNode row)
getRowType
is
ACTIVITY_ROWS
, then
row must be an IlvActivity
. If
getRowType
is
RESOURCE_ROWS
, then
row must be an IlvResource
.row
- The row to be collapsed.isRowExpanded(ilog.views.gantt.IlvHierarchyNode)
,
expandRow(ilog.views.gantt.IlvHierarchyNode)
,
expandAllRows()
,
expandAllRows(IlvHierarchyNode)
public boolean isFixedRowHeight()
true
is returned.setRowHeight(int)
,
setRowHeight(IlvHierarchyNode, int)
public int getRowHeight()
setRowHeight(IlvHierarchyNode, int)
, this value will be
the height of those rows whose height has not been customized.
The default value is 20
.setRowHeight(int)
,
setRowHeight(IlvHierarchyNode, int)
public int getRowHeight(IlvHierarchyNode row)
row
- The row. The type of the specified row must match the row
organization of the chart. In other words, if getRowType
is IlvGanttConfiguration.ACTIVITY_ROWS
, then row
must be an IlvActivity
. If getRowType
is
IlvGanttConfiguration.RESOURCE_ROWS
, then row must be an
IlvResource
.setRowHeight(int)
,
setRowHeight(IlvHierarchyNode,int)
public void setRowHeight(int rowHeight)
setRowHeight(IlvHierarchyNode, int)
, this value is used as
the height for those rows whose height has not been customized.rowHeight
- The row height.getRowHeight()
,
getRowHeight(IlvHierarchyNode)
public void setRowHeight(IlvHierarchyNode row, int rowHeight)
row
- The row. The type of the specified row must match the row
organization of the chart. In other words, if getRowType
is IlvGanttConfiguration.ACTIVITY_ROWS
, then
row must be an IlvActivity
. If getRowType
is IlvGanttConfiguration.RESOURCE_ROWS
, then
row must be an IlvResource
.rowHeight
- The row height.getRowHeight()
,
getRowHeight(IlvHierarchyNode)
,
setRowHeight(int)
public void addVerticalExpansionListener(VerticalExpansionListener listener)
listener
- The listener that will be subscribed to subsequent
vertical expansion events.public void removeVerticalExpansionListener(VerticalExpansionListener listener)
listener
- The listener that will be unsubscribed from receiving
vertical expansion events.public void addSelectionListener(SelectionListener listener)
listener
- The listener that will be subscribed to subsequent
selection events.public void removeSelectionListener(SelectionListener listener)
listener
- The listener that will be unsubscribed from receiving
selection events.public boolean isRowSelected(IlvHierarchyNode row)
row
must be an activity
.
If it is a Schedule chart, the row
must be a
resource
.row
- The row.true
if the row is selected, and
false
otherwise.public void selectRow(int index, boolean selected)
index
- The row index to select or deselect.selected
- true
to select the row or
false
to deselect it.public void selectRow(IlvHierarchyNode row, boolean selected)
row
must be an activity
. If it
is a Schedule chart, the row
must be a
resource
.row
- The row to be selected or deselected.selected
- true
to select the row or
false
to deselect it.public void deSelectAllRows()
public boolean isSelectionAdjusting()
true
whether we are currently selecting a series
of objects.setSelectionAdjusting(boolean)
public void setSelectionAdjusting(boolean selectionAdjusting)
true
when you want upcoming selection or deselection of objects done
by API to be considered as a single selection event. In this case, events of the
class SelectionEvent
sent by the select methods will return
true
to a call of isAdjusting
, meaning that they are part
of a series of events. When you have finished selecting or deselecting the series of
objects, you must call the method with the parameter set to false
.selectionAdjusting
- Set true
to indicate the start of an
adjustment session or false
to indicate the
end of an adjustment session.SelectionEvent.isAdjusting()
public IlvHierarchyNode[] getSelectedRows()
activities
. If the chart is a Schedule chart, the
rows will be the selected resources
.public Iterator selectedRowsIterator()
activities
. If the chart is a Schedule chart, the
iterator will traverse the selected resources
.public Iterator selectedGraphicsIterator()
activity graphics
and/or constraint graphics
. If the chart
is a Schedule chart, the selections can be
reservation graphics
and/or constraint graphics
.public IlvGraphic[] getSelectedGraphics()
activity graphics
and/or constraint graphics
. If the chart
is a Schedule chart, the selections can be
reservation graphics
and/or constraint graphics
.public boolean isGraphicSelected(IlvGraphic graphic)
graphic
- The graphic.public IlvConstraint[] getSelectedConstraints()
public void select(IlvConstraint constraint, boolean selected)
constraint
- The constraint to be selected or deselected.selected
- Indicates whether the specified constraint should be
selected or not.public ilog.views.gantt.styling.IlvGanttCSSManager getStylingManager()
public final void setStyleSheet(String styleSheet) throws IlvStylingException
setStyleSheets(0, styleSheet)
. This method overrides
the first style sheet defined in setStyleSheets(String[])
.styleSheet
- The URL or file name of the style sheet file, or the
style sheet string itself.IlvStylingException
- if an exception occurs while loading or
parsing the style sheet.getStyleSheet()
public void setStyleSheets(int index, String css) throws IlvStylingException
setStyleSheets(String[])
. It lets you
change one particular style sheet, instead of setting the whole style
sheet array.setStyleSheets
in interface IlvStylable
index
- The index of the style sheet to replace.css
- The URL or file name of the new style sheet file, or the
style sheet string itself.IlvStylingException
- if an exception occurs while loading or
parsing the style sheet.getStyleSheets(int)
public void setStyleSheets(String[] css) throws IlvStylingException
setStyleSheets
in interface IlvStylable
css
- An array of strings containing the URLs, the file names of
the CSS files (usually with a .css
suffix), or
the style sheet strings themselves. A null
array specifies that styling should be disabled.IlvStylingException
- if an exception occurs while loading or
parsing the style sheets.getStyleSheets()
public final String getStyleSheet()
getStyleSheets(0)
.null
.setStyleSheet(java.lang.String)
public String getStyleSheets(int index)
getStyleSheets
in interface IlvStylable
index
- The position of the Cascading Style Sheet to return.index
-th style sheet. This will be the URL
or file name of the style sheet file, or the style sheet
string itself. If styling is disabled, this method will return
null
.setStyleSheets(String[])
,
setStyleSheets(int,String)
public String[] getStyleSheets()
getStyleSheets
in interface IlvStylable
null
.setStyleSheets(String[])
public void setStyleSheetDebugMask(int mask)
setStyleSheets(int, java.lang.String)
to debug
problems during configuration.setStyleSheetDebugMask
in interface IlvStylable
mask
- The debug mask, expressed as an OR combination of the
predefined flags:
setStyleSheets(int, java.lang.String)
,
getStyleSheetDebugMask()
public int getStyleSheetDebugMask()
getStyleSheetDebugMask
in interface IlvStylable
setStyleSheetDebugMask(int)
public void registerFunction(IlvCSSFunction function)
registerFunction
in interface IlvAcceptFunctions
function
- The function
to be added.public URL getProject()
URL
of the project configuration file
loaded by this chart.setProject(java.net.URL)
public void setProject(URL project) throws IOException, IlvStylingException
project
- The URL of the project file.IOException
- If an error occurs while reading the file or if
the type of chart referenced in the project configuration
file is not compatible with this chart.IlvStylingException
- If an exception occurs while loading or
applying the style sheet.getProject()
public IlvZoomInAction getZoomInAction()
zoom-in action
that is registered
by default on the chart with the
Control-Z keystroke
.
The action is registered when the chart is created using:
IlvAction action = getZoomInAction(); action.setAccelerator(ZOOM_IN_KEYSTROKE); registerKeyboardAction(action, action.getAccelerator(), WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);Therefore, the default zoom-in action can be unregistered from the chart by using:
unregisterKeyboardAction(getZoomInAction().getAccelerator());
public IlvZoomOutAction getZoomOutAction()
zoom-out action
that is
registered by default on the chart with the
Control-U keystroke
.
The action is registered when the chart is created using:
IlvAction action = getZoomOutAction(); action.setAccelerator(ZOOM_OUT_KEYSTROKE); registerKeyboardAction(action, action.getAccelerator(), WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);Therefore, the default zoom-out action can be unregistered from the chart by using:
unregisterKeyboardAction(getZoomOutAction().getAccelerator());
public IlvVerticalScrollAction getScrollVerticalUpAction()
vertical-scroll-up action
that is registered by default on the right Gantt panel with the
up-arrow keystroke
.
The action is registered when the chart is created using:
IlvAction action = getScrollVerticalUpAction(); action.setAccelerator(SCROLL_VERTICAL_UP_KEYSTROKE); registerGanttPanelKeyboardAction(action, action.getAccelerator(), WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);Therefore, the default scroll-up action can be unregistered from the right panel by using:
unregisterGanttPanelKeyboardAction(getScrollVerticalUpAction().getAccelerator());
public IlvVerticalScrollAction getScrollVerticalDownAction()
vertical-scroll-down action
that is registered by default on the right Gantt panel with the
down-arrow keystroke
.
The action is registered when the chart is created using:
IlvAction action = getScrollVerticalDownAction(); action.setAccelerator(SCROLL_VERTICAL_DOWN_KEYSTROKE); registerGanttPanelKeyboardAction(action, action.getAccelerator(), WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);Therefore, the default scroll-down action can be unregistered from the right panel by using:
unregisterGanttPanelKeyboardAction(getScrollVerticalDownAction().getAccelerator());
public IlvTimeScrollAction getScrollTimeLeftAction()
scroll-time-left action
that
is registered by default on the right Gantt panel with the
left-arrow keystroke
. The
action is registered with the right panel when the chart is created
using:
IlvAction action = getScrollTimeLeftAction(); action.setAccelerator(SCROLL_TIME_LEFT_KEYSTROKE); registerGanttPanelKeyboardAction(action, action.getAccelerator(), WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);Therefore, the default scroll-time-left action can be unregistered from the right panel by using:
unregisterGanttPanelKeyboardAction(getScrollTimeLeftAction().getAccelerator());
public IlvTimeScrollAction getScrollTimeRightAction()
scroll-time-right action
that
is registered by default on the right Gantt panel with the
right-arrow keystroke
. The
action is registered with the right panel when the chart is created
using:
IlvAction action = getScrollTimeRightAction(); action.setAccelerator(SCROLL_TIME_RIGHT_KEYSTROKE); registerGanttPanelKeyboardAction(action, action.getAccelerator(), WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);Therefore, the default scroll-time-right action can be unregistered from the right panel by using:
unregisterGanttPanelKeyboardAction(getScrollTimeRightAction().getAccelerator());
public void registerTablePanelKeyboardAction(ActionListener anAction, KeyStroke aKeyStroke, int aCondition)
table
and its
associated scroll bars. anAction will be invoked if a key
event matching aKeyStroke occurs and aCondition is
verified. The KeyStroke
object defines a particular
combination of a keyboard key and zero, one, or more modifiers (alt,
shift, ctrl, meta).
aCondition can be one of:
- WHEN_FOCUSED
- The action will be invoked only when the keystroke occurs while the left panel itself has the focus. This is not terribly useful because the left panel is completely filled with the table and the scroll bars.
- WHEN_IN_FOCUSED_WINDOW
- The action will be invoked when the keystroke occurs while the left panel has the focus or is in the window that has the focus. Note that the left panel does not need to be an immediate descendent of the focused window -- it can be anywhere in the window's containment hierarchy. In other words, whenever any component in the window has the focus, the action registered with the left table panel is invoked.
- WHEN_ANCESTOR_OF_FOCUSED_COMPONENT
- The action will be invoked when the keystroke occurs while the left panel has the focus or when one of its child components has the focus.
If an action has already been registered for the table panel with
the same charCode
and the same modifiers,
anAction will replace the previously registered action.
unregisterTablePanelKeyboardAction(javax.swing.KeyStroke)
public void unregisterTablePanelKeyboardAction(KeyStroke aKeyStroke)
table
and its
associated scroll bars.registerTablePanelKeyboardAction(java.awt.event.ActionListener, javax.swing.KeyStroke, int)
public KeyStroke[] getRegisteredTablePanelKeyStrokes()
KeyStroke
s that are registered with the
left table panel to initiate actions.KeyStroke
objects.registerTablePanelKeyboardAction(java.awt.event.ActionListener, javax.swing.KeyStroke, int)
public int getConditionForTablePanelKeyStroke(KeyStroke aKeyStroke)
registerTablePanelKeyboardAction(java.awt.event.ActionListener, javax.swing.KeyStroke, int)
public ActionListener getActionForTablePanelKeyStroke(KeyStroke aKeyStroke)
aKeyStroke
- The keystroke that is registered to initiate the
action.ActionListener
object invoked when the
keystroke occurs.registerTablePanelKeyboardAction(java.awt.event.ActionListener, javax.swing.KeyStroke, int)
public void registerGanttPanelKeyboardAction(ActionListener anAction, KeyStroke aKeyStroke, int aCondition)
Gantt sheet
, the
time scale
, and the associated
scroll bars. anAction will be invoked if a key event matching
aKeyStroke occurs and aCondition is verified. The
KeyStroke
object defines a particular combination of a
keyboard key and zero, one, or more modifiers (alt, shift, ctrl,
meta).
aCondition can be one of:
- WHEN_FOCUSED
- The action will be invoked only when the keystroke occurs while the right panel itself has the focus. This is not terribly useful because the right panel is completely filled with the Gantt sheet, the time scale, and the scroll bars.
- WHEN_IN_FOCUSED_WINDOW
- The action will be invoked when the keystroke occurs while the right panel has the focus or is in the window that has the focus. Note that the right panel does not need to be an immediate descendent of the focused window -- it can be anywhere in the window's containment hierarchy. In other words, whenever any component in the window has the focus, the action registered with the right Gantt panel is invoked.
- WHEN_ANCESTOR_OF_FOCUSED_COMPONENT
- The action will be invoked when the keystroke occurs while the right panel has the focus or when one of its child components has the focus.
If an action has already been registered for the Gantt panel with the
same charCode
and the same modifiers, anAction
will replace the previously registered action.
unregisterGanttPanelKeyboardAction(javax.swing.KeyStroke)
public void unregisterGanttPanelKeyboardAction(KeyStroke aKeyStroke)
Gantt sheet
,
the time scale
, and the associated scroll bars.registerGanttPanelKeyboardAction(java.awt.event.ActionListener, javax.swing.KeyStroke, int)
public KeyStroke[] getRegisteredGanttPanelKeyStrokes()
KeyStroke
s that are registered with the
right Gantt panel to initiate actions.KeyStroke
objects.registerGanttPanelKeyboardAction(java.awt.event.ActionListener, javax.swing.KeyStroke, int)
public int getConditionForGanttPanelKeyStroke(KeyStroke aKeyStroke)
registerGanttPanelKeyboardAction(java.awt.event.ActionListener, javax.swing.KeyStroke, int)
public ActionListener getActionForGanttPanelKeyStroke(KeyStroke aKeyStroke)
aKeyStroke
- The keystroke that is registered to initiate the
action.ActionListener
object invoked when the
keystroke occurs.registerGanttPanelKeyboardAction(java.awt.event.ActionListener, javax.swing.KeyStroke, int)
public IlvActivityRendererFactory getActivityRendererFactory()
IlvDefaultActivityRendererFactory
.public void setActivityRendererFactory(IlvActivityRendererFactory factory)
getActivityRendererFactory()
public IlvActivityFactory getActivityFactory()
IlvMakeActivityInteractor
public IlvConstraintGraphicFactory getConstraintGraphicFactory()
IlvDefaultConstraintGraphicFactory
.setConstraintGraphicFactory(ilog.views.gantt.graphic.IlvConstraintGraphicFactory)
public void setConstraintGraphicFactory(IlvConstraintGraphicFactory factory)
getConstraintGraphicFactory()
public void setActivityFactory(IlvActivityFactory factory)
IlvMakeActivityInteractor
.getActivityFactory()
public IlvResourceFactory getResourceFactory()
public void setResourceFactory(IlvResourceFactory factory)
getResourceFactory()
public IlvConstraintFactory getConstraintFactory()
IlvMakeConstraintInteractor
.public void setConstraintFactory(IlvConstraintFactory factory)
IlvMakeConstraintInteractor
.getConstraintFactory()
public IlvReservationFactory getReservationFactory()
IlvMakeActivityInteractor
.public void setReservationFactory(IlvReservationFactory factory)
IlvMakeActivityInteractor
.getReservationFactory()
public int getMaxVerticalPosition()
getMaxVerticalPosition
in interface IlvVerticalScrollable
setMaxVerticalPosition(int)
public void setMaxVerticalPosition(int max)
setMaxVerticalPosition
in interface IlvVerticalScrollable
max
- The maximum position.getMaxVerticalPosition()
public int getVerticalPosition()
getVerticalPosition
in interface IlvVerticalScrollable
setVerticalPosition(int)
public void setVerticalPosition(int position)
max
displayable value and is trimmed
if necessary. A verticalPositionChanged event
is then fired to all
registered listeners
.setVerticalPosition
in interface IlvVerticalScrollable
position
- The new position.getVerticalPosition()
,
computeVerticalScrollPosition(int)
public int computeVerticalScrollPosition(int rowDelta)
setVerticalPosition(int)
method to effect the scroll.rowDelta
- The number of rows to be scrolled vertically; negative values indicate
scroll up, while positive numbers indicate scroll down.public int getVerticalExtent()
getVerticalExtent
in interface IlvVerticalScrollable
setVerticalExtent(int)
public void setVerticalExtent(int extent)
setVerticalExtent
in interface IlvVerticalScrollable
extent
- The new extent.getVerticalExtent()
public int getVerticalScrollMode()
ROW_VERTICAL_SCROLL
indicates that vertical scrolling will occur by rows.
The value SMOOTH_VERTICAL_SCROLL
indicates that vertical scrolling will
occur smoothly by pixels.setVerticalScrollMode(int)
public void setVerticalScrollMode(int mode)
SMOOTH_VERTICAL_SCROLL
indicates that vertical scrolling will occur smoothly
by pixels. The value ROW_VERTICAL_SCROLL
indicates that vertical scrolling
will occur by rows.mode
- The vertical scrolling mode that must be either
SMOOTH_VERTICAL_SCROLL
or ROW_VERTICAL_SCROLL
.getVerticalScrollMode()
public void addVerticalScrollListener(VerticalScrollListener listener)
addVerticalScrollListener
in interface IlvVerticalScrollable
listener
- The listener that will be subscribed to subsequent
scroll events.removeVerticalScrollListener(ilog.views.gantt.event.VerticalScrollListener)
public void removeVerticalScrollListener(VerticalScrollListener listener)
removeVerticalScrollListener
in interface IlvVerticalScrollable
listener
- The listener that will be unsubscribed from receiving
vertical scroll events.addVerticalScrollListener(ilog.views.gantt.event.VerticalScrollListener)
public boolean isMouseWheelEnabled()
setMouseWheelEnabled(boolean)
public void setMouseWheelEnabled(boolean handleWheel)
handleWheel
- true
if scrolling should be done
automatically for a MouseWheelEvent, and zooming
should be performed on CTRL+MouseWheelEvent
false
otherwise.isMouseWheelEnabled()
public int getMouseWheelPreferredOrientation()
VERTICAL
or HORIZONTAL
. If scrolling in the preferred orientation
is disabled or the user presses the SHIFT key while using the mouse wheel, then
scrolling will occur along the opposite axis. The default value is VERTICAL
.VERTICAL
or HORIZONTAL
.setMouseWheelPreferredOrientation(int)
public void setMouseWheelPreferredOrientation(int orientation)
VERTICAL
or HORIZONTAL
. If scrolling in the preferred orientation
is disabled or the user presses the SHIFT key while using the mouse wheel, then
scrolling will occur along the opposite axis.orientation
- The preferred scrolling orientation, which must be
VERTICAL
or HORIZONTAL
.getMouseWheelPreferredOrientation()
public Date getMinVisibleTime()
getMinVisibleTime
in interface IlvTimeScrollable
null
if the chart
is in unbounded scrolling mode.setMinVisibleTime(java.util.Date)
public void setMinVisibleTime(Date min)
time
and
duration
are trimmed to fit the new
min-max interval by calling the
IlvTimeScrollUtil.trimInterval(IlvTimeScrollable, Date, IlvDuration)
method. A
minVisibleTimeChanged
event
is then fired to all registered
listeners
. If min > maxVisibleTime
an
IllegalArgumentException
will be thrown.setMinVisibleTime
in interface IlvTimeScrollable
min
- The minimum visible time or null
to set the
chart to unbounded scrolling mode.getMinVisibleTime()
public Date getMaxVisibleTime()
getMaxVisibleTime
in interface IlvTimeScrollable
null
if the chart
is in unbounded scrolling mode.setMaxVisibleTime(java.util.Date)
public void setMaxVisibleTime(Date max)
time
and
duration
are trimmed to fit the new
min-max interval by calling the
IlvTimeScrollUtil.trimInterval(IlvTimeScrollable, Date, IlvDuration)
method. A
maxVisibleTimeChanged
event
is then fired to all registered
listeners
. If max < minVisibleTime
an
IllegalArgumentException
will be thrown.setMaxVisibleTime
in interface IlvTimeScrollable
max
- The maximum visible time or null
to set the
chart to unbounded scrolling mode.getMaxVisibleTime()
public IlvDuration getMinVisibleDuration()
getMinVisibleDuration
in interface IlvTimeScrollable
setMinVisibleDuration(ilog.views.gantt.IlvDuration)
public void setMinVisibleDuration(IlvDuration duration)
minVisibleDurationChanged event
is fired to all registered listeners
.setMinVisibleDuration
in interface IlvTimeScrollable
duration
- The minimum visible duration.getMinVisibleDuration()
public Date getVisibleTime()
getVisibleTime
in interface IlvTimeScrollable
setVisibleTime(java.util.Date)
public void setVisibleTime(Date time)
min
and max
visible times and is trimmed if necessary by calling the
IlvTimeScrollUtil.trimInterval(IlvTimeScrollable, Date, IlvDuration)
method. A
VisibleTimeChangedEvent
is then fired
to all registered listeners
. If you
are changing both the visible time and duration, it is preferable to
use the setVisibleInterval(java.util.Date, ilog.views.gantt.IlvDuration)
method instead.setVisibleTime
in interface IlvTimeScrollable
time
- The new time value.getVisibleTime()
public IlvDuration getVisibleDuration()
getVisibleDuration
in interface IlvTimeScrollable
setVisibleDuration(ilog.views.gantt.IlvDuration)
public void setVisibleDuration(IlvDuration duration)
min
and max
visible times and is trimmed if necessary by calling the
IlvTimeScrollUtil.trimInterval(IlvTimeScrollable, Date, IlvDuration)
method. A
VisibleDurationChangedEvent
is then
fired to all registered listeners
. If
you are changing both the visible time and duration, it is preferable
to use the setVisibleInterval(java.util.Date, ilog.views.gantt.IlvDuration)
method instead.setVisibleDuration
in interface IlvTimeScrollable
duration
- The new duration value.getVisibleDuration()
public IlvTimeInterval getVisibleInterval()
getVisibleInterval
in interface IlvTimeScrollable
setVisibleInterval(java.util.Date, ilog.views.gantt.IlvDuration)
public void setVisibleInterval(Date time, IlvDuration duration)
min
and
max
visible times and is trimmed if
necessary by calling the
IlvTimeScrollUtil.trimInterval(IlvTimeScrollable, Date, IlvDuration)
method. This method then fires an adjusting
VisibleTimeChangedEvent
followed by a
VisibleDurationChangedEvent
to all
registered listeners
.setVisibleInterval
in interface IlvTimeScrollable
time
- The new time value.duration
- The new duration value.getVisibleInterval()
public final int getVisibleIntervalAnimationSteps()
visible interval
of the chart. The default
value of zero
indicates that animation is disabled.setVisibleIntervalAnimationSteps(int)
public final void setVisibleIntervalAnimationSteps(int steps)
visible interval
of the chart. The default
value of zero
disables the animation.getVisibleIntervalAnimationSteps()
public void addTimeScrollListener(TimeScrollListener listener)
addTimeScrollListener
in interface IlvTimeScrollable
listener
- The listener that will be subscribed to subsequent
time scroll events.removeTimeScrollListener(ilog.views.gantt.event.TimeScrollListener)
public void removeTimeScrollListener(TimeScrollListener listener)
removeTimeScrollListener
in interface IlvTimeScrollable
listener
- The listener that will be unsubscribed from receiving
time scroll events.addTimeScrollListener(ilog.views.gantt.event.TimeScrollListener)
public IlvTimeConverter getTimeConverter()
setTimeConverter(ilog.views.gantt.graphic.IlvTimeConverter)
public void setTimeConverter(IlvTimeConverter timeConverter)
getGanttSheet().setTimeConverter(timeConverter); getTimeScale().setTimeConverter(timeConverter);
timeConverter
- The time converter.getTimeConverter()
public int getHeaderHeight()
public void addHeaderListener(HeaderListener listener)
listener
- The listener that will be subscribed to subsequent
header change events.removeHeaderListener(ilog.views.gantt.event.HeaderListener)
public void removeHeaderListener(HeaderListener listener)
listener
- The listener that is unsubscribed from receiving
header change events.addHeaderListener(ilog.views.gantt.event.HeaderListener)
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.