ilog.cpl.graphic
Class IlpEmptyGraphicHolder

java.lang.Object
  extended by ilog.cpl.graphic.IlpEmptyGraphicHolder
All Implemented Interfaces:
IlpGraphicHolder

public class IlpEmptyGraphicHolder
extends Object
implements IlpGraphicHolder

This is an empty graphic holder. It does not store any reference. It is intended to be used in tables or trees, where it is not necessary to store the references to the graphics that are rendered.

Since:
JTGO 3.0

Constructor Summary
protected IlpEmptyGraphicHolder()
          Default constructor
 
Method Summary
 void addGraphic(IlpRepresentationObject o, IlpAttribute a, IlpGraphic g)
          This class does not store any association with graphic instances, so this method does nothing.
 void addGraphic(IlpRepresentationObject o, IlpGraphic g)
          This class does not store any association with graphic instances, so this method does nothing.
 IlpGraphic getGraphic(IlpRepresentationObject o)
          Returns null always, as this graphic holder does not store any references.
 IlpGraphic getGraphic(IlpRepresentationObject o, IlpAttribute a)
          Returns null always, as this graphic holder does not store any references.
static IlpEmptyGraphicHolder GetGraphicHolder()
          Returns the single instance of graphic holder that is used when the graphic view is not interested in storing the association between objects/attributes and graphic instances.
 IlpGraphicRendererContext getRendererContext(IlpRepresentationObject o)
          Returns the renderer context associated with the graphic representation of the given object representation.
 IlpGraphicRendererContext getRendererContext(IlpRepresentationObject o, IlpAttribute a)
          Returns the renderer context associated with the graphic representation of the given object representation and attribute.
 void invalidate()
          Invalidates all graphic instances present in this holder.
 void invalidateGraphic(IlpRepresentationObject o)
          Invalidates the graphic instance associated with the given object representation.
 void invalidateGraphic(IlpRepresentationObject o, IlpAttribute a)
          Invalidates the graphic instance associated with the given object representation and attribute.
 boolean isValid(IlpRepresentationObject o)
          Returns if the graphic instance associated with the given object representation is valid.
 boolean isValid(IlpRepresentationObject o, IlpAttribute a)
          Returns if the graphic instance associated with the given object representation and attribute is valid.
 void removeGraphic(IlpRepresentationObject o)
          This class does not store any association with graphic instances, so this method does nothing.
 void removeGraphic(IlpRepresentationObject o, IlpAttribute a)
          This class does not store any association with graphic instances, so this method does nothing.
 void validateGraphic(IlpRepresentationObject o, IlpAttribute a, IlpGraphicRendererContext c)
          Validates the graphic instance associated with the given object representation and attribute.
 void validateGraphic(IlpRepresentationObject o, IlpGraphicRendererContext c)
          Validates the graphic instance associated with the given object representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlpEmptyGraphicHolder

protected IlpEmptyGraphicHolder()
Default constructor

Method Detail

GetGraphicHolder

public static IlpEmptyGraphicHolder GetGraphicHolder()
Returns the single instance of graphic holder that is used when the graphic view is not interested in storing the association between objects/attributes and graphic instances.


getGraphic

public IlpGraphic getGraphic(IlpRepresentationObject o)
Returns null always, as this graphic holder does not store any references.

Specified by:
getGraphic in interface IlpGraphicHolder
Parameters:
o - Representation object which graphic representation is being requested

getGraphic

public IlpGraphic getGraphic(IlpRepresentationObject o,
                             IlpAttribute a)
Returns null always, as this graphic holder does not store any references.

Specified by:
getGraphic in interface IlpGraphicHolder
Parameters:
o - Representation object
a - Attribute which graphic representation is being requested

addGraphic

public void addGraphic(IlpRepresentationObject o,
                       IlpGraphic g)
This class does not store any association with graphic instances, so this method does nothing.

Specified by:
addGraphic in interface IlpGraphicHolder
Parameters:
o - Representation object which graphic representation is being added
g - Graphic representation

addGraphic

public void addGraphic(IlpRepresentationObject o,
                       IlpAttribute a,
                       IlpGraphic g)
This class does not store any association with graphic instances, so this method does nothing.

Specified by:
addGraphic in interface IlpGraphicHolder
Parameters:
o - Representation object
a - Attribute which graphic representation is being added
g - Graphic representation

removeGraphic

public void removeGraphic(IlpRepresentationObject o)
This class does not store any association with graphic instances, so this method does nothing.

Specified by:
removeGraphic in interface IlpGraphicHolder
Parameters:
o - Representation object which graphic instance is being removed

removeGraphic

public void removeGraphic(IlpRepresentationObject o,
                          IlpAttribute a)
This class does not store any association with graphic instances, so this method does nothing.

Specified by:
removeGraphic in interface IlpGraphicHolder
Parameters:
o - Representation object which graphic instance is being removed
a - Attribute which graphic instance is being removed

invalidateGraphic

public void invalidateGraphic(IlpRepresentationObject o)
Invalidates the graphic instance associated with the given object representation.

Specified by:
invalidateGraphic in interface IlpGraphicHolder
Parameters:
o - Representation object which graphic instance is being invalidated
Since:
JTGO 3.1

invalidateGraphic

public void invalidateGraphic(IlpRepresentationObject o,
                              IlpAttribute a)
Invalidates the graphic instance associated with the given object representation and attribute.

Specified by:
invalidateGraphic in interface IlpGraphicHolder
Parameters:
o - Representation object
a - Attribute which graphic instance is being invalidated
Since:
JTGO 3.1

invalidate

public void invalidate()
Invalidates all graphic instances present in this holder.

Specified by:
invalidate in interface IlpGraphicHolder
Since:
JTGO 3.5

validateGraphic

public void validateGraphic(IlpRepresentationObject o,
                            IlpGraphicRendererContext c)
Validates the graphic instance associated with the given object representation.

Specified by:
validateGraphic in interface IlpGraphicHolder
Parameters:
o - Representation object which graphic is being validated.
c - Renderer context information that is stored with the representation object graphic. This information is later used to indicate whether the graphic must be updated or not.
Since:
JTGO 3.1

validateGraphic

public void validateGraphic(IlpRepresentationObject o,
                            IlpAttribute a,
                            IlpGraphicRendererContext c)
Validates the graphic instance associated with the given object representation and attribute.

Specified by:
validateGraphic in interface IlpGraphicHolder
Parameters:
o - Representation object
a - Attribute which graphic instance is being validated
c - Renderer context information that is stored with the representation object graphic. This information is later used to indicate whether the graphic must be updated or not.
Since:
JTGO 3.1

getRendererContext

public IlpGraphicRendererContext getRendererContext(IlpRepresentationObject o)
Returns the renderer context associated with the graphic representation of the given object representation.

May be null if the graphic renderer context was not set.

Specified by:
getRendererContext in interface IlpGraphicHolder
Parameters:
o - Representation object which graphic validity is being queried
Since:
JTGO 3.1
See Also:
validateGraphic(ilog.cpl.model.IlpRepresentationObject, ilog.cpl.graphic.IlpGraphicRendererContext)

getRendererContext

public IlpGraphicRendererContext getRendererContext(IlpRepresentationObject o,
                                                    IlpAttribute a)
Returns the renderer context associated with the graphic representation of the given object representation and attribute.

May be null if the graphic renderer context was not set.

Specified by:
getRendererContext in interface IlpGraphicHolder
Parameters:
o - Representation object which graphic validity is being queried
a - Attribute which graphic representation is being validated
Since:
JTGO 3.1
See Also:
validateGraphic(ilog.cpl.model.IlpRepresentationObject, ilog.cpl.graphic.IlpGraphicRendererContext)

isValid

public boolean isValid(IlpRepresentationObject o)
Returns if the graphic instance associated with the given object representation is valid. Invalid graphic representations need to be updated.

Specified by:
isValid in interface IlpGraphicHolder
Parameters:
o - Representation object which graphic validity is being queried
Since:
JTGO 3.1

isValid

public boolean isValid(IlpRepresentationObject o,
                       IlpAttribute a)
Returns if the graphic instance associated with the given object representation and attribute is valid. Invalid graphic representations need to be updated.

Specified by:
isValid in interface IlpGraphicHolder
Parameters:
o - Representation object
a - Attribute which graphic validity is being queried
Since:
JTGO 3.1


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