public interface ITimelineObjectRenderer extends IRenderer
TimelineObjectLayer
. The Gantt
chart configuration object allows the application to map different renderers
to different object types.LayerContainer.setTimelineObjectRenderer(Class, ITimelineObjectRenderer)
Modifier and Type | Method and Description |
---|---|
Component |
getTimelineObjectRendererComponent(TimelineObjectLayer layer,
TimelineObjectPath path,
boolean selected,
boolean focus,
boolean highlighted,
int row)
Returns a component that will be used to renderer the given timeline
object.
|
Insets |
getTimelineObjectRendererInsets(int x,
int y,
int width,
int height)
Returns the insets of the object renderer.
|
Component getTimelineObjectRendererComponent(TimelineObjectLayer layer, TimelineObjectPath path, boolean selected, boolean focus, boolean highlighted, int row)
layer
- the layer in which the timeline object will be renderedpath
- the path to the timeline object that gets renderedselected
- if TRUE the object is currently selected and the rendering
needs to express thatfocus
- if TRUE the focus is currently on the timeline object and the
rendering needs to express thathighlighted
- if TRUE the timeline object is highlighted and its appearance
needs to vary from its normal appearance (causing a blinking
effect)row
- the row in which the object gets drawnInsets getTimelineObjectRendererInsets(int x, int y, int width, int height)
DefaultActivityObjectRenderer
).x
- the x-coordinate of the bounds that will be assigned to the
renderer componenty
- the y-coordinate of the bounds that will be assigned to the
renderer componentwidth
- the width of the bounds that will be assigned to the renderer
componentheight
- the height of the bounds that will be assigned to the renderer
componentCopyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.