|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLabel
com.jidesoft.gantt.DefaultGanttLabelRenderer
public class DefaultGanttLabelRenderer
DefaultGanttLabelRenderer is a default implementation of GanttLabelRenderer using
JLabel. By default, we simply use the name of the entry as the label. Subclass can override convertEntryToString(GanttEntry) to provide a different string as the label.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JLabel |
|---|
JLabel.AccessibleJLabel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JLabel |
|---|
labelFor |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
DefaultGanttLabelRenderer()
|
|
| Method Summary | |
|---|---|
protected String |
convertEntryToString(GanttEntry<?> entry)
Converts the GanttEntry to String and set it to the JLabel. |
void |
firePropertyChange(String propertyName,
boolean oldValue,
boolean newValue)
Overridden for performance reasons. |
protected void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
Overridden for performance reasons. |
Component |
getGanttLabelRendererComponent(GanttChart<?,?> chart,
GanttEntry<?> entry,
boolean isSelected,
boolean hasFocus,
int row)
Deprecated. |
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. |
void |
invalidate()
Overridden for performance reasons. |
boolean |
isOpaque()
Overridden for performance reasons. |
void |
repaint()
Overridden for performance reasons. |
void |
repaint(long tm,
int x,
int y,
int width,
int height)
Overridden for performance reasons. |
void |
repaint(Rectangle r)
Overridden for performance reasons. |
void |
revalidate()
Overridden for performance reasons. |
void |
validate()
Overridden for performance reasons. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultGanttLabelRenderer()
| Method Detail |
|---|
@Deprecated
public Component getGanttLabelRendererComponent(GanttChart<?,?> chart,
GanttEntry<?> entry,
boolean isSelected,
boolean hasFocus,
int row)
GanttLabelRenderer
getGanttLabelRendererComponent in interface GanttLabelRendererchart - the GanttChart that is asking the renderer to draw; can be nullentry - 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 falsehasFocus - 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 editingrow - the row index of the GanttEntry being drawn.
public Component getGanttLabelRendererComponent(GanttChart<?,?> chart,
GanttEntry<?> entry,
boolean isSelected,
boolean hasFocus,
int row,
int column)
GanttLabelRenderer
getGanttLabelRendererComponent in interface GanttLabelRendererchart - the GanttChart that is asking the renderer to draw; can be nullentry - 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 falsehasFocus - 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 editingrow - the row index of the GanttEntry being drawn.column - the column index of the sub entry. -1 if there is no sub entry
protected String convertEntryToString(GanttEntry<?> entry)
entry - the GanttEntry
public boolean isOpaque()
isOpaque in class JComponentpublic void invalidate()
invalidate in class Containerpublic void validate()
validate in class Containerpublic void revalidate()
revalidate in class JComponent
public void repaint(long tm,
int x,
int y,
int width,
int height)
repaint in class JComponentpublic void repaint(Rectangle r)
repaint in class JComponentpublic void repaint()
repaint in class Component
protected void firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
firePropertyChange in class Component
public void firePropertyChange(String propertyName,
boolean oldValue,
boolean newValue)
firePropertyChange in class JComponent
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||