ilog.cpl.graphic
Interface IlpGraphicRenderer

All Known Implementing Classes:
IltGraphicRenderer, IltObjectDefaultRenderer

public interface IlpGraphicRenderer

This interface defines the basic renderer for a graphic.

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

Since:
JTGO 3.0

Method Summary
 IlpGraphic createGraphic(IlpGraphicView view, IlpRepresentationObject object, IlpAttribute attribute, IlpGraphicRendererContext rendererContext)
          Creates a new IlpGraphic from an IlpRepresentationObject and optional attribute.
 void updateGraphic(IlpGraphic g, IlpGraphicRendererContext rendererContext)
          Updates an existing IlpGraphic.
 

Method Detail

createGraphic

IlpGraphic createGraphic(IlpGraphicView view,
                         IlpRepresentationObject object,
                         IlpAttribute attribute,
                         IlpGraphicRendererContext rendererContext)
Creates a new IlpGraphic from an IlpRepresentationObject and optional attribute.

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.

Parameters:
view - Graphic view in which the object will be displayed.
object - The representation object.
attribute - The attribute in the representation object.
rendererContext - The context which carries information to be used in the rendering process, such as selection information.

updateGraphic

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

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