public interface IlpNodeRenderer
It allows the creation and updating of an IlpGraphic
object,
which will represent either an IlpRepresentationObject
or a
specific attribute of this object.
Modifier and Type | Method and Description |
---|---|
IlpGraphic |
createGraphic(IlpGraphView view,
IlpRepresentationObject object,
IlpGraphicRendererContext rendererContext,
IlpGraphic previousGraphic)
Creates a new
IlpGraphic from an
IlpRepresentationObject . |
void |
updateGraphic(IlpGraphic graphic,
IlpGraphicRendererContext rendererContext)
Updates an existing
IlpGraphic . |
IlpGraphic createGraphic(IlpGraphView view, IlpRepresentationObject object, IlpGraphicRendererContext rendererContext, IlpGraphic previousGraphic)
IlpGraphic
from an
IlpRepresentationObject
.
The graphic object will be used in the specified view.
An implementation of this method should always create a new
IlpGraphic
instance, as instances may be cached externally.
This method should return the completely constructed graphic object.
It may internally call updateGraphic
.
If the previousGraphic
argument is non-null
, this method
may - as an optimization - choose to reuse the previousGraphic
instead
of creating a new one.
view
- Graphic view in which the object will be displayed.object
- The representation object.rendererContext
- The context which carries information to be used in
the rendering process, such as selection
information.previousGraphic
- The previous graphic object for this object, for
possible optimization, or null
.void updateGraphic(IlpGraphic graphic, IlpGraphicRendererContext rendererContext)
IlpGraphic
.graphic
- The graphic to be updated.rendererContext
- The context which carries information to be used
in the rendering process, such as selection
information.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.