|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent com.jidesoft.gantt.TaskBar com.jidesoft.gantt.DefaultGanttEntryRenderer
public class DefaultGanttEntryRenderer
DefaultGanttEntryRenderer
is a default implementation of GanttEntryRenderer
. It uses the
TaskBar
as the component to paint the entry.
Nested Class Summary |
---|
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 com.jidesoft.gantt.TaskBar |
---|
PROPERTY_BORDER_COLOR, PROPERTY_COMPLETION, PROPERTY_GROUP, PROPERTY_GROUP_FOREGROUND, PROPERTY_MILESTONE, PROPERTY_PADDING, PROPERTY_PERCENTAGE_COLOR, PROPERTY_ROLLOVER, PROPERTY_SELECTED |
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 java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
DefaultGanttEntryRenderer()
|
Method Summary | |
---|---|
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 |
getGanttEntryRendererComponent(GanttChart<?,?> chart,
GanttEntry<?> entry,
boolean isSelected,
boolean hasFocus,
int row,
Insets insets)
Deprecated. |
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. |
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 com.jidesoft.gantt.TaskBar |
---|
getBorderColor, getCompletion, getGroupForeground, getPadding, getPercentageColor, getUI, getUIClassID, isGroup, isMilestone, isRollover, isSelected, setBorderColor, setCompletion, setGroup, setGroupForeground, setMilestone, setPadding, setPercentageColor, setRollover, setSelected, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultGanttEntryRenderer()
Method Detail |
---|
@Deprecated public Component getGanttEntryRendererComponent(GanttChart<?,?> chart, GanttEntry<?> entry, boolean isSelected, boolean hasFocus, int row, Insets insets)
GanttEntryRenderer
getGanttEntryRendererComponent
in interface GanttEntryRenderer
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 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.insets
- the padding around the renderer component.
public Component getGanttEntryRendererComponent(GanttChart<?,?> chart, GanttEntry<?> entry, boolean isSelected, boolean hasFocus, int row, int column, Insets insets)
GanttEntryRenderer
getGanttEntryRendererComponent
in interface GanttEntryRenderer
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 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 index of the sub entry being drawn. -1 if it is not an sub entry.insets
- the padding around the renderer component.
public boolean isOpaque()
isOpaque
in class JComponent
public void invalidate()
invalidate
in class Container
public void validate()
validate
in class Container
public void revalidate()
revalidate
in class JComponent
public void repaint(long tm, int x, int y, int width, int height)
repaint
in class JComponent
public void repaint(Rectangle r)
repaint
in class JComponent
public 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 |