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 IlpNodeRendererview - 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 IlpNodeRenderergraphic - 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, 2017. All Rights Reserved.