public class CalendarLayer extends AbstractSystemLayer
AbstractGanttChart.getCalendarModel()
alpha, changeSupport, ganttChart, layerContainer, PROPERTY_ALPHA, PROPERTY_VISIBLE
Constructor and Description |
---|
CalendarLayer(LayerContainer lc)
Constructs a new background layer.
|
Modifier and Type | Method and Description |
---|---|
ICalendarEntryRenderer |
getCalendarEntryRenderer(Class cl)
Returns a calendar entry renderer for a given entry type.
|
Map<Class,ICalendarEntryRenderer> |
getCalendarEntryRendererMap()
Returns the map storring the mappings between calendar entry types and
calendar entry renderers.
|
protected void |
paintLayer(Graphics g) |
void |
setCalendarEntryRenderer(Class objectType,
ICalendarEntryRenderer renderer)
Maps the implementation of a calendar entry renderer to a calendar object
definition.
|
void |
setCalendarEntryRendererMap(Map<Class,ICalendarEntryRenderer> map)
Sets the map storring the mappings between calendar entry types and
calendar entry renderers.
|
addPropertyChangeListener, getAlpha, getDateline, getEventline, getGanttChart, getHeight, getLayerContainer, getLayerPolicyProvider, getModel, getName, getStartRow, getTimeAt, getTimeline, getTimeLocation, getTimeSpanUsed, getToolTipText, getTreeTable, getTreeTablePolicyProvider, getWidth, isVisible, removePropertyChangeListener, repaint, repaint, repaint, setAlpha, setVisible, tearDown
public CalendarLayer(LayerContainer lc)
lc
- the parent layer containerprotected void paintLayer(Graphics g)
paintLayer
in class AbstractLayer
public void setCalendarEntryRenderer(Class objectType, ICalendarEntryRenderer renderer)
objectType
- the type of the calendar entries where the visual
representation will be rendered with the given rendererrenderer
- an implementation that will be used to renderer instances of
the given calendar entry typeDefaultCalendarEntryRenderer
,
HolidayCalendarEntry
,
WeekendCalendarEntry
public ICalendarEntryRenderer getCalendarEntryRenderer(Class cl)
cl
- the type of the calendar entry that is in need of renderingsetCalendarEntryRenderer(Class, ICalendarEntryRenderer)
,
DefaultCalendarEntryRenderer
public Map<Class,ICalendarEntryRenderer> getCalendarEntryRendererMap()
public void setCalendarEntryRendererMap(Map<Class,ICalendarEntryRenderer> map)
map
- the mapping between entries and renderersCopyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.