|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.gantt.graphic.renderer.IlvActivityGraphicRenderer
ilog.views.gantt.graphic.renderer.IlvBasicActivityLabel
ilog.views.gantt.graphic.renderer.IlvActivityLabel
public class IlvActivityLabel
IlvActivityLabel is an extension of
IlvBasicActivityLabel whose text label is dynamically updated
from a property of the activity. The default property is the name as
the activity.
| Field Summary |
|---|
| 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 |
| Constructor Summary | |
|---|---|
IlvActivityLabel()
Creates an IlvActivityLabel that has no main renderer. |
|
IlvActivityLabel(IlvActivityRenderer main)
Creates an IlvActivityLabel that is positioned relative to
the specified main renderer. |
|
| Method Summary | |
|---|---|
IlvRect |
getBounds(IlvActivityGraphic ag,
IlvTransformer t)
Returns the rectangle in which the activity graphic should be drawn. |
IlvStringProperty |
getDisplayedProperty()
Returns the property displayed by this renderer. |
String |
getLabel()
Returns the text label that will be rendered if the displayed property is null. |
boolean |
isRedrawNeeded(ActivityEvent evt)
This method is called by an activity graphic to
determine if it should redraw itself as a result of the specified activity
event. |
void |
setDisplayedProperty(IlvStringProperty property)
Sets the property displayed by this renderer. |
void |
setLabel(String label)
Sets the text label to be rendered. |
| Methods inherited from class ilog.views.gantt.graphic.renderer.IlvBasicActivityLabel |
|---|
getFont, getForeground, getHorizontalAlignment, getMainRenderer, getOffset, getVerticalAlignment, setFont, setGraphic, setHorizontalAlignment, setMainRenderer, setOffset, setVerticalAlignment |
| Methods inherited from class ilog.views.gantt.graphic.renderer.IlvActivityGraphicRenderer |
|---|
contains, draw, getBottomMargin, getGraphic, getPopupMenu, getPopupMenuName, getToolTipText, getToolTipText, getTopMargin, makeSelection, prepareGraphic, setBackground, setBottomMargin, setForeground, setPopupMenu, setPopupMenuName, setToolTipText, setTopMargin |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvActivityLabel()
IlvActivityLabel that has no main renderer.
Use the IlvBasicActivityLabel.setMainRenderer(ilog.views.gantt.graphic.renderer.IlvActivityRenderer) method to specify the main renderer.
public IlvActivityLabel(IlvActivityRenderer main)
IlvActivityLabel that is positioned relative to
the specified main renderer.
main - The main renderer.| Method Detail |
|---|
public void setLabel(String label)
displayed property is
null.
setLabel in class IlvBasicActivityLabelgetLabel()public String getLabel()
displayed property is null.
getLabel in class IlvBasicActivityLabelsetLabel(java.lang.String)public IlvStringProperty getDisplayedProperty()
name of the activity.
setDisplayedProperty(ilog.views.gantt.property.IlvStringProperty)public void setDisplayedProperty(IlvStringProperty property)
name of the activity.
property - The property of the activity to be displayed. If
null, the text set by calling setLabel(java.lang.String) will be
displayed.getDisplayedProperty()
public IlvRect getBounds(IlvActivityGraphic ag,
IlvTransformer t)
getBounds in interface IlvActivityRenderergetBounds in class IlvBasicActivityLabelag - The activity graphic.t - The transformer.
public boolean isRedrawNeeded(ActivityEvent evt)
activity graphic to
determine if it should redraw itself as a result of the specified activity
event. This method is overridden to return true if the event
is either an aboutToChange or changed event for the label's displayed
property.
isRedrawNeeded in interface IlvActivityRendererisRedrawNeeded in class IlvActivityGraphicRendererevt - The activity event.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||