JIDE 3.5.15

com.jidesoft.gantt
Interface GanttEntryRenderer

All Known Implementing Classes:
DefaultGanttEntryRenderer

public interface GanttEntryRenderer

This interface defines the method required by any object that would like to be a renderer for GanttEntry in a GanttCart.


Method Summary
 Component getGanttEntryRendererComponent(GanttChart<?,?> chart, GanttEntry<?> entry, boolean isSelected, boolean hasFocus, int row, Insets insets)
          Deprecated. replaced by getGanttEntryRendererComponent(GanttChart, GanttEntry, boolean, boolean, int, int, java.awt.Insets) )
 Component getGanttEntryRendererComponent(GanttChart<?,?> chart, GanttEntry<?> entry, boolean isSelected, boolean hasFocus, int row, int column, Insets insets)
          Creates the component used for painting the gantt entry.
 

Method Detail

getGanttEntryRendererComponent

@Deprecated
Component getGanttEntryRendererComponent(GanttChart<?,?> chart,
                                                    GanttEntry<?> entry,
                                                    boolean isSelected,
                                                    boolean hasFocus,
                                                    int row,
                                                    Insets insets)
Deprecated. replaced by getGanttEntryRendererComponent(GanttChart, GanttEntry, boolean, boolean, int, int, java.awt.Insets) )

Creates the component used for painting the gantt entry. This method is used to configure the renderer appropriately before drawing.

Parameters:
chart - the GanttChart that is asking the renderer to draw; can be null
entry - the GanttEntry of the cell to be rendered. It is up to the specific renderer to interpret and draw the value.
isSelected - true if the gantt entry is to be rendered with the selection highlighted; otherwise false
hasFocus - if true, render gantt entry appropriately. For example, put a special border on the cell, if the cell can be edited, render in the color used to indicate editing
row - the row index of the GanttEntry being drawn.
insets - the padding around the renderer component.
Returns:
the component that will be used to render the gantt entry.

getGanttEntryRendererComponent

Component getGanttEntryRendererComponent(GanttChart<?,?> chart,
                                         GanttEntry<?> entry,
                                         boolean isSelected,
                                         boolean hasFocus,
                                         int row,
                                         int column,
                                         Insets insets)
Creates the component used for painting the gantt entry. This method is used to configure the renderer appropriately before drawing.

Parameters:
chart - the GanttChart that is asking the renderer to draw; can be null
entry - the GanttEntry of the cell to be rendered. It is up to the specific renderer to interpret and draw the value.
isSelected - true if the gantt entry is to be rendered with the selection highlighted; otherwise false
hasFocus - if true, render gantt entry appropriately. For example, put a special border on the cell, if the cell can be edited, render in the color used to indicate editing
row - the row index of the GanttEntry being drawn.
column - the index of the sub entry being drawn. -1 if it is not an sub entry.
insets - the padding around the renderer component.
Returns:
the component that will be used to render the gantt entry.

JIDE 3.5.15