|
||||||||||
| PREV CLASS 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.composite.IlvActivityCompositeGraphicRenderer
public class IlvActivityCompositeGraphicRenderer
The class IlvActivityCompositeGraphicRenderer draws a
composite graphic to render the duration of a given activity in a Gantt
sheet. The first child of the composite graphic is the graphic used to
represent the activity duration; the other child graphics are considered as
decorations.
| Constructor Summary | |
|---|---|
IlvActivityCompositeGraphicRenderer()
Creates a new IlvActivityCompositeGraphicRenderer. |
|
| Method Summary | |
|---|---|
IlvRect |
getBounds(IlvActivityGraphic ag,
IlvTransformer t)
Returns the rectangle in which the activity graphic should be drawn. |
String |
getToolTipText(IlvActivityGraphic ag,
IlvPoint p,
IlvTransformer t)
This method is called by an activity graphic
to return tooltip text for itself. |
IlvSelection |
makeSelection(IlvActivityGraphic ag)
This method is called by an activity graphic to create and return a selection object for itself. |
protected IlvGraphic |
prepareGraphic(IlvActivityGraphic ag,
IlvTransformer t)
Prepares the underlying graphic for drawing by resizing and positioning it according to the renderer's bounds. |
void |
setGraphic(IlvGraphic graphic)
Sets the IlvGraphic used to render activities. |
| Methods inherited from class ilog.views.gantt.graphic.renderer.IlvActivityGraphicRenderer |
|---|
contains, draw, getBottomMargin, getGraphic, getPopupMenu, getPopupMenuName, getToolTipText, getTopMargin, isRedrawNeeded, 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 IlvActivityCompositeGraphicRenderer()
| Method Detail |
|---|
public IlvRect getBounds(IlvActivityGraphic ag,
IlvTransformer t)
getBounds in interface IlvActivityRenderergetBounds in class IlvActivityGraphicRendererag - The activity graphic.t - The transformer.
protected IlvGraphic prepareGraphic(IlvActivityGraphic ag,
IlvTransformer t)
bounds.
prepareGraphic in class IlvActivityGraphicRendererag - The activity graphic holding the position where the
presentation should be drawn.t - The transformer.
public String getToolTipText(IlvActivityGraphic ag,
IlvPoint p,
IlvTransformer t)
activity graphic
to return tooltip text for itself. If you have set a tooltip by calling the
IlvActivityGraphicRenderer.setToolTipText(java.lang.String) method, then that text is returned. Otherwise,
this default implementation returns the
tooltip text
from the renderer's underlying graphic.
getToolTipText in interface IlvActivityRenderergetToolTipText in class IlvActivityGraphicRendererag - The activity graphic.p - The location of the mouse (in view coordinates).t - The transformer.
public IlvSelection makeSelection(IlvActivityGraphic ag)
IlvActivityGraphicSelection is customized so that the handles are y-positioned on the main horizontal bar
instead of around the composite renderer as a whole.
Note that the selection object must be compatible with all activity renderer implementations in use, not just the specific renderer implementation this method is invoked on. This is because the renderer assigned to an activity graphic may change while the activity graphic remains selected. The custom selection returned by this implementation is generic and is compatible with all renderer implementations.
makeSelection in interface IlvActivityRenderermakeSelection in class IlvActivityGraphicRendererag - The activity graphic.
public void setGraphic(IlvGraphic graphic)
IlvGraphic used to render activities. Only
IlvCompositeGraphics are supported by this class.
Any other type of graphic will throw an
IllegalArgumentException.
setGraphic in class IlvActivityGraphicRenderergraphic - The new graphic.IlvActivityGraphicRenderer.getGraphic()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||