public interface IRowRenderer extends IRenderer
LayerContainer
of the Gantt chart. Row renderers are
mapped to classes of Gantt chart nodes. A node representing a resource (for
example a machine) might use a row renderer to visualize the available
capacity of the resource while timeline object renderers are used to
visualize the actual usage.RowLayer.setRowRenderer(Class, IRowRenderer)
Modifier and Type | Method and Description |
---|---|
Component |
getRowRendererComponent(RowLayer layer,
Object node,
boolean selected,
int row,
ITimeSpan span,
boolean hasFocus)
Returns a component that will be used for renderering additional
information about a row (for example resource capacity lines).
|
Component getRowRendererComponent(RowLayer layer, Object node, boolean selected, int row, ITimeSpan span, boolean hasFocus)
Integer.MAX_VALUE
). The
rendering routine needs to use the clipping information for its paint
operations to guarantee high performance.layer
- the layer component that will lookup the renderer and call its
paint methodnode
- the tree table / Gantt chart node for the given rowselected
- a flag indicating whether the row is currently selected on the
left-hand side. Usually selections are only visualized in the
tree table but row renderers are free to choose whether they
would also like to visualize itrow
- the row for which a renderer component gets requestedspan
- the time span that needs to be painted. This span is not
equivalent to the entire span of the Gantt chart. It is the
time span that covers the clip that needs to be painted.hasFocus
- a flag indicating whether the row currently has the focus (the
mouse cursor hovers on top of it)Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.