ilog.cpl.graph
Class IlpDefaultNodeRenderer

java.lang.Object
  extended by ilog.cpl.graph.IlpDefaultNodeRenderer
All Implemented Interfaces:
IlpNodeRenderer
Direct Known Subclasses:
IlpDefaultNetworkRenderer

public class IlpDefaultNodeRenderer
extends Object
implements IlpNodeRenderer

This class creates and updates the 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.

Since:
JTGO 4.0
See Also:
IlpGraphView.setNodeRenderer(ilog.cpl.graph.IlpNodeRenderer)

Constructor Summary
IlpDefaultNodeRenderer()
          Default constructor
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlpDefaultNodeRenderer

public IlpDefaultNodeRenderer()
Default constructor

Method Detail

createGraphic

public IlpGraphic createGraphic(IlpGraphView view,
                                IlpRepresentationObject object,
                                IlpGraphicRendererContext rendererContext,
                                IlpGraphic previousGraphic)
Creates a new graphic representation or reuses the previous one.

Specified by:
createGraphic in interface IlpNodeRenderer
Parameters:
view - An IlpGraphView.
object - The object to be displayed.
rendererContext - Renderer information to create the graphic representation.
previousGraphic - The previous graphic representation, or null.

updateGraphic

public void updateGraphic(IlpGraphic graphic,
                          IlpGraphicRendererContext rendererContext)
Updates an existing IlpGraphic, to reflect the changes made to the IlpRepresentationObject object.

Specified by:
updateGraphic in interface IlpNodeRenderer
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.