public class IlvBasicActivitySymbol extends IlvActivityGraphicRenderer
IlvBasicActivitySymbol
is used to render the symbols
at the start and end of an activity.
The tooltip property of this renderer is not computed dynamically from the
activity that is being rendered. Therefore, this renderer is primarily
intended to be used when you
apply CSS style
sheets
to the Gantt or Schedule chart. In this case, the CSS styling mechanism will
handle dynamic updates to the renderer based upon its interpretation of the
style sheets and the data model. If you are not using CSS styling and you
want the tooltip of the renderer to be dynamically computed from an
activity, you should use the IlvActivitySymbol
renderer
instead.
Several predefined shapes are available.getShape()
,
setShape(int)
Modifier and Type | Field and Description |
---|---|
static int |
CIRCLE
Renders the symbol as a hollow circle.
|
static int |
DIAMOND
Renders the symbol as a diamond.
|
static int |
DOWN_PENTAGON
Renders the symbol as a pentagon pointing down.
|
static int |
END
The symbol is configured as an end symbol.
|
static int |
FILLED_CIRCLE
Renders the symbol as a filled circle.
|
static int |
START
The symbol is configured as a start symbol.
|
static int |
UP_PENTAGON
Renders the symbol as a pentagon pointing up.
|
Constructor and Description |
---|
IlvBasicActivitySymbol()
Creates a symbol renderer.
|
Modifier and Type | Method and Description |
---|---|
int |
getAlignment()
Returns the alignment of the symbol.
|
Color |
getBackground()
Returns the renderer background color.
|
IlvRect |
getBounds(IlvActivityGraphic ag,
IlvTransformer t)
Returns the bounding rectangle of the activity graphic.
|
Color |
getForeground()
Returns the renderer foreground color.
|
int |
getShape()
Returns the shape of the symbol.
|
void |
setAlignment(int alignment)
Sets the alignment of the symbol.
|
void |
setGraphic(IlvGraphic graphic)
Sets the
IlvGraphic used to render the symbol. |
void |
setShape(int shape)
Sets the shape of the symbol.
|
contains, createSelection, draw, endProcessing, getBaseTextDirection, getBottomMargin, getDefinitionRect, getEndTime, getEndTimeProperty, getGraphic, getPopupMenu, getPopupMenuName, getStartTime, getStartTimeProperty, getToolTipText, getToolTipText, getTopMargin, getVisibilityProperty, isPropertyEditable, isRedrawNeeded, isRedrawNeeded, isRelayoutNeeded, makeSelection, prepareGraphic, prepareGraphicVisibility, setBackground, setBaseTextDirection, setBottomMargin, setEndTimeProperty, setForeground, setPopupMenu, setPopupMenuName, setStartTimeProperty, setToolTipText, setTopMargin, setVisibilityProperty, startProcessing
public static final int START
setAlignment(int)
,
Constant Field Valuespublic static final int END
setAlignment(int)
,
Constant Field Valuespublic static final int DOWN_PENTAGON
setShape(int)
,
Constant Field Valuespublic static final int UP_PENTAGON
setShape(int)
,
Constant Field Valuespublic static final int DIAMOND
setShape(int)
,
Constant Field Valuespublic static final int CIRCLE
setShape(int)
,
Constant Field Valuespublic static final int FILLED_CIRCLE
setShape(int)
,
Constant Field Valuespublic IlvBasicActivitySymbol()
pentagon pointing down
.public int getAlignment()
START
or END
. The default value is START
.setAlignment(int)
public void setAlignment(int alignment)
getAlignment()
public void setGraphic(IlvGraphic graphic)
IlvGraphic
used to render the symbol. This method is
overridden to throw an UnsupportedOperationException
. You
should use the setShape(int)
method to change the symbol instead.setGraphic
in class IlvActivityGraphicRenderer
graphic
- The new graphic.IlvActivityGraphicRenderer.getGraphic()
public int getShape()
DOWN_PENTAGON
, UP_PENTAGON
, DIAMOND
,
CIRCLE
, or FILLED_CIRCLE
. The default shape is
DOWN_PENTAGON
.setShape(int)
public void setShape(int shape)
DOWN_PENTAGON
, UP_PENTAGON
, DIAMOND
,
CIRCLE
, or FILLED_CIRCLE
.getShape()
public Color getForeground()
Color
representing the renderer foreground color.IlvActivityGraphicRenderer.setForeground(java.awt.Color)
public Color getBackground()
Color
representing the renderer background color.IlvActivityGraphicRenderer.setBackground(java.awt.Color)
public IlvRect getBounds(IlvActivityGraphic ag, IlvTransformer t)
getBounds
in interface IlvActivityRenderer
getBounds
in class IlvActivityGraphicRenderer
ag
- The activity graphic.t
- The transformer.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.