com.dlsc.flexgantt.swing.timeline
Interface IEventlineObjectRenderer

All Known Implementing Classes:
DefaultEventlineObjectRenderer

public interface IEventlineObjectRenderer

A renderer used for drawing eventline objects.

Since:
1.0
Author:
Dirk Lemmermann

Method Summary
 java.awt.Component getEventlineRendererComponent(Eventline eventline, java.lang.Object eventlineObject, boolean selected, boolean focus)
          Returns a renderer component for the given eventline model object.
 java.awt.Insets getEventlineRendererInsets()
          Returns the insets for the renderer.
 

Method Detail

getEventlineRendererComponent

java.awt.Component getEventlineRendererComponent(Eventline eventline,
                                                 java.lang.Object eventlineObject,
                                                 boolean selected,
                                                 boolean focus)
Returns a renderer component for the given eventline model object. The object was previously returned by an instance of IEventlineModel.

Parameters:
eventline - the eventline user interface component
eventlineObject - the object returned from the eventline data source (eventline model)
selected - a flag signalling whether the eventline object is currently selected
focus - a flag indicating whether the eventline object has the focus
Returns:
a component used to render the given eventline object
Since:
1.0

getEventlineRendererInsets

java.awt.Insets getEventlineRendererInsets()
Returns the insets for the renderer. With the help of insets the component can request to get more or less space allocated than it would just based on the object's time span.

Returns:
the renderer's insets
Since:
1.0