|
||||||||||
| 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.IlvBasicActivitySymbol
public class IlvBasicActivitySymbol
The class 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)| Field Summary | |
|---|---|
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 Summary | |
|---|---|
IlvBasicActivitySymbol()
Creates a symbol renderer. |
|
| Method Summary | |
|---|---|
int |
getAlignment()
Returns the alignment of the symbol. |
Color |
getBackground()
Returns the renderer background color. |
IlvRect |
getBounds(IlvActivityGraphic ag,
IlvTransformer t)
Returns the rectangle in which the activity graphic should be drawn. |
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. |
| Methods inherited from class ilog.views.gantt.graphic.renderer.IlvActivityGraphicRenderer |
|---|
contains, draw, getBottomMargin, getGraphic, getPopupMenu, getPopupMenuName, getToolTipText, getToolTipText, getTopMargin, isRedrawNeeded, 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 |
| Field Detail |
|---|
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 Values| Constructor Detail |
|---|
public IlvBasicActivitySymbol()
pentagon pointing down.
| Method Detail |
|---|
public int getAlignment()
START or END. The default value is START.
setAlignment(int)public void setAlignment(int alignment)
START or END.
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 IlvActivityGraphicRenderergraphic - 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 IlvActivityRenderergetBounds in class IlvActivityGraphicRendererag - The activity graphic.t - The transformer.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||