|
||||||||||
![]() |
FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--ilog.views.IlvManagerView
|
+--ilog.views.gantt.graphic.IlvGanttSheet
The 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 ILOG 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.
| Inner classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Inner classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent,
Component.BltBufferStrategy,
Component.FlipBufferStrategy |
| Field Summary | |
static int |
CASCADE_ACTIVITY_LAYOUT
The activity graphics in a Gantt row will be displayed in cascade. |
static int |
PRETTY_ACTIVITY_LAYOUT
This field is similar to CASCADE_ACTIVITY_LAYOUT, except that
the z-order, the order in which the activity graphics are displayed, is
adjusted so that activity graphics that have a smaller y position
are displayed first. |
static int |
SIMPLE_ACTIVITY_LAYOUT
The activity graphics in a Gantt row will be arranged to have the same y position and the same height. |
static int |
TILE_ACTIVITY_LAYOUT
The activity graphics in a Gantt row will be tiled. |
| Fields inherited from class ilog.views.IlvManagerView |
DIRECT_REDRAW,
THREADED_REDRAW |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
| Constructor Summary | |
IlvGanttSheet()
Creates a new IlvGanttSheet. |
|
| Method Summary | |
Iterator |
activityGraphicsIterator()
Returns an iterator over all the activity graphics in the Gantt sheet. |
void |
addTimeScrollListener(TimeScrollListener listener)
Adds the specified listener to receive time scroll events from this Gantt sheet. |
Iterator |
constraintGraphicsIterator()
Returns an iterator over all the constraint graphics in the Gantt sheet. |
IlvGanttGridContext |
createGridContext()
This function creates an IlvGanttGridContext for the
Gantt sheet. |
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. |
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 |
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. |
Collection |
getActivityGraphics()
Returns a collection of all the activity graphics in the Gantt sheet. |
IlvActivityGraphic[] |
getActivityGraphics(IlvActivity activity)
Returns an array of the activity graphics representing the specified activity in the Gantt sheet. |
int |
getActivityLayout()
Returns the activity layout used for activity rows in the sheet. |
IlvActivityRendererFactory |
getActivityRendererFactory()
Returns the activity-renderer factory used to create activity graphics. |
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. |
Collection |
getConstraintGraphics()
Returns a collection of all the constraint graphics in the Gantt sheet. |
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 |
getGraphicsInside(Rectangle2D rect)
Returns a collection of the graphics that are inside the specified rectangle of the Gantt sheet. |
Collection |
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. |
Date |
getMaxVisibleTime()
Returns the maximum time that the Gantt sheet can show in bounded scrolling mode. |
Date |
getMinVisibleTime()
Returns the minimum time that the Gantt sheet can show in bounded scrolling mode. |
IlvReservationFactory |
getReservationFactory()
Returns the reservation factory for creating reservations. |
IlvReservationGraphic |
getReservationGraphic(IlvReservation reservation)
Returns the IlvReservationGraphic representing the given
IlvReservation. |
IlvResourceFactory |
getResourceFactory()
Returns the registered resource factory for creating resources. |
int |
getRowHeight()
Returns the row height. |
IlvTimeConverter |
getTimeConverter()
Returns the time converter. |
IlvGanttGridRenderer |
getVerticalGrid()
Returns the vertical grid renderer of the Gantt sheet. |
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 |
isConstraintLayerVisible()
Returns whether the constraint layer is visible. |
boolean |
isDisplayingConstraints()
Returns whether the Gantt sheet is displaying constraints. |
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 |
isParentActivityMoveable()
Deprecated. Use isParentActivityMovable() instead. |
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 |
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 |
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 |
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(int 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 |
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 |
setConstraintLayerVisible(boolean visible)
Changes the visibility of the 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 |
setMaxVisibleTime(Date max)
Sets the maximum time that the Gantt sheet can show in bounded scrolling mode. |
void |
setMinVisibleTime(Date min)
Sets the minimum time that the Gantt sheet can show in bounded scrolling mode. |
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 |
setParentActivityMoveable(boolean movable)
Deprecated. Use setParentActivityMovable(boolean) instead. |
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 the row height. |
void |
setTimeConverter(IlvTimeConverter timeConverter)
Sets the time converter. |
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. |
protected void |
transformerChanged(IlvTransformer newTransformer,
IlvTransformer oldTransformer)
This method is called when the transformer changes. |
void |
translate(float deltax,
float deltay,
boolean redraw)
Translates the view. |
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. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final int SIMPLE_ACTIVITY_LAYOUT
IlvGanttRow.getActivityHeight(),
IlvGanttRow.getTopMargin(),
CASCADE_ACTIVITY_LAYOUT,
TILE_ACTIVITY_LAYOUT,
PRETTY_ACTIVITY_LAYOUT,
getActivityLayout(),
setActivityLayout(int)public static final int TILE_ACTIVITY_LAYOUT
SIMPLE_ACTIVITY_LAYOUT,
CASCADE_ACTIVITY_LAYOUT,
PRETTY_ACTIVITY_LAYOUT,
getActivityLayout(),
setActivityLayout(int)public static final int CASCADE_ACTIVITY_LAYOUT
SIMPLE_ACTIVITY_LAYOUT,
CASCADE_ACTIVITY_LAYOUT,
TILE_ACTIVITY_LAYOUT,
PRETTY_ACTIVITY_LAYOUT,
getActivityLayout(),
setActivityLayout(int)public static final int PRETTY_ACTIVITY_LAYOUT
CASCADE_ACTIVITY_LAYOUT, except that
the z-order, the order in which the activity graphics are displayed, is
adjusted so that activity graphics that have a smaller y position
are displayed first.SIMPLE_ACTIVITY_LAYOUT,
CASCADE_ACTIVITY_LAYOUT,
TILE_ACTIVITY_LAYOUT,
getActivityLayout(),
setActivityLayout(int)| Constructor Detail |
public IlvGanttSheet()
IlvGanttSheet.| Method Detail |
public final IlvGanttConfiguration getGanttConfiguration()
public final IlvGanttModel getGanttModel()
public IlvActivityRendererFactory getActivityRendererFactory()
IlvDefaultActivityRendererFactory.setActivityRendererFactory(ilog.views.gantt.graphic.IlvActivityRendererFactory)public void setActivityRendererFactory(IlvActivityRendererFactory factory)
getActivityRendererFactory()public IlvConstraintGraphicFactory getConstraintGraphicFactory()
IlvDefaultConstraintGraphicFactory.setConstraintGraphicFactory(ilog.views.gantt.graphic.IlvConstraintGraphicFactory)public void setConstraintGraphicFactory(IlvConstraintGraphicFactory factory)
getConstraintGraphicFactory()public IlvConstraintFactory getConstraintFactory()
IlvMakeConstraintInteractor.setConstraintFactory(ilog.views.gantt.IlvConstraintFactory)public void setConstraintFactory(IlvConstraintFactory factory)
IlvMakeConstraintInteractor.getConstraintFactory()public IlvActivityFactory getActivityFactory()
IlvMakeActivityInteractor.setActivityFactory(ilog.views.gantt.IlvActivityFactory)public void setActivityFactory(IlvActivityFactory factory)
IlvMakeActivityInteractor.getActivityFactory()public IlvReservationFactory getReservationFactory()
IlvMakeActivityInteractor.setReservationFactory(ilog.views.gantt.IlvReservationFactory)public void setReservationFactory(IlvReservationFactory factory)
IlvMakeActivityInteractor.getReservationFactory()public IlvResourceFactory getResourceFactory()
setResourceFactory(ilog.views.gantt.IlvResourceFactory)public void setResourceFactory(IlvResourceFactory factory)
getResourceFactory()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()public boolean isConstraintLayerVisible()
true.setConstraintLayerVisible(boolean)public void setConstraintLayerVisible(boolean visible)
visible - The visibility of the constraint layer.isConstraintLayerVisible()public void setExpandableGanttConfigurationImpl(IlvGanttConfiguration ganttConfig)
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.
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)
event - The event.public void rowsInserted(RowsInsertedEvent event)
event - The event.public void rowsRemoved(RowsRemovedEvent event)
event - The event.public void rowMoved(RowMovedEvent event)
event - The event.public void rowExpanded(RowExpandedEvent event)
event - The event.public void rowCollapsed(RowCollapsedEvent event)
event - The event.public void rowHeightChanged(RowHeightChangedEvent event)
event - The event.public int getGanttRowCount()
public Iterator ganttRowIterator()
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.public int getVisibleGanttRowIndex(IlvGanttRow ganttRow)
ganttRow - The Gantt row.public IlvGanttRow getGanttRowByIdentifier(IlvHierarchyNode node)
node - The given node.public IlvGanttRow ganttRowFromPosition(int y)
null if there is no row at this position.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.public Collection getGraphicsInside(Rectangle2D rect)
rect - The rectangle, relative to the display area.public Collection getGraphicsIntersects(Rectangle2D rect)
rect - The rectangle, relative to the display area.public Iterator activityGraphicsIterator()
IlvActivityGraphics.public Collection getActivityGraphics()
IlvActivityGraphics.public IlvActivityGraphic[] getActivityGraphics(IlvActivity activity)
activity - The activity.null if no activity graphics
are found.public IlvActivityGraphic getActivityGraphic(IlvActivity activity)
activity - The activity.null if none could be found.
public void setActivityRenderer(IlvActivity activity,
IlvActivityRenderer renderer)
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 Iterator constraintGraphicsIterator()
IlvConstraintGraphics.public Collection getConstraintGraphics()
IlvConstraintGraphics.public IlvConstraintGraphic getConstraintGraphic(IlvConstraint constraint)
constraint - The constraint.
public void replaceConstraintGraphic(IlvConstraintGraphic oldGraphic,
IlvConstraintGraphic newGraphic,
boolean redraw)
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()
setTimeConverter(ilog.views.gantt.graphic.IlvTimeConverter)public void setTimeConverter(IlvTimeConverter timeConverter)
getTimeConverter()public int getActivityLayout()
SIMPLE_ACTIVITY_LAYOUT,
CASCADE_ACTIVITY_LAYOUT,
TILE_ACTIVITY_LAYOUT,
PRETTY_ACTIVITY_LAYOUT,
setActivityLayout(int)public void setActivityLayout(int activityLayout)
SIMPLE_ACTIVITY_LAYOUT,
CASCADE_ACTIVITY_LAYOUT,
TILE_ACTIVITY_LAYOUT,
PRETTY_ACTIVITY_LAYOUT,
getActivityLayout()public IlvGanttGridRenderer getHorizontalGrid()
setHorizontalGrid(ilog.views.gantt.graphic.grid.IlvGanttGridRenderer)public void setHorizontalGrid(IlvGanttGridRenderer grid)
getHorizontalGrid()public IlvGanttGridRenderer getVerticalGrid()
setVerticalGrid(ilog.views.gantt.graphic.grid.IlvGanttGridRenderer)public void setVerticalGrid(IlvGanttGridRenderer grid)
getVerticalGrid()public int getRowHeight()
public void setRowHeight(int rowHeight)
public Date getMinVisibleTime()
null if the Gantt sheet
is in unbounded scrolling mode.setMinVisibleTime(java.util.Date)public void setMinVisibleTime(Date min)
IlvTimeScrollUtil.trimInterval(ilog.views.gantt.IlvTimeScrollable, ilog.views.gantt.IlvTimeInterval) method. A
minVisibleTimeChanged event
is then fired to all registered listeners. If
min > maxVisibleTime an IllegalArgumentException
will be thrown.min - The minimum visible time or null to set the Gantt sheet
to unbounded scrolling mode.getMinVisibleTime()public Date getMaxVisibleTime()
null if the Gantt sheet
is in unbounded scrolling mode.setMaxVisibleTime(java.util.Date)public void setMaxVisibleTime(Date max)
IlvTimeScrollUtil.trimInterval(ilog.views.gantt.IlvTimeScrollable, ilog.views.gantt.IlvTimeInterval) method. A
maxVisibleTimeChanged event
is then fired to all registered listeners. If
max < minVisibleTime an IllegalArgumentException
will be thrown.max - The maximum visible time or null to set the Gantt sheet
to unbounded scrolling mode.getMaxVisibleTime()public Date getVisibleTime()
setVisibleTime(java.util.Date)public void setVisibleTime(Date time)
IlvTimeScrollUtil.trimInterval(ilog.views.gantt.IlvTimeScrollable, ilog.views.gantt.IlvTimeInterval) 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.time - The new time value.getVisibleTime()public IlvDuration getVisibleDuration()
setVisibleDuration(ilog.views.gantt.IlvDuration)public void setVisibleDuration(IlvDuration duration)
IlvTimeScrollUtil.trimInterval(ilog.views.gantt.IlvTimeScrollable, ilog.views.gantt.IlvTimeInterval) 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.duration - The new duration value.getVisibleDuration()public IlvTimeInterval getVisibleInterval()
setVisibleInterval(java.util.Date, ilog.views.gantt.IlvDuration)
public void setVisibleInterval(Date time,
IlvDuration duration)
IlvTimeScrollUtil.trimInterval(ilog.views.gantt.IlvTimeScrollable, ilog.views.gantt.IlvTimeInterval) method. The
subsequent change in the sheet's transformer then fires both a
VisibleTimeChangedEvent and a VisibleDurationChangedEvent
to all registered listeners.time - The new time value.duration - The new duration value.public void addTimeScrollListener(TimeScrollListener listener)
listener - The listener that will be subscribed to subsequent time
scroll events.removeTimeScrollListener(ilog.views.gantt.event.TimeScrollListener)public void removeTimeScrollListener(TimeScrollListener listener)
listener - The listener that will be unsubscribed from receiving
time scroll events.addTimeScrollListener(ilog.views.gantt.event.TimeScrollListener)protected void fireVisibleTimeChanged(boolean adjusting)
protected void fireVisibleDurationChanged()
public void paint(Graphics g)
paint method of
the super class.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.IlvManager.print(java.awt.Graphics, ilog.views.IlvRect, ilog.views.IlvManagerView, ilog.views.IlvTransformer, 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.IlvManager.print(java.awt.Graphics, ilog.views.IlvRect, ilog.views.IlvManagerView, ilog.views.IlvTransformer, boolean)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)
newTransformer - The new transformer.oldTransformer - The previous transformer.IlvManagerView.addTransformerListener(ilog.views.event.TransformerListener),
IlvManagerView.removeTransformerListener(ilog.views.event.TransformerListener)
public void translate(float deltax,
float deltay,
boolean redraw)
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.public boolean isToolTipsEnabled()
true if tooltips are enabled for the Gantt sheet. The
default value is false.setToolTipsEnabled(boolean)public void setToolTipsEnabled(boolean enable)
isToolTipsEnabled(),
IlvToolTipManagerpublic 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)
isParentActivityMovable()public boolean isParentActivityMoveable()
isParentActivityMovable() instead.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.public void setParentActivityMoveable(boolean movable)
setParentActivityMovable(boolean) instead.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)
isParentActivityEditable()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)
isRefreshParentActivityRenderer()public boolean isRefreshMilestoneRenderer()
null,
the start and end times become identical.
The activity is then called a milestone. If this function
returns 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.isRefreshMilestoneRenderer()public IlvGanttGridContext createGridContext()
IlvGanttGridContext for the
Gantt sheet. The created Gantt grid context can be used to draw
grids for the Gantt sheet.
|
||||||||||
![]() |
FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||