public class IlvGanttSheet extends IlvManagerView implements IlvVerticalExpandable, IlvTimeScrollable
IlvGanttSheet
class is a lightweight graphical component
that displays activities, constraints, and reservations. It can be added to
a Gantt configuration as an expandable slave component by invoking the
IlvGanttConfiguration.addVerticalExpandable(ilog.views.gantt.IlvVerticalExpandable)
method.
This class is a subclass of the Rogue Wave JViews IlvManagerView
class. It contains a JViews grapher (IlvGrapher
) to display
the activities and constraints.
The activities displayed in the IlvGanttSheet
are
JViews graphic object instances of the class IlvActivityGraphic
for the activities and IlvConstraintGraphic
for the
constraints.
As this class is a view of a manager, you can set interactors
on it. These interactors provide different types of
interactions. The library includes predefined interactors to select and
edit the activities in the gantt sheet, such as
IlvGanttSelectInteractor
, but you can create your own type
of interactor using IlvManagerViewInteractor
.
IlvManagerView.FitAreaCalculator
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
static int |
HH_BLUR
The "Blur" mode for hover highlighting in
setHoverHighlightingMode(int) . |
static int |
HH_BRIGHTEN
The "Brighten" mode for hover highlighting in
setHoverHighlightingMode(int) . |
static int |
HH_CUSTOM
Indicates a custom mode for hover highlighting when returned by
getHoverHighlightingMode() . |
static int |
HH_GRAYSCALE
The "Gray scale" mode for hover highlighting in
setHoverHighlightingMode(int) . |
static int |
HH_INVERT_COLORS
The "Invert Colors" mode for hover highlighting in
setHoverHighlightingMode(int) . |
static int |
HH_NONE
Constant to indicate that hover highlighting is deactivated in
setHoverHighlightingMode(int) . |
static int |
HH_SHARPEN
The "Sharpen" mode for hover highlighting in
setHoverHighlightingMode(int) . |
static String |
TIME_CONVERTER_PROPERTY
Identifies a change to the time converter of the Gantt sheet.
|
BLINKING_AUTOMATIC, BLINKING_DISABLED, BLINKING_ENABLED, DIRECT_REDRAW, KEY_VIEW, THREADED_REDRAW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
DEFAULT_MINIMUM_DURATION
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
IlvGanttSheet()
Creates a new
IlvGanttSheet . |
Modifier and Type | Method and Description |
---|---|
Iterator<IlvActivityGraphic> |
activityGraphicsIterator()
Returns an iterator over all the
activity graphics
in the Gantt sheet. |
Iterator<IlvActivityGraphic> |
activityGraphicsIterator(IlvActivity activity)
Returns an iterator over the
activity graphics
representing the specified activity in the Gantt sheet. |
void |
addAccelerator(IlvAccelerator a)
Adds an accelerator to the Gantt sheet.
|
void |
addTimeIndicator(IlvTimeIndicator timeIndicator)
Adds a
time indicator to the Gantt sheet. |
void |
addTimeScrollListener(TimeScrollListener listener)
Adds the specified listener to receive time scroll events from this Gantt
sheet.
|
protected void |
baseTextDirectionChanged()
This method is invoked when the effective base text direction has changed.
|
void |
beginRedrawSession(boolean redrawSheet)
Starts a redraw session that must be terminated by calling
endRedrawSession() . |
protected void |
componentOrientationChanged(ComponentOrientation oldOrientation,
ComponentOrientation newOrientation)
This method is invoked when the component orientation of this sheet has
changed.
|
Iterator<IlvConstraintGraphic> |
constraintGraphicsIterator()
Returns an iterator over all the
constraint graphics
in the Gantt sheet. |
IlvGanttGridContext |
createGridContext()
This function creates an
IlvGanttGridContext for the
Gantt sheet. |
void |
endRedrawSession()
Ends a redraw session that was begun by calling
beginRedrawSession(boolean) . |
void |
ensureVisible(IlvGraphic graphic,
int margin)
Scrolls the Gantt sheet if necessary to ensure that the specified graphic is
visible to the user.
|
protected void |
fireVisibleDurationChanged()
This method is called to fire a visible duration value modification.
|
protected void |
fireVisibleTimeChanged(boolean adjusting)
This method is called to fire a time value modification.
|
protected void |
fitTransformerToAreaImpl(Insets insets,
IlvManagerView.FitAreaCalculator areaCalculator,
int maxNumberOfIterations,
boolean callchanged)
Modifies the manager view transformer so that a specific area is visible
in the view.
|
void |
ganttModelChanged(GanttModelChangedEvent event)
Invoked by the Gantt configuration when the data model has been replaced.
|
IlvGanttRow |
ganttRowFromPosition(int y)
Returns the Gantt row from the specified y position in the sheet.
|
Iterator<IlvGanttRow> |
ganttRowIterator()
Returns an iterator over all of the Gantt rows in this sheet, both visible
and hidden.
|
IlvActivityFactory |
getActivityFactory()
Returns the activity factory for creating activities.
|
IlvActivityGraphic |
getActivityGraphic(IlvActivity activity)
Returns the first
activity graphic representing
the specified activity in the Gantt sheet. |
int |
getActivityGraphicLayerIndex()
Returns the index of the layer that contains the
activity graphics . |
Collection<IlvActivityGraphic> |
getActivityGraphics()
Returns a collection of all the
activity graphics
in the Gantt sheet. |
IlvActivityLayout |
getActivityLayout()
Returns the activity layout used for activity rows in the sheet.
|
IlvActivityRendererFactory |
getActivityRendererFactory()
Returns the activity-renderer factory used to create activity graphics.
|
int |
getBaseTextDirection()
Returns the base text direction for this Gantt sheet.
|
IlvConstraintFactory |
getConstraintFactory()
Returns the constraint factory used for creating constraints.
|
IlvConstraintGraphic |
getConstraintGraphic(IlvConstraint constraint)
Returns the
constraint graphic representing
the specified constraint in the Gantt sheet. |
IlvConstraintGraphicFactory |
getConstraintGraphicFactory()
Returns the constraint-graphics factory used to create constraint
graphics.
|
int |
getConstraintGraphicLayerIndex()
Deprecated.
JViews 8.1 introduces the ability to have several layers
of constraints within the Gantt sheet. Please use
getDefaultConstraintGraphicLayerIndex . |
IlvConstraintGraphicLayerPolicy |
getConstraintGraphicLayerPolicy()
Returns the policy used to manage
constraint graphics . |
Collection<IlvConstraintGraphic> |
getConstraintGraphics()
Returns a collection of all the
constraint graphics in the Gantt sheet. |
int |
getDefaultConstraintGraphicLayerIndex()
Returns the index of the default layer that contains the
constraint graphics . |
IlvTimeIndicatorReshapeFeedback |
getDefaultTimeIndicatorReshapeFeedback()
Returns the default time indicator reshape feedback.
|
IlvGanttConfiguration |
getGanttConfiguration()
Returns the Gantt configuration that is managing this sheet.
|
IlvGanttModel |
getGanttModel()
Returns the data model that this sheet is displaying.
|
IlvGanttRow |
getGanttRowByIdentifier(IlvHierarchyNode node)
Returns the Gantt row identified by the given hierarchy node.
|
int |
getGanttRowCount()
Returns the number of Gantt rows contained in this sheet, both visible and
hidden.
|
IlvGraphic |
getGraphic(Point2D p)
Returns the graphic located at the specified point in the Gantt sheet;
otherwise, it returns
null . |
Collection<IlvGraphic> |
getGraphicsInside(Rectangle2D rect)
Returns a collection of the graphics that are inside the specified
rectangle of the Gantt sheet.
|
Collection<IlvGraphic> |
getGraphicsIntersects(Rectangle2D rect)
Returns a collection of the graphics that intersect the specified
rectangle of the Gantt sheet.
|
IlvGanttGridRenderer |
getHorizontalGrid()
Returns the horizontal grid renderer of the Gantt sheet.
|
int |
getHorizontalGridLayerIndex()
Returns the index of the layer that contains the
horizontal grid . |
IlvHoverHighlightingImageOperation |
getHoverHighlightingImageOperation()
Returns the hover highlighting image operation.
|
int |
getHoverHighlightingMode()
Returns the current hover highlighting mode.
|
Date |
getMaxVisibleTime()
Returns the maximum time that the Gantt sheet can show in bounded
scrolling mode.
|
IlvDuration |
getMinVisibleDuration()
Returns the minimum duration that the Gantt sheet can show.
|
Date |
getMinVisibleTime()
Returns the minimum time that the Gantt sheet can show in bounded
scrolling mode.
|
int |
getParentBaseTextDirection()
Returns the base text direction that this Gantt sheet considers as coming
from its parent component.
|
long |
getPosition(Date t)
Returns the x position in pixels that corresponds to the specified time.
|
IlvReservationFactory |
getReservationFactory()
Returns the reservation factory for creating reservations.
|
IlvReservationGraphic |
getReservationGraphic(IlvReservation reservation)
Returns the
IlvReservationGraphic representing the given
IlvReservation . |
int |
getResolvedBaseTextDirection()
Returns the resolved base text direction.
|
IlvResourceFactory |
getResourceFactory()
Returns the registered resource factory for creating resources.
|
int |
getRowHeight()
Returns the row height used when all Gantt rows are set to have the same
height.
|
Date |
getTime(int x)
Returns the time that corresponds to the specified x position.
|
IlvTimeConverter |
getTimeConverter()
Returns the time converter.
|
IlvTimeIndicator |
getTimeIndicator(Date date)
Returns the
time indicator graphic representing
the specified date, or the current date in the Gantt sheet. |
int |
getTimeIndicatorLayerIndex()
Returns the index of the layer that contains the
time indicator graphics . |
Collection<IlvTimeIndicator> |
getTimeIndicators()
Returns a collection of all the
time indicator graphics in the Gantt sheet. |
IlvGanttGridRenderer |
getVerticalGrid()
Returns the vertical grid renderer of the Gantt sheet.
|
int |
getVerticalGridLayerIndex()
Returns the index of the layer that contains the
vertical grid . |
IlvDuration |
getVisibleDuration()
Returns the duration of the time interval displayed by the Gantt sheet.
|
IlvGanttRow |
getVisibleGanttRowAt(int index)
Returns the visible Gantt row at the given position.
|
int |
getVisibleGanttRowCount()
Returns the number of visible rows in this Gantt sheet.
|
int |
getVisibleGanttRowIndex(IlvGanttRow ganttRow)
Returns the index of the given visible Gantt row.
|
IlvTimeInterval |
getVisibleInterval()
Returns the time interval displayed by the Gantt sheet.
|
Date |
getVisibleTime()
Returns the beginning of the time interval displayed by the Gantt sheet.
|
boolean |
isConstantZoomFactorOnWidthChange()
Returns whether the visible duration of the Gantt sheet is modified
when its width changes in order to maintain a constant zoom factor.
|
boolean |
isConstraintLayerVisible()
Deprecated.
JViews 8.1 introduces the ability to have several layers
of constraints within the Gantt sheet. Please use
isDefaultConstraintLayerVisible . |
boolean |
isDefaultConstraintLayerVisible()
Returns whether the default constraint layer is visible.
|
boolean |
isDisplayingConstraints()
Returns whether the Gantt sheet is displaying constraints.
|
boolean |
isMilestoneConversionAllowed()
Returns
true if it is possible, through interactive editing,
to convert milestones into activities with non-empty time interval or vice
versa. |
boolean |
isMultipleRowActivityGraphicsEnabled()
Returns whether
activity graphics are
allowed to be drawn over multiple rows. |
boolean |
isParentActivityEditable()
If this function returns
false , the activity graphics
representing parent activities are considered as not editable. |
boolean |
isParentActivityMovable()
If this function returns
false , the activity graphics that
represent parent activities are considered as not movable. |
boolean |
isPopupMenusEnabled()
Returns
true if pop-up menus are enabled for the Gantt sheet. |
boolean |
isRefreshMilestoneRenderer()
When the time interval of an activity becomes null, the
start and end times become identical.
|
boolean |
isRefreshParentActivityRenderer()
When a leaf activity that has no children becomes a parent or vice versa,
the renderer of the activity will be refreshed if this function returns
true . |
boolean |
isTimeIndicatorLayerVisible()
Returns whether the time indicator layer is visible.
|
boolean |
isToolTipsEnabled()
Returns
true if tooltips are enabled for the Gantt sheet. |
void |
paint(Graphics g)
When this function is called for the first time,
it calculates the transformer of the
Gantt sheet for the visible time and the visible duration.
|
void |
print(Graphics dst,
IlvRect area,
IlvTransformer t)
Prints the contents of the Gantt sheet to the specified
Graphics . |
void |
print(Graphics dst,
Rectangle viewport,
IlvTransformer t)
Prints the contents of the Gantt sheet to the specified
Graphics . |
void |
print(Graphics dst,
Rectangle viewport,
IlvTransformer t,
boolean includeBackground)
Prints the contents of the Gantt sheet to the specified
Graphics . |
void |
removeAccelerator(IlvAccelerator a)
Removes an accelerator from the Gantt sheet.
|
void |
removeTimeIndicator(IlvTimeIndicator timeIndicator)
Removes a
time indicator from the Gantt sheet. |
void |
removeTimeScrollListener(TimeScrollListener listener)
Removes the specified listener so that it will no longer receive time
scroll events from this Gantt sheet.
|
void |
replaceConstraintGraphic(IlvConstraintGraphic oldGraphic,
IlvConstraintGraphic newGraphic,
boolean redraw)
Replaces a
constraint graphic in the Gantt
sheet with another one. |
void |
replaceTimeIndicator(IlvTimeIndicator oldGraphic,
IlvTimeIndicator newGraphic,
boolean redraw)
Replaces an
time indicator graphic in the
Gantt sheet with another one. |
void |
rootRowVisibilityChanged(RootRowVisibilityChangedEvent event)
Invoked by the
Gantt configuration when
the visibility of the root row has been changed. |
void |
rowCollapsed(RowCollapsedEvent event)
Invoked by the Gantt configuration when a node has been collapsed in the
data tree.
|
void |
rowExpanded(RowExpandedEvent event)
Invoked by the Gantt configuration when a node has been expanded in the
data tree.
|
void |
rowHeightChanged(RowHeightChangedEvent event)
This method is invoked by the
Gantt
configuration when the row height has been changed. |
void |
rowMoved(RowMovedEvent event)
Invoked by the Gantt configuration when a node has been moved within the
data tree.
|
void |
rowsInserted(RowsInsertedEvent event)
Invoked by the Gantt configuration when children have been inserted into
the same parent node in the data tree.
|
void |
rowsRemoved(RowsRemovedEvent event)
Invoked by the Gantt configuration when children have been removed from
the same parent node in the data tree.
|
void |
setActivityFactory(IlvActivityFactory factory)
Sets the activity factory for creating activities.
|
void |
setActivityLayout(IlvActivityLayout activityLayout)
Sets the activity layout used for activity rows in the sheet.
|
void |
setActivityRenderer(IlvActivity activity,
IlvActivityRenderer renderer)
Changes the activity renderer for all the
activity graphics
representing the specified activity in the Gantt sheet. |
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 Gantt sheet.
|
void |
setComponentOrientation(ComponentOrientation o)
Sets the component orientation of this sheet.
|
void |
setConstantZoomFactorOnWidthChange(boolean enabled)
Sets whether the visible duration of the Gantt sheet will be modified when
its width changes in order to maintain a constant zoom factor.
|
void |
setConstraintFactory(IlvConstraintFactory factory)
Set the constraint factory for constraint creation.
|
void |
setConstraintGraphicFactory(IlvConstraintGraphicFactory factory)
Sets the constraint-graphics factory used to create constraint graphics.
|
void |
setConstraintGraphicLayerPolicy(IlvConstraintGraphicLayerPolicy policy)
Sets the policy that is used to manage
constraint graphics . |
void |
setConstraintLayerVisible(boolean visible)
Deprecated.
JViews 8.1 introduces the ability to have several layers
of constraints within the Gantt sheet. Please use
setDefaultConstraintLayerVisible . |
void |
setDefaultConstraintLayerVisible(boolean visible)
Changes the visibility of the default constraint graphic layer.
|
void |
setDisplayingConstraints(boolean enable)
Sets whether the Gantt sheet is displaying constraints.
|
void |
setExpandableGanttConfigurationImpl(IlvGanttConfiguration ganttConfig)
Sets the Gantt configuration that this Gantt sheet is coordinating
with.
|
void |
setHorizontalGrid(IlvGanttGridRenderer grid)
Sets the horizontal grid renderer for the Gantt sheet.
|
void |
setHoverHighlightingImageOperation(IlvHoverHighlightingImageOperation hoverHighlightingImageOperation)
Sets the hover highlighting image operation.
|
void |
setHoverHighlightingMode(int mode)
Sets one of the predefined highlighting modes.
|
void |
setMaxVisibleTime(Date max)
Sets the maximum time that the Gantt sheet can show in bounded
scrolling mode.
|
void |
setMilestoneConversionAllowed(boolean allowed)
Defines whether it is possible, through interactive editing, to convert
milestones into activities with non-empty time interval or vice versa.
|
void |
setMinVisibleDuration(IlvDuration duration)
Sets the minimum duration that the Gantt sheet can show.
|
void |
setMinVisibleTime(Date min)
Sets the minimum time that the Gantt sheet can show in bounded
scrolling mode.
|
void |
setMultipleRowActivityGraphicsEnabled(boolean enable)
Enables or disables the capability of
activity
graphics to be drawn over multiple rows. |
void |
setParentActivityEditable(boolean editable)
Defines whether the parent activity graphics are editable or not.
|
void |
setParentActivityMovable(boolean movable)
Defines whether the parent activity graphics are movable or not.
|
void |
setParentBaseTextDirection(int btd)
Sets the base text direction that this Gantt sheet considers as coming
from its parent component.
|
void |
setPopupMenusEnabled(boolean enable)
Sets whether pop-up menus are enabled for the Gantt sheet.
|
void |
setRefreshMilestoneRenderer(boolean update)
Defines whether an activity renderer should be refreshed when
the activity time interval changes from
null to non-null
or vice versa. |
void |
setRefreshParentActivityRenderer(boolean update)
Defines whether an activity renderer should be refreshed or not when
the activity changes from a leaf activity to a parent
activity or vice versa.
|
void |
setReservationFactory(IlvReservationFactory factory)
Sets the reservation factory for creating reservations.
|
void |
setReservationRenderer(IlvReservation reservation,
IlvActivityRenderer renderer)
This method first finds the reservation graphic that represents the
specified reservation and then changes the activity renderer of
the reservation graphic.
|
void |
setResourceFactory(IlvResourceFactory factory)
Registers the resource factory for creating resources.
|
void |
setRowHeight(int rowHeight)
Sets all Gantt rows to have the same height.
|
void |
setTimeConverter(IlvTimeConverter timeConverter)
Sets the time converter.
|
void |
setTimeIndicatorLayerVisible(boolean visible)
Changes the visibility of the time indicator layer.
|
void |
setToolTipsEnabled(boolean enable)
Sets whether tooltips are enabled for the Gantt sheet.
|
void |
setVerticalGrid(IlvGanttGridRenderer grid)
Sets the vertical grid renderer for the Gantt sheet.
|
void |
setVisibleDuration(IlvDuration duration)
Sets the duration of the time interval displayed by the Gantt sheet.
|
void |
setVisibleInterval(Date time,
IlvDuration duration)
Sets the time interval displayed by the Gantt sheet.
|
void |
setVisibleTime(Date time)
Sets the beginning of the time interval displayed by the Gantt sheet.
|
void |
swapLayers(int layer1,
int layer2)
Swaps two layers and changes their indices.
|
Iterator<IlvTimeIndicator> |
timeIndicatorsIterator()
Returns an iterator over all the
time indicator graphics
in the Gantt sheet. |
protected void |
transformerChanged(IlvTransformer newTransformer,
IlvTransformer oldTransformer)
This method is called when the transformer changes.
|
void |
translate(double deltax,
double deltay,
boolean redraw)
Translates the view.
|
void |
validateRowHeights()
Ensures that the heights of all rows are up-to-date.
|
void |
verifyTransformer()
This function ensures that 1) the Gantt sheet does not
zoom vertically; 2) there is no shown space above the
visible Gantt rows; 3) if all visible Gantt rows can be displayed
in the Gantt sheet, any vertical scrolling is canceled.
|
protected void |
widthChanged(int width)
This method is invoked when the Gantt sheet's width has been modified.
|
acceptCollapseExpandIconsEvent, addInteractorListener, addManagerChangedListener, addNotify, addTransformer, addTransformerListener, addViewDecoration, computeBBox, computeBBox, computeTransformerFitToArea, createDoubleBufferImage, createImage, doubleBufferedImageUpToDate, ensureVisible, ensureVisible, fitTransformerToArea, fitTransformerToArea, fitTransformerToContent, fitTransformerToContent, fitTransformerToContent, fitTransformerToContent, fitTransformerToContent, getBackgroundPattern, getBackgroundPatternLocation, getBlinkingMode, getCurrentView, getDefaultGhostColor, getDefaultXORColor, getGrid, getInteractor, getManager, getMaximumSize, getMaxZoomXFactor, getMaxZoomYFactor, getMinimumSize, getMinZoomXFactor, getMinZoomYFactor, getPopupMenu, getPopupMenu, getPreferredSize, getRedrawMode, getRegion, getRepaintSkipThreshold, getStoredULocale, getTransformer, getTripleBufferedLayerCount, getULocale, getViewDecoration, getViewDecorationCount, getViewMargins, imageUpdate, initDisplayInfo, interactorChanged, invalidateRect, invalidateTripleBuffer, invalidateTripleBuffer, invalidateView, isAntialiasing, isAtZoomXFactorLimit, isAtZoomYFactorLimit, isAutoFitToContents, isCollapseExpandIconsEnabled, isContributingToViewBBox, isDoubleBufferFrozen, isDoubleBuffering, isEventDispatching, isInSwingParent, isKeepingAspectRatio, isLayerCached, isOpaque, isOptimizedTranslation, isRegisteredAtToolTipManager, isSelectedWhenPopupPreferred, isTransparent, isVisible, isWheelZoomingEnabled, isWheelZoomingInverted, managerChanged, popInteractor, print, processEvent, processKeyEvent, pushInteractor, pushInteractor, reDrawViews, reDrawViewsForBlinking, removeAllInteractors, removeInteractorListener, removeManagerChangedListener, removeNotify, removeTransformerListener, removeViewDecoration, repaint, repaint, setAntialiasing, setAutoFitToContents, setAutoFitToContents, setBackground, setBackgroundPattern, setBackgroundPatternLocation, setBlinkingMode, setBounds, setCollapseExpandIconsEnabled, setContributingToViewBBox, setCursor, setDefaultGhostColor, setDefaultXORColor, setDoubleBufferFrozen, setDoubleBuffering, setEventDispatching, setGrid, setInteractor, setKeepingAspectRatio, setLayerCached, setLocale, setManager, setMaximumSize, setMaxZoomXFactor, setMaxZoomYFactor, setMinimumSize, setMinZoomXFactor, setMinZoomYFactor, setOptimizedTranslation, setPreferredSize, setRedrawMode, setRegisteredAtToolTipManager, setRepaintSkipThreshold, setSelectedWhenPopupPreferred, setTransformer, setTransparent, setTripleBufferedLayerCount, setULocale, setViewMargins, setVisible, setWheelZoomingEnabled, setWheelZoomingInverted, setZoomFactorRange, snapToGrid, update, visibleRect, zoom
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, isValidateRoot, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, 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, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBounds, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCursor, getGraphics, isCursorSet
getComponentOrientation
public static final String TIME_CONVERTER_PROPERTY
setTimeConverter(ilog.views.gantt.graphic.IlvTimeConverter)
,
Constant Field Valuespublic static final int HH_NONE
setHoverHighlightingMode(int)
. By default, hover highlighting is deactivated.IlvHoverHighlightingImageOperation.BLUR_OP
,
Constant Field Valuespublic static final int HH_BLUR
setHoverHighlightingMode(int)
.IlvHoverHighlightingImageOperation.BLUR_OP
,
Constant Field Valuespublic static final int HH_BRIGHTEN
setHoverHighlightingMode(int)
.IlvHoverHighlightingImageOperation.BRIGHTEN_OP
,
Constant Field Valuespublic static final int HH_GRAYSCALE
setHoverHighlightingMode(int)
.IlvHoverHighlightingImageOperation.GRAYSCALE_OP
,
Constant Field Valuespublic static final int HH_SHARPEN
setHoverHighlightingMode(int)
.IlvHoverHighlightingImageOperation.SHARPEN_OP
,
Constant Field Valuespublic static final int HH_INVERT_COLORS
setHoverHighlightingMode(int)
.IlvHoverHighlightingImageOperation.INVERT_COLORS_OP
,
Constant Field Valuespublic static final int HH_CUSTOM
getHoverHighlightingMode()
.
This mode is set automatically when setHoverHighlightingImageOperation(IlvHoverHighlightingImageOperation)
is called to specify a custom highlighting image operation.public IlvTimeIndicatorReshapeFeedback getDefaultTimeIndicatorReshapeFeedback()
public final IlvGanttConfiguration getGanttConfiguration()
IlvGanttConfiguration
.public final IlvGanttModel getGanttModel()
IlvGanttModel
.public void setComponentOrientation(ComponentOrientation o)
setComponentOrientation
in interface IlvComponentOrientationAware
setComponentOrientation
in class IlvManagerView
o
- The orientation for this sheet.IlvComponentOrientationAware.getComponentOrientation()
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
.
The base text direction affects, in particular:
btd
- The base text direction.getBaseTextDirection()
public final int getParentBaseTextDirection()
This method exists for internal purposes. You should not invoke it directly.
IlvBidiUtil.COMPONENT_DIRECTION
,
IlvBidiUtil.CONTEXTUAL_DIRECTION
,
IlvBidiUtil.LEFT_TO_RIGHT
,
IlvBidiUtil.RIGHT_TO_LEFT
.setParentBaseTextDirection(int)
,
getResolvedBaseTextDirection()
public void setParentBaseTextDirection(int btd)
This method exists for internal purposes. You should not invoke it directly.
Possible values are:
IlvBidiUtil.COMPONENT_DIRECTION
,
IlvBidiUtil.CONTEXTUAL_DIRECTION
,
IlvBidiUtil.LEFT_TO_RIGHT
, and IlvBidiUtil.RIGHT_TO_LEFT
.
btd
- The base text direction of the parent component.getParentBaseTextDirection()
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 IlvActivityRendererFactory getActivityRendererFactory()
IlvDefaultActivityRendererFactory
.IlvActivityRendererFactory
.setActivityRendererFactory(ilog.views.gantt.graphic.IlvActivityRendererFactory)
public void setActivityRendererFactory(IlvActivityRendererFactory factory)
factory
- the IlvActivityRendererFactory
.getActivityRendererFactory()
public IlvConstraintGraphicFactory getConstraintGraphicFactory()
IlvDefaultConstraintGraphicFactory
.IlvConstraintGraphicFactory
.setConstraintGraphicFactory(ilog.views.gantt.graphic.IlvConstraintGraphicFactory)
public void setConstraintGraphicFactory(IlvConstraintGraphicFactory factory)
factory
- the IlvConstraintGraphicFactory
.getConstraintGraphicFactory()
public IlvConstraintFactory getConstraintFactory()
IlvMakeConstraintInteractor
.IlvConstraintFactory
.setConstraintFactory(ilog.views.gantt.IlvConstraintFactory)
public void setConstraintFactory(IlvConstraintFactory factory)
IlvMakeConstraintInteractor
.factory
- the IlvConstraintFactory
.getConstraintFactory()
public IlvActivityFactory getActivityFactory()
IlvMakeActivityInteractor
.IlvActivityFactory
.setActivityFactory(ilog.views.gantt.IlvActivityFactory)
public void setActivityFactory(IlvActivityFactory factory)
IlvMakeActivityInteractor
.factory
- the IlvActivityFactory
.getActivityFactory()
public IlvReservationFactory getReservationFactory()
IlvMakeActivityInteractor
.IlvReservationFactory
.setReservationFactory(ilog.views.gantt.IlvReservationFactory)
public void setReservationFactory(IlvReservationFactory factory)
IlvMakeActivityInteractor
.factory
- the IlvReservationFactory
.getReservationFactory()
public IlvResourceFactory getResourceFactory()
IlvResourceFactory
.setResourceFactory(ilog.views.gantt.IlvResourceFactory)
public void setResourceFactory(IlvResourceFactory factory)
factory
- the IlvResourceFactory
.getResourceFactory()
public int getHorizontalGridLayerIndex()
horizontal grid
.
The default value is 0
.public int getVerticalGridLayerIndex()
vertical grid
.
The default value is 1
.public int getActivityGraphicLayerIndex()
activity graphics
. The default value is
2
.@Deprecated public int getConstraintGraphicLayerIndex()
getDefaultConstraintGraphicLayerIndex
.constraint graphics
. The default value is
3
.getDefaultConstraintGraphicLayerIndex()
public int getDefaultConstraintGraphicLayerIndex()
constraint graphics
. The default value is
3
.public IlvConstraintGraphicLayerPolicy getConstraintGraphicLayerPolicy()
constraint graphics
.IlvConstraintGraphicLayerPolicy
public void setConstraintGraphicLayerPolicy(IlvConstraintGraphicLayerPolicy policy)
constraint graphics
.policy
- The IlvConstraintGraphicLayerPolicy
. If null
, the default policy will be used.public int getTimeIndicatorLayerIndex()
time indicator graphics
. The default value is
4
.public void swapLayers(int layer1, int layer2)
layer1
- The index of the first layer.layer2
- The index of the second layer.public boolean isDisplayingConstraints()
true
for an IlvGanttConfiguration
that
has a row type
of ACTIVITY_ROWS
, as in a Gantt chart.
The default value is false
for a configuration that has a
row type of RESOURCE_ROWS
,
as in a Schedule chart.setDisplayingConstraints(boolean)
public void setDisplayingConstraints(boolean enable)
true
for an IlvGanttConfiguration
that
has a row type
of
ACTIVITY_ROWS
, as in a Gantt
chart. The default value will be false
for a configuration
that has a row type of
RESOURCE_ROWS
,
as in 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 Gantt sheet 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()
@Deprecated public boolean isConstraintLayerVisible()
isDefaultConstraintLayerVisible
.true
.isDefaultConstraintLayerVisible()
,
setDefaultConstraintLayerVisible(boolean)
public boolean isDefaultConstraintLayerVisible()
true
.setDefaultConstraintLayerVisible(boolean)
@Deprecated public void setConstraintLayerVisible(boolean visible)
setDefaultConstraintLayerVisible
.visible
- The visibility of the default constraint layer.isDefaultConstraintLayerVisible()
,
setDefaultConstraintLayerVisible(boolean)
public void setDefaultConstraintLayerVisible(boolean visible)
visible
- The visibility of the default constraint layer.isDefaultConstraintLayerVisible()
public boolean isTimeIndicatorLayerVisible()
true
.setTimeIndicatorLayerVisible(boolean)
public void setTimeIndicatorLayerVisible(boolean visible)
visible
- The visibility of the time indicator layer.isTimeIndicatorLayerVisible()
public void setExpandableGanttConfigurationImpl(IlvGanttConfiguration ganttConfig)
addVerticalExpandable
method. The sheet initially synchronizes its
display with the Gantt configuration at this point. Note, however, that
the Gantt configuration may or may not have a valid data model at this
time and this must be taken into account. The Gantt sheet will be
subsequently informed when a data model is set or replaced via the
ganttModelChanged
event.
Warning: This method is considered to be part of an
IlvVerticalExpandable
's internal implementation and is not a
public API. Only the Gantt configuration should invoke this method.
setExpandableGanttConfigurationImpl
in interface IlvVerticalExpandable
ganttConfig
- The Gantt configuration that this Gantt sheet
is being added to, or null
if this sheet is being removed
from its Gantt configuration.public void ganttModelChanged(GanttModelChangedEvent event)
ganttModelChanged
in interface IlvVerticalExpandable
event
- The event.public void validateRowHeights()
validateRowHeights
in interface IlvVerticalExpandable
public void rowsInserted(RowsInsertedEvent event)
rowsInserted
in interface VerticalExpansionListener
event
- The event.public void rowsRemoved(RowsRemovedEvent event)
rowsRemoved
in interface VerticalExpansionListener
event
- The event.public void rowMoved(RowMovedEvent event)
rowMoved
in interface VerticalExpansionListener
event
- The event.public void rowExpanded(RowExpandedEvent event)
rowExpanded
in interface VerticalExpansionListener
event
- The event.public void rowCollapsed(RowCollapsedEvent event)
rowCollapsed
in interface VerticalExpansionListener
event
- The event.public void rowHeightChanged(RowHeightChangedEvent event)
Gantt
configuration
when the row height has been changed.rowHeightChanged
in interface VerticalExpansionListener
event
- The event.public void rootRowVisibilityChanged(RootRowVisibilityChangedEvent event)
Gantt configuration
when
the visibility of the root row has been changed.rootRowVisibilityChanged
in interface VerticalExpansionListener2
event
- The event.public int getGanttRowCount()
public Iterator<IlvGanttRow> ganttRowIterator()
Iterator
over the rows.public int getVisibleGanttRowCount()
public IlvGanttRow getVisibleGanttRowAt(int index)
index
is 0, this function returns
the first visible Gantt row. It returns null
if there is no visible Gantt row at the specified position.index
- The row index.IlvGanttRow
.public int getVisibleGanttRowIndex(IlvGanttRow ganttRow)
ganttRow
- The Gantt row.public IlvGanttRow getGanttRowByIdentifier(IlvHierarchyNode node)
node
- The given node.public IlvGanttRow ganttRowFromPosition(int y)
y
- The position defined in pixels.null
if there is no row at this
position.public Date getTime(int x)
Note: the value returned by this method is only valid for the
screen display. During printing, a different transformer than the one set on the
Gantt sheet is used. When this is the case, you need to call IlvTimeScrollUtil.getTime(long, IlvTimeConverter, IlvTransformer)
instead of this
one.
x
- The position defined in pixels.getPosition(java.util.Date)
public long getPosition(Date t)
Note: the value returned by this method is only valid for the
screen display. During printing, a different transformer than the one set on the
Gantt sheet is used. When this is the case, you need to call IlvTimeScrollUtil.getPosition(Date, IlvTimeConverter, IlvTransformer)
instead of
this one.
t
- The time.getTime(int)
public IlvGraphic getGraphic(Point2D p)
null
. In a Gantt chart, where
the rows are organized by
activities
,
the graphic can be an activity graphic
or a
constraint graphic
. In a Schedule chart,
where the rows are organized by
resources
,
the graphic can be a reservation graphic
or
a constraint graphic
.p
- The point, relative to the display area.IlvGraphic
.public Collection<IlvGraphic> getGraphicsInside(Rectangle2D rect)
activities
,
the graphics can be activity graphics
and/or
constraint graphics
. In a Schedule chart,
where the rows are organized by
resources
,
the graphics can be reservation graphics
or
constraint graphics
.rect
- The rectangle, relative to the display area.Collection
of graphics inside the rectangle.public Collection<IlvGraphic> getGraphicsIntersects(Rectangle2D rect)
activities
,
the graphics can be activity graphics
and/or
constraint graphics
. In a Schedule chart,
where the rows are organized by
resources
,
the graphics can be reservation graphics
or
constraint graphics
.rect
- The rectangle, relative to the display area.Collection
of graphics intersecting the rectangle.public Iterator<IlvActivityGraphic> activityGraphicsIterator()
activity graphics
in the Gantt sheet. The iteration includes both the graphics that are
visible and those that are hidden. The iterator will traverse over a copy
of the collection of graphics.IlvActivityGraphic
s.public Iterator<IlvActivityGraphic> activityGraphicsIterator(IlvActivity activity)
activity graphics
representing the specified activity in the Gantt sheet. The
iteration includes both the graphics that are visible and those that are
hidden.activity
- The activity.IlvActivityGraphic
s.public Collection<IlvActivityGraphic> getActivityGraphics()
activity graphics
in the Gantt sheet. The collection of graphics includes both those
that are visible and those that are hidden. The collection will be a
copy of the graphics in the sheet.IlvActivityGraphic
s.public IlvActivityGraphic getActivityGraphic(IlvActivity activity)
activity graphic
representing
the specified activity in the Gantt sheet. The graphic may be
visible or it may be hidden.activity
- The activity.null
if none could be found.public void setActivityRenderer(IlvActivity activity, IlvActivityRenderer renderer)
activity graphics
representing the specified activity in the Gantt sheet. This
includes both the activity graphics that are visible and those that are
hidden.activity
- The activity.renderer
- The new activity renderer.public IlvReservationGraphic getReservationGraphic(IlvReservation reservation)
IlvReservationGraphic
representing the given
IlvReservation
.public void setReservationRenderer(IlvReservation reservation, IlvActivityRenderer renderer)
reservation
- The specified activity.renderer
- The new activity renderer.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
to be drawn 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 Iterator<IlvConstraintGraphic> constraintGraphicsIterator()
constraint graphics
in the Gantt sheet. The iterator will traverse over a copy of the
collection of graphics.IlvConstraintGraphic
s.public Collection<IlvConstraintGraphic> getConstraintGraphics()
constraint graphics
in the Gantt sheet. The collection will be
a copy of the graphics in the sheet.IlvConstraintGraphic
s.public IlvConstraintGraphic getConstraintGraphic(IlvConstraint constraint)
constraint graphic
representing
the specified constraint in the Gantt sheet.constraint
- The constraint.IlvConstraintGraphic
.public void replaceConstraintGraphic(IlvConstraintGraphic oldGraphic, IlvConstraintGraphic newGraphic, boolean redraw)
constraint graphic
in the Gantt
sheet with another one.oldGraphic
- The old constraint graphic that must be in this Gantt
sheet.newGraphic
- The new constraint graphic.redraw
- If true
, the graphics are redrawn.public IlvTimeConverter getTimeConverter()
IlvTimeConverter
.setTimeConverter(ilog.views.gantt.graphic.IlvTimeConverter)
public void setTimeConverter(IlvTimeConverter timeConverter)
timeConverter
- the IlvTimeConverter
.getTimeConverter()
public IlvActivityLayout getActivityLayout()
setActivityLayout(IlvActivityLayout)
public void setActivityLayout(IlvActivityLayout activityLayout)
activityLayout
- The activity layout.getActivityLayout()
public IlvGanttGridRenderer getHorizontalGrid()
IlvGanttGridRenderer
.setHorizontalGrid(ilog.views.gantt.graphic.grid.IlvGanttGridRenderer)
public void setHorizontalGrid(IlvGanttGridRenderer grid)
grid
- the IlvGanttGridRenderer
.getHorizontalGrid()
public IlvGanttGridRenderer getVerticalGrid()
IlvGanttGridRenderer
.setVerticalGrid(ilog.views.gantt.graphic.grid.IlvGanttGridRenderer)
public void setVerticalGrid(IlvGanttGridRenderer grid)
grid
- the IlvGanttGridRenderer
.getVerticalGrid()
public int getRowHeight()
public void setRowHeight(int rowHeight)
rowHeight
- The row height.public void addTimeIndicator(IlvTimeIndicator timeIndicator)
time indicator
to the Gantt sheet.timeIndicator
- The time indicator to be added.public void removeTimeIndicator(IlvTimeIndicator timeIndicator)
time indicator
from the Gantt sheet.timeIndicator
- The time indicator to be removed.public Iterator<IlvTimeIndicator> timeIndicatorsIterator()
time indicator graphics
in the Gantt sheet. The iterator will traverse over a copy of the
collection of graphics.IlvTimeIndicator
objects.public Collection<IlvTimeIndicator> getTimeIndicators()
time indicator graphics
in the Gantt sheet. The collection will be
a copy of the graphics in the sheet.IlvTimeIndicator
objects.public IlvTimeIndicator getTimeIndicator(Date date)
time indicator graphic
representing
the specified date, or the current date in the Gantt sheet.
For the current date, the date
parameter should be
null
.date
- The time or null
for the current time.public void replaceTimeIndicator(IlvTimeIndicator oldGraphic, IlvTimeIndicator newGraphic, boolean redraw)
time indicator graphic
in the
Gantt sheet with another one.oldGraphic
- The old time indicator graphic, which must be in
this Gantt sheet.newGraphic
- The new time indicator graphic.redraw
- If true
, the graphics will be redrawn.public Date getMinVisibleTime()
getMinVisibleTime
in interface IlvTimeScrollable
null
if the Gantt sheet
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(ilog.views.gantt.IlvTimeInterval, java.util.Date, java.util.Date, ilog.views.gantt.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 Gantt
sheet to unbounded scrolling mode.getMinVisibleTime()
public Date getMaxVisibleTime()
getMaxVisibleTime
in interface IlvTimeScrollable
null
if the Gantt sheet
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(ilog.views.gantt.IlvTimeInterval, java.util.Date, java.util.Date, ilog.views.gantt.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 Gantt
sheet 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(ilog.views.gantt.IlvTimeInterval, java.util.Date, java.util.Date, ilog.views.gantt.IlvDuration)
method. The
subsequent change in the sheet's transformer then fires a
VisibleTimeChangedEvent
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
IlvDuration
.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(ilog.views.gantt.IlvTimeInterval, java.util.Date, java.util.Date, ilog.views.gantt.IlvDuration)
method. The
subsequent change in the sheet's transformer then fires a
VisibleDurationChangedEvent
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
IlvTimeInterval
.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(ilog.views.gantt.IlvTimeInterval, java.util.Date, java.util.Date, ilog.views.gantt.IlvDuration)
method. The
subsequent change in the sheet's transformer then fires both a
VisibleTimeChangedEvent
and a VisibleDurationChangedEvent
to all registered listeners
.setVisibleInterval
in interface IlvTimeScrollable
time
- The new time value.duration
- The new duration value.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)
protected void fireVisibleTimeChanged(boolean adjusting)
adjusting
- true
if a VisibleDurationChangedEvent
will immediately follow the VisibleTimeChangedEvent
.protected void fireVisibleDurationChanged()
public void beginRedrawSession(boolean redrawSheet)
endRedrawSession()
.
Redraw sessions can be nested, graphical damage is accumulated, and the Gantt sheet
is redrawn when the outermost enclosing session is ended. The
redrawSheet
argument indicates whether the entire Gantt sheet is
repainted when the final redraw session terminates or whether damage is accumulated
for individual graphics and only the damaged region of the sheet is repainted.
Redraw sessions are designed to improve performance during batch updates to the Gantt data model and/or the styling of activities, constraints, and reservations. For performance reasons, the activity layout of the Gantt sheet is suspended during redraw sessions and graphics are not guaranteed to have valid bounding boxes. Because of this, during a redraw session it is not recommended to perform any translation or zooming changes on the Gantt sheet that depend on knowledge of activity graphic or Gantt row positioning.
redrawSheet
- Indicates whether the entire Gantt sheet is repainted when the
final redraw session terminates. If a redraw session is already
active for the entire sheet, then the value of this argument is
ignored.public void endRedrawSession()
beginRedrawSession(boolean)
.
If the redraw session that is ended was the outermost one, then the Gantt
sheet will be redrawn and all accumulated graphical damage will be repaired.public void paint(Graphics g)
paint
method of
the super class.paint
in class IlvManagerView
g
- the graphic.setVisibleTime(java.util.Date)
,
setVisibleDuration(ilog.views.gantt.IlvDuration)
public void print(Graphics dst, IlvRect area, IlvTransformer t)
Graphics
. This method calls the print
method of
the attached IlvManager
.dst
- The destination Graphics
.area
- The rectangular area to print, in manager coordinates.t
- The transformer used to print the contents.IlvManagerView.print(Graphics, IlvRect, IlvTransformer, boolean, boolean)
public void print(Graphics dst, Rectangle viewport, IlvTransformer t)
Graphics
. This method calls the print
method of
the attached IlvManager
.dst
- The destination Graphics
.viewport
- The view port in Graphics
coordinates.t
- The transformer used to print the contents.IlvManagerView.print(Graphics, IlvRect, IlvTransformer, boolean, boolean)
public void print(Graphics dst, Rectangle viewport, IlvTransformer t, boolean includeBackground)
Graphics
. This method calls the print
method of
the attached IlvManager
.dst
- The destination Graphics
.viewport
- The view port in Graphics
coordinates.t
- The transformer used to print the contents.includeBackground
- If true
the background will be
painted.IlvManagerView.print(Graphics, IlvRect, IlvTransformer, boolean, boolean)
public boolean isConstantZoomFactorOnWidthChange()
false
, the visible duration of the Gantt Sheet will remain
the same and its zoom factor will be modified when the width of the sheet
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 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 sheet resizes. If false
,
the visible duration stays the same and the zoom factor changes.isConstantZoomFactorOnWidthChange()
protected void widthChanged(int width)
width
- The width of the Gantt sheet, less its horizontal insets.public void verifyTransformer()
protected void transformerChanged(IlvTransformer newTransformer, IlvTransformer oldTransformer)
transformerChanged
in class IlvManagerView
newTransformer
- The new transformer.oldTransformer
- The previous transformer.IlvManagerView.addTransformerListener(ilog.views.event.TransformerListener)
,
IlvManagerView.removeTransformerListener(ilog.views.event.TransformerListener)
public void translate(double deltax, double deltay, boolean redraw)
translate
in class IlvManagerView
deltax
- The x translation in the view coordinate system.deltay
- The y translation in the view coordinate system.redraw
- If true
, the view is redrawn.IlvManagerView.isOptimizedTranslation()
public void ensureVisible(IlvGraphic graphic, int margin)
Scrolls the Gantt sheet if necessary to ensure that the specified graphic is visible to the user. Note that this method does not zoom the view, but only translates it. Along the X axis, the specified margin is added to both sides of the graphic. If the graphic is too wide to be made completely visible in the Gantt sheet, preference is given to the leading edge specified according to the sheet's component orientation. Along the Y axis, the Gantt sheet is scrolled vertically so that the topmost and bottommost rows that the graphic intersects are both visible. If the graphic is too high to be made completely visible in the Gantt sheet, preference is given to the top of the graphic.
Use IlvHierarchyChart.makeRowDisplayed(IlvHierarchyNode)
or IlvGanttConfiguration.makeRowDisplayed(IlvHierarchyNode)
instead if you
only want to scroll a specific row vertically to make it visible in the Gantt sheet.
Similarly, if you want to zoom horizontally to make graphics visible, use the IlvManagerView.fitTransformerToContent(Insets)
or IlvManagerView.fitTransformerToArea(Insets,
FitAreaCalculator, int)
methods.
graphic
- The graphic.margin
- The margin around the graphic, in pixels.IlvManagerView.ensureVisible(IlvRect)
,
IlvManagerView.ensureVisible(IlvPoint)
protected void fitTransformerToAreaImpl(Insets insets, IlvManagerView.FitAreaCalculator areaCalculator, int maxNumberOfIterations, boolean callchanged)
IlvManagerView.fitTransformerToArea(Insets, FitAreaCalculator, int)
and of
IlvManagerView.computeTransformerFitToArea(Insets, FitAreaCalculator, int)
.fitTransformerToAreaImpl
in class IlvManagerView
public void addAccelerator(IlvAccelerator a)
a
- The accelerator to be added.removeAccelerator(ilog.views.IlvAccelerator)
public void removeAccelerator(IlvAccelerator a)
a
- The accelerator to be removed.addAccelerator(ilog.views.IlvAccelerator)
public boolean isPopupMenusEnabled()
true
if pop-up menus are enabled for the Gantt sheet.
The default value is false
.setPopupMenusEnabled(boolean)
public void setPopupMenusEnabled(boolean enable)
enable
- The enabled state of the pop-up menus.isPopupMenusEnabled()
,
IlvPopupMenuManager
public IlvHoverHighlightingImageOperation getHoverHighlightingImageOperation()
null
is returned.setHoverHighlightingImageOperation(IlvHoverHighlightingImageOperation)
,
getHoverHighlightingMode()
public void setHoverHighlightingImageOperation(IlvHoverHighlightingImageOperation hoverHighlightingImageOperation)
This method installs a specialized interactor on the Gantt sheet which highlights the object situated at the mouse location. This is done through an image operation while drawing the object.
To set one
of the predefined hover highlighting modes, call setHoverHighlightingMode(int)
instead. The default value is null
.
hoverHighlightingImageOperation
- The hover highlighting operation or null
.getHoverHighlightingImageOperation()
,
setHoverHighlightingMode(int)
public int getHoverHighlightingMode()
HH_NONE
HH_INVERT_COLORS
HH_BLUR
HH_BRIGHTEN
HH_GRAYSCALE
HH_SHARPEN
HH_CUSTOM
In that case, getHoverHighlightingImageOperation()
returns the operation
used.setHoverHighlightingMode(int)
,
getHoverHighlightingImageOperation()
public void setHoverHighlightingMode(int mode)
setHoverHighlightingImageOperation(IlvHoverHighlightingImageOperation)
instead.mode
- One of the following predefined values:
HH_NONE
(the default value)HH_INVERT_COLORS
HH_BLUR
HH_BRIGHTEN
HH_GRAYSCALE
HH_SHARPEN
getHoverHighlightingMode()
,
setHoverHighlightingImageOperation(IlvHoverHighlightingImageOperation)
public boolean isToolTipsEnabled()
true
if tooltips are enabled for the Gantt sheet.
The default value is false
.setToolTipsEnabled(boolean)
public void setToolTipsEnabled(boolean enable)
enable
- the tooltips enabled state.isToolTipsEnabled()
,
IlvToolTipManager
public boolean isParentActivityMovable()
false
, the activity graphics that
represent parent activities are considered as not movable. These activity
graphics can be selected but cannot be moved by interactors.setParentActivityMovable(boolean)
public void setParentActivityMovable(boolean movable)
movable
- if parent activities are movable.isParentActivityMovable()
public boolean isParentActivityEditable()
false
, the activity graphics
representing parent activities are considered as not editable. These
activity graphics can be selected but cannot be resized by interactors.setParentActivityEditable(boolean)
public void setParentActivityEditable(boolean editable)
editable
- if parent activities are editable.isParentActivityEditable()
public boolean isMilestoneConversionAllowed()
true
if it is possible, through interactive editing,
to convert milestones into activities with non-empty time interval or vice
versa. Returns false
if milestones stay milestones and
real activities stay real activities.setMilestoneConversionAllowed(boolean)
public void setMilestoneConversionAllowed(boolean allowed)
allowed
- whether such conversion is allowed.isMilestoneConversionAllowed()
public boolean isRefreshParentActivityRenderer()
true
. The activity renderer is refreshed by calling the
createActivityRenderer()
method of the Gantt sheet
activity-renderer factory.setRefreshParentActivityRenderer(boolean)
public void setRefreshParentActivityRenderer(boolean update)
update
- if an activity renderer should be refreshed.isRefreshParentActivityRenderer()
public boolean isRefreshMilestoneRenderer()
true
, the activity
renderer will be refreshed by calling the
createActivityRenderer()
method of the Gantt sheet
activity-renderer factory.
Conversely, when a milestone becomes a normal activity, its renderer
will be refreshed if this function returns true
.
Note: This mechanism applies only to leaf activities that have no children.
setRefreshMilestoneRenderer(boolean)
public void setRefreshMilestoneRenderer(boolean update)
null
to non-null
or vice versa.update
- if an activity renderer should be refreshed.isRefreshMilestoneRenderer()
public IlvGanttGridContext createGridContext()
IlvGanttGridContext
for the
Gantt sheet. The created Gantt grid context can be used to draw
grids for the Gantt sheet.IlvGanttGridContext
.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.