public class IlvActivityLabel extends IlvBasicActivityLabel
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.ABOVE, BELOW, INSIDE_LEADING, INSIDE_LEFT, INSIDE_RIGHT, INSIDE_TRAILING
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
Constructor and Description |
---|
IlvActivityLabel()
Creates an
IlvActivityLabel that has no main renderer. |
IlvActivityLabel(IlvActivityRenderer main)
Creates an
IlvActivityLabel that is positioned relative to
the specified main renderer. |
Modifier and Type | Method and Description |
---|---|
IlvRect |
getBounds(IlvActivityGraphic ag,
IlvTransformer t)
Returns the bounding rectangle of the activity graphic.
|
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 |
isRelayoutNeeded(IlvActivityGraphic ag,
ActivityEvent evt)
This method is called by an
activity graphic to
determine if its bounding box may have changed 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.
|
getFont, getForeground, getHorizontalAlignment, getMainRenderer, getOffset, getVerticalAlignment, getYOffset, isAntialiasing, setAntialiasing, setFont, setGraphic, setHorizontalAlignment, setMainRenderer, setOffset, setVerticalAlignment, setYOffset
contains, createSelection, draw, endProcessing, getBaseTextDirection, getBottomMargin, getDefinitionRect, getEndTime, getEndTimeProperty, getGraphic, getPopupMenu, getPopupMenuName, getStartTime, getStartTimeProperty, getToolTipText, getToolTipText, getTopMargin, getVisibilityProperty, isPropertyEditable, isRedrawNeeded, isRedrawNeeded, makeSelection, prepareGraphic, prepareGraphicVisibility, setBackground, setBaseTextDirection, setBottomMargin, setEndTimeProperty, setForeground, setPopupMenu, setPopupMenuName, setStartTimeProperty, setToolTipText, setTopMargin, setVisibilityProperty, startProcessing
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.public void setLabel(String label)
displayed property
is
null
.setLabel
in class IlvBasicActivityLabel
getLabel()
public String getLabel()
displayed property
is null
.getLabel
in class IlvBasicActivityLabel
setLabel(java.lang.String)
public IlvStringProperty getDisplayedProperty()
name of the activity
.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 IlvActivityRenderer
getBounds
in class IlvBasicActivityLabel
ag
- The activity graphic.t
- The transformer.public boolean isRelayoutNeeded(IlvActivityGraphic ag, ActivityEvent evt)
activity graphic
to
determine if its bounding box may have changed as a result of the
specified activity event.isRelayoutNeeded
in interface IlvActivityRenderer
isRelayoutNeeded
in class IlvActivityGraphicRenderer
ag
- The activity graphic affected by the event.evt
- The activity event.true
is returned.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.