public class IlpDefaultNodeRenderer extends Object implements IlpNodeRenderer
IlpGraphic
objects that
represent an IlpRepresentationObject
object.
This renderer works as follows. First, it fetches the
graphicRenderer property in the CSS customization. If one is
found, it is used. This renderer provides no additional functionality.
If no such renderer is found, or if its createGraphic
function returns null
, this renderer uses the view's default
renderer.
IlpGraphView.setNodeRenderer(ilog.cpl.graph.IlpNodeRenderer)
Constructor and Description |
---|
IlpDefaultNodeRenderer()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
IlpGraphic |
createGraphic(IlpGraphView view,
IlpRepresentationObject object,
IlpGraphicRendererContext rendererContext,
IlpGraphic previousGraphic)
Creates a new graphic representation or reuses the previous one.
|
void |
updateGraphic(IlpGraphic graphic,
IlpGraphicRendererContext rendererContext)
Updates an existing
IlpGraphic , to reflect the changes made
to the IlpRepresentationObject object. |
public IlpGraphic createGraphic(IlpGraphView view, IlpRepresentationObject object, IlpGraphicRendererContext rendererContext, IlpGraphic previousGraphic)
createGraphic
in interface IlpNodeRenderer
view
- An IlpGraphView
.object
- The object to be displayed.rendererContext
- Renderer information to create the graphic representation.previousGraphic
- The previous graphic representation, or
null
.public void updateGraphic(IlpGraphic graphic, IlpGraphicRendererContext rendererContext)
IlpGraphic
, to reflect the changes made
to the IlpRepresentationObject
object.updateGraphic
in interface IlpNodeRenderer
graphic
- The graphic to be updated.rendererContext
- The context which carries information to be used
in the rendering process, such as selection
information.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.