JIDE 3.5.15

com.jidesoft.gantt
Interface GanttLabelRenderer

All Known Implementing Classes:
DefaultGanttLabelRenderer

public interface GanttLabelRenderer

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


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

Method Detail

getGanttLabelRendererComponent

@Deprecated
Component getGanttLabelRendererComponent(GanttChart<?,?> chart,
                                                    GanttEntry<?> entry,
                                                    boolean isSelected,
                                                    boolean hasFocus,
                                                    int row)
Deprecated. replaced by getGanttLabelRendererComponent(GanttChart, GanttEntry, boolean, boolean, int, int)

Creates the component used for painting the label for 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.
Returns:
the component that will be used to render the gantt entry.

getGanttLabelRendererComponent

Component getGanttLabelRendererComponent(GanttChart<?,?> chart,
                                         GanttEntry<?> entry,
                                         boolean isSelected,
                                         boolean hasFocus,
                                         int row,
                                         int column)
Creates the component used for painting the label for 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 column index of the sub entry. -1 if there is no sub entry
Returns:
the component that will be used to render the gantt entry.

JIDE 3.5.15