|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IlvActivityRenderer
An IlvActivityRenderer object defines the graphic presentation
of a given activity and its activity graphic.
| Method Summary | |
|---|---|
boolean |
contains(IlvActivityGraphic ag,
IlvPoint p,
IlvPoint tp,
IlvTransformer t)
This method is called by an activity graphic to
test whether a point lies within its boundaries. |
void |
draw(Graphics dst,
IlvActivityGraphic ag,
IlvTransformer t)
This method is called by an activity graphic to render itself. |
IlvRect |
getBounds(IlvActivityGraphic ag,
IlvTransformer t)
Returns the rectangle in which the activity graphic should be drawn. |
JPopupMenu |
getPopupMenu(IlvActivityGraphic ag,
IlvPoint p,
IlvTransformer t,
IlvManagerView view,
IlvPopupMenuManager popupManager)
This method is called by an activity graphic to return the Swing popup menu
to display when the popup is triggered while the mouse pointer is at a specified location inside the activity
graphic object. |
String |
getPopupMenuName()
This method is called by an activity graphic to return the name of the
Swing popup menu. |
String |
getToolTipText(IlvActivityGraphic ag,
IlvPoint p,
IlvTransformer t)
This method is called by an activity graphic to return tooltip text for
itself. |
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. |
IlvSelection |
makeSelection(IlvActivityGraphic ag)
This method is called by an activity graphic to create and return a
selection object for itself. |
| Method Detail |
|---|
IlvRect getBounds(IlvActivityGraphic ag,
IlvTransformer t)
definitionRect of the activity graphic.
ag - The activity graphic.t - The transformer.
boolean contains(IlvActivityGraphic ag,
IlvPoint p,
IlvPoint tp,
IlvTransformer t)
activity graphic to
test whether a point lies within its boundaries.
ag - The activity graphic.p - The point to be tested.tp - The point p transformed by the transformer t.t - The transformation used to draw the object.
true if the point lies inside this activity graphic.
void draw(Graphics dst,
IlvActivityGraphic ag,
IlvTransformer t)
activity graphic to render itself.
dst - The destination into which the presentation will be drawn.ag - The activity graphic holding the position where the presentation should be drawn.t - The transformer.boolean isRedrawNeeded(ActivityEvent evt)
activity graphic to determine if it should redraw itself as
a result of the specified activity event. This method should return true if the event indicates that a
property of the activity visualized by the renderer has changed.
evt - The activity event.
IlvSelection makeSelection(IlvActivityGraphic ag)
activity graphic to create and return a
selection object for itself.
Note, that the selection object must be compatible with all activity renderer implementations in use, not just the
specific renderer implementation this method is being invoked on. This is because the renderer assigned to an
activity graphic may change while the activity graphic remains selected. The default IlvActivityGraphicSelection class is generic and is compatible with all renderer implementations.
ag - The activity graphic.
String getToolTipText(IlvActivityGraphic ag,
IlvPoint p,
IlvTransformer t)
activity graphic to return tooltip text for
itself. This method can return null to turn off the tooltip for the activity graphic.
ag - The activity graphic.p - The location of the mouse (in view coordinates).t - The transformer.
JPopupMenu getPopupMenu(IlvActivityGraphic ag,
IlvPoint p,
IlvTransformer t,
IlvManagerView view,
IlvPopupMenuManager popupManager)
activity graphic to return the Swing popup menu
to display when the popup is triggered while the mouse pointer is at a specified location inside the activity
graphic object. You can override this method to display different popup menus over different parts of your graphic
object.
This method can return null to turn off the popup menu for this activity graphic object.
Note that you must enable the popup menu mechanism for the manager view by calling the method IlvGanttSheet.setPopupMenusEnabled(boolean).
ag - The activity graphic.p - The location of the mouse (in view coordinates).t - The transformer that converts the coordinate system of this object (the manager coordinates)
into the coordinate system of the manager view in which the tool tip is about to be displayed
(the view coordinates).view - The manager view that triggered the popup menu.popupManager - The popup menu manager.
null.IlvActivityGraphic.getPopupMenu(IlvPoint,IlvTransformer,IlvManagerView,IlvPopupMenuManager)String getPopupMenuName()
activity graphic to return the name of the
Swing popup menu. This method can return null.
null.IlvActivityGraphic.getPopupMenu(IlvPoint,IlvTransformer,IlvManagerView,IlvPopupMenuManager)
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||