ilog.cpl.graph
Interface IlpNodeRenderer

All Known Subinterfaces:
IlpNetworkRenderer
All Known Implementing Classes:
IlpDefaultNetworkRenderer, IlpDefaultNodeRenderer

public interface IlpNodeRenderer

This interface defines the basic renderer for a graphic object in the view.

It allows the creation and updating of an IlpGraphic object, which will represent either an IlpRepresentationObject or a specific attribute of this object.

Since:
JTGO 4.0

Method Summary
 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.
 

Method Detail

createGraphic

IlpGraphic createGraphic(IlpGraphView view,
                         IlpRepresentationObject object,
                         IlpGraphicRendererContext rendererContext,
                         IlpGraphic previousGraphic)
Creates a new 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.

Parameters:
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.

updateGraphic

void updateGraphic(IlpGraphic graphic,
                   IlpGraphicRendererContext rendererContext)
Updates an existing IlpGraphic.

Parameters:
graphic - The graphic to be updated.
rendererContext - The context which carries information to be used in the rendering process, such as selection information.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.