public class IlpEmptyGraphicHolder extends Object implements IlpGraphicHolder
| Modifier | Constructor and Description |
|---|---|
protected |
IlpEmptyGraphicHolder()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static IlpEmptyGraphicHolder GetGraphicHolder()
public IlpGraphic getGraphic(IlpRepresentationObject o)
null always, as this graphic holder does not
store any references.getGraphic in interface IlpGraphicHoldero - Representation object which graphic representation is being requestedpublic IlpGraphic getGraphic(IlpRepresentationObject o, IlpAttribute a)
null always, as this graphic holder does not
store any references.getGraphic in interface IlpGraphicHoldero - Representation objecta - Attribute which graphic representation is being requestedpublic void addGraphic(IlpRepresentationObject o, IlpGraphic g)
addGraphic in interface IlpGraphicHoldero - Representation object which graphic representation is being addedg - Graphic representationpublic void addGraphic(IlpRepresentationObject o, IlpAttribute a, IlpGraphic g)
addGraphic in interface IlpGraphicHoldero - Representation objecta - Attribute which graphic representation is being addedg - Graphic representationpublic void removeGraphic(IlpRepresentationObject o)
removeGraphic in interface IlpGraphicHoldero - Representation object which graphic instance is being removedpublic void removeGraphic(IlpRepresentationObject o, IlpAttribute a)
removeGraphic in interface IlpGraphicHoldero - Representation object which graphic instance is being removeda - Attribute which graphic instance is being removedpublic void invalidateGraphic(IlpRepresentationObject o)
invalidateGraphic in interface IlpGraphicHoldero - Representation object which graphic instance is being invalidatedpublic void invalidateGraphic(IlpRepresentationObject o, IlpAttribute a)
invalidateGraphic in interface IlpGraphicHoldero - Representation objecta - Attribute which graphic instance is being invalidatedpublic void invalidate()
invalidate in interface IlpGraphicHolderpublic void validateGraphic(IlpRepresentationObject o, IlpGraphicRendererContext c)
validateGraphic in interface IlpGraphicHoldero - 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.public void validateGraphic(IlpRepresentationObject o, IlpAttribute a, IlpGraphicRendererContext c)
validateGraphic in interface IlpGraphicHoldero - Representation objecta - Attribute which graphic instance is being validatedc - 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.public IlpGraphicRendererContext getRendererContext(IlpRepresentationObject o)
May be null if the graphic renderer context was not set.
getRendererContext in interface IlpGraphicHoldero - Representation object which graphic validity is being queriedvalidateGraphic(ilog.cpl.model.IlpRepresentationObject, ilog.cpl.graphic.IlpGraphicRendererContext)public IlpGraphicRendererContext getRendererContext(IlpRepresentationObject o, IlpAttribute a)
May be null if the graphic renderer context was not set.
getRendererContext in interface IlpGraphicHoldero - Representation object which graphic validity is being querieda - Attribute which graphic representation is being validatedvalidateGraphic(ilog.cpl.model.IlpRepresentationObject, ilog.cpl.graphic.IlpGraphicRendererContext)public boolean isValid(IlpRepresentationObject o)
isValid in interface IlpGraphicHoldero - Representation object which graphic validity is being queriedpublic boolean isValid(IlpRepresentationObject o, IlpAttribute a)
isValid in interface IlpGraphicHoldero - Representation objecta - Attribute which graphic validity is being queried© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.