ilog.tgo.graphic
Class IltCompositeGraphic

java.lang.Object
  extended by ilog.tgo.composite.IltcCompositeGraphic
      extended by ilog.tgo.graphic.IltCompositeGraphic
All Implemented Interfaces:
IlpAttachable, IlpGraphic, IlpGraphicContainment, ilog.cpl.graphic.internal.IlpGraphicModifier, IlSynchronizationContext, ilog.tgo.composite.internal.IltcGraphicModifier, IltGraphic, IltWithProperties, IlWithProperties

public class IltCompositeGraphic
extends IltcCompositeGraphic
implements IltGraphic, IlSynchronizationContext

This class describes a composite graphic object for use by TGO.

Since:
JTGO 1.0

Field Summary
protected  IltGraphic _parent
          Parent graphic, if there is one.
 IltShapeChangedListener _shapeListenerForCPL
           
 IlpStyleListenerSupport _styleListenerForCPL
           
static ilog.tgo.graphic.internal.IltGraphicSetting Editable
          Deprecated. Please use IltObject.IsEditable instead.
static ilog.tgo.graphic.internal.IltGraphicSetting InfoIcon
          The graphic setting indicating that an info icon is present, and containing information about the info icon's state and the info window's state.
static ilog.tgo.graphic.internal.IltGraphicSetting Selected
          The graphic setting indicating that an object is selected.
static ilog.tgo.graphic.internal.IltGraphicSetting SystemIcon
          The graphic setting indicating that a system icon is present, and containing information about the system icon's state and the system window's state.
 
Fields inherited from interface ilog.cpl.graphic.IlpGraphic
AlarmBalloonBorderColor, AlarmBalloonColor, AlarmBalloonOrientation, AlarmBalloonPointerDepth, AlarmBalloonPointerDistance, AlarmBalloonRadius, AlarmBalloonShadowColor, AlarmBalloonShadowThickness, AlarmCountLabelBackgroundColor, AlarmCountOuterBorderColor, CenteredInsets, InfoBalloonBorderColor, InfoBalloonColor, InfoBalloonOrientation, InfoBalloonPointerDepth, InfoBalloonShadowColor, InfoBalloonShadowThickness, StackerAlignment, StackerOrientation, StackerSpacing
 
Constructor Summary
IltCompositeGraphic(IltObject object, IltGraphicManager manager)
          Creates a composite graphic for the given object in the given manager.
 
Method Summary
 boolean _hasLogicalChanged(boolean value)
          Verifies if the given value is different from the stored value.
 void _setLogicalValue(boolean value)
          This attribute stores the last value of isLogical set in this graphic.
 void addShapeChangedListener(IltShapeChangedListener listener)
          Adds a shape change listener.
 void afterComputeGraphic(IltObject object, IltGraphicManager manager)
          This method is called after computing the graphical representation of the objects.
 void applyTransform(IlvTransformer t, IlpPositionSource reason)
          Applies a transform to this graphic object as a whole.
 void applyZoomTransform(IlvTransformer t)
          Applies a transform to this graphic object as a whole, but note it is a zoom transform; the logical position/shape of the object shouldn't change.
 void completeGraphic(IlpGraphicView view, IlpRepresentationObject ro)
          Complete the composite graphic creation.
 void computeMapping()
          Computes the base parameters and graphic settings for a graphic representation.
protected  ilog.tgo.graphic.internal.base.IltBaseElement createBase(IltcGraphicElementAggregate root, IltObject obj)
          Creates the base of the graphical representation.
 ilog.tgo.composite.internal.IltcCompositePart createCompositePart(IltcLayer macroLayer)
          Returns a new per-layer part for this graphic object.
 ilog.tgo.composite.internal.IltcCompositeInteractiveProxy createLinkInteractiveProxy()
          Returns a new link interactive proxy for this graphic object.
 ilog.tgo.composite.internal.IltcCompositeLinkLayoutProxy createLinkLayoutProxy(IltcCompositeGraphic from, IltcCompositeGraphic to)
          Returns a new link layout proxy for this graphic object.
 ilog.tgo.composite.internal.IltcCompositeInteractiveProxy createNodeInteractiveProxy()
          Returns a new interactive proxy for this graphic object.
 ilog.tgo.composite.internal.IltcCompositeLayoutProxy createNodeLayoutProxy()
          Returns a new layout proxy for this graphic object.
protected  void customizeGraphic(IltGraphicElementAggregate root)
          This method allows CPL users to add new decorations to a composite graphic.
 void doComputeGraphic(IltObject object, IltGraphicManager manager, ilog.tgo.graphic.internal.IltComputeAmount amount)
          Computes the graphic representation.
 void drawElements(Graphics g, IlvTransformer t, IltGraphicElementName name)
          Draws all subobjects of the composite graphic object.
protected  void drawGhost(Graphics g, IlvTransformer t)
          Draws an outline of the composite graphic object.
static void ForceInit(ilog.tgo.util.internal.IltForceClassInit object)
          To deserialize IltGraphicSetting instances.
 ilog.tgo.mapper.IltMapping getAdditionalGraphicUpdates()
          Decoration adders positioned by other means on this graphic representation.
 ilog.tgo.attacher.IltAttacher getAttacher()
          Returns the current attacher.
 ilog.tgo.graphic.internal.base.IltBaseElement getBase()
          Returns the base element.
 Object getBaseParameter(Object parameter)
          Returns the value of a base parameter.
 boolean getBaseParameterBoolean(Object parameter, boolean defaultValue)
          Returns the value of a base parameter denoting a Boolean.
 Enumeration getBaseParameters()
          Returns an enumeration of the base parameters.
 ilog.tgo.graphic.internal.IltBlinking getBlinkingData()
          Deprecated.  
 JComponent getComponent()
          Returns the Java component responsible for the display of this graphic.
 IltCompositeGraphic getCompositeGraphic()
          Returns the composite graphic.
 ilog.tgo.graphic.internal.IltDecorationContainer getDecorationContainer()
          Returns the object responsible for storing the decorations that will be part of this graphic.
 IlvRect getElementBounds(IltGraphicElementName name, IlvTransformer t)
          Returns the bounding box of the requested graphic element.
 ilog.tgo.graphic.internal.IltGraphicElement getGraphicElement(IlvPoint tp, IlvTransformer trans)
          Returns the graphic element which contains the given transformed point.
 IlpGraphic getGraphicLabel()
          Returns the graphic corresponding to the label of this element.
protected  ilog.tgo.graphic.internal.decoration.IltLabelDecoration getGraphicLabelRecursive(Collection children)
           
 ilog.tgo.graphic.internal.IltGraphicRepresentationStyle getGraphicRepresentationStyle()
          Returns the graphic representation style.
 Object getGraphicSetting(ilog.tgo.graphic.internal.IltGraphicSetting setting)
          Returns the value of a given graphic setting.
 IltGraphicSettings getGraphicSettings()
          Returns all (non-transient) graphic settings altogether.
 ilog.tgo.mapper.IltMapping getInheritableGraphicUpdates()
          All graphic updates that should be inherited to contained objects.
 IltCompositeInteractions getInteractions()
          Deprecated. See IltCompositeInteractions
 IlvObjectInteractor getInteractor(ilog.tgo.composite.internal.IltcGraphicElement g)
          Returns the interactor to be positioned on a graphic element.
 IltLegend getLegend()
          Deprecated. Please use CSS instead.
 Object getLock()
          Lock object
 IltCompositeGrapher getManager()
          Returns the IltcCompositeManager containing this composite graphic object, or null if it is currently not in a manager.
 IltGraphicManager getManagerNotNull()
           
 IltObject getObject()
          Deprecated. Use IltObject.FromGraphic(IltCompositeGraphic) instead.
 IltGraphic getParentGraphic()
          Returns the graphic object which represents the container this graphic representation belongs to, in the same IltGraphicManager.
 ilog.tgo.mapper.IltMapping getParentGraphicUpdates()
          Decoration adders positioned by the container of this graphic representation.
 IlSynchronizationStrategy getSynchronizationStrategy()
          Returns the synchronization strategy which will be used by the style change event dispatcher.
 double[] getVisibilityThreshold(IltGraphicElementName elementName)
          Returns the visibility threshold for the given element.
 boolean hasGraphicSetting(ilog.tgo.graphic.internal.IltGraphicSetting setting)
          Tests whether this object has a given graphic setting.
 void initComponent(IltObject object)
          Sets the object to visible and the telecom object which is being represented.
 void initHierarchy2(IltcGraphicElementAggregate root, ilog.tgo.graphic.internal.base.IltBaseElement base)
           
protected  void initStyle()
          Creates the style and adds a specific listener in order to recompute the graphic representation when the style changes.
 boolean isBlinking()
          Deprecated.  
 boolean isContainerGraphic()
          Deprecated. See IltContainer
 boolean isEditable()
          Returns the "editable" state of the composite graphic object.
 boolean isLink()
          Returns true when the graphic object is a link.
 boolean isLogical()
          Returns if the logical representation is set in the legend.
 boolean isMovable()
          Returns if the given object can be moved or not through user interactions.
 boolean isSelectable()
          Returns true if the graphic object shall be treated as selectable by the IlvManager and IlvSelectInteractor.
 boolean isVisible()
          Returns the visibility state.
 IlvRect linkConnectionRect(float magnification, boolean topleftOnePixelCorrection)
          Returns the rectangle to which links can connect.
 IlvSelection makeSelection()
          Returns the graphic object which shall be displayed in the topmost layer while the composite graphic object is selected.
 void noteAddToCompositeManager(IltcCompositeManager manager)
          This function is called when the graphic object is being added to a manager.
 void noteRemoveFromCompositeManager(IltcCompositeManager manager)
          This function is called when the graphic object is is being removed from a manager.
 void noteShapeChanged(Object newShapeInManager, IlpPositionSource reason)
           
 void recomputeGraphic()
          Recompute if object is visible, invisible or if it is in a tree and not in a manager.
 void recomputeGraphic1()
          Reinitializes a visible graphic object, after some legend values have changed which might even affect the structure of the element hierarchy.
 void recomputeGraphicOnlyShape()
          Reinitializes a visible graphic object, after only the shape has changed.
 void removeAllBaseParameters()
          Removes all base parameters.
 void removeAllGraphicSettings()
          Removes all graphic settings.
 void removeBaseParameter(Object parameter)
          Removes a base parameter (and its value).
 void removeGraphic()
          Call removeGraphic on the IltObject of this IltCompositeGraphic.
 void removeGraphicSetting(ilog.tgo.graphic.internal.IltGraphicSetting setting)
          Removes a given graphic setting, thus implicitly reverting to the default value.
 void removeShapeChangedListener(IltShapeChangedListener listener)
          Removes a shape change listener.
 void setAdditionalGraphicUpdates(ilog.tgo.mapper.IltMapping update)
           
 void setBaseParameter(Object parameter, Object value)
          Sets the value of a base parameter.
 void setBlinkingData(ilog.tgo.graphic.internal.IltBlinking data)
          Deprecated.  
 void setGraphicSetting(ilog.tgo.graphic.internal.IltGraphicSetting setting, Object value)
          Sets the the value of a given graphic setting.
 void setInhibitSetSelected(boolean inhibit)
          Turns the setSelected inhibition on or off.
 void setInitialVisible(boolean visible)
          Sets the initial visibility state, immediately after preCreateGraphic.
 void setLayoutProxyPresent(boolean present)
          Override from IltcCompositeGraphic, to notify the layout optimizer.
 void setLink(boolean isLink)
          Changes the fact that the graphic object is a link.
 void setManagerNotNull(IltGraphicManager manager)
           
 void setParentGraphic(IltGraphic parent)
          Sets the parent graphic representation.
 void setParentGraphicUpdates(ilog.tgo.mapper.IltMapping update)
           
 void setRepresentationObject(IlpRepresentationObject ro)
          Sets the object that this instance is representing.
 void setSelected(boolean selected)
          Changes the composite graphic object so that is appears selected.
 void setVisible(boolean visible)
          Changes the visibility state.
 String toString()
          Returns the String representation of this IltCompositeGraphic's values.
 
Methods inherited from class ilog.tgo.composite.IltcCompositeGraphic
_getManager, addChild, addGraphicChangeListener, apply, apply, apply, apply, applyTransform, boundingBoxAllParts, call, call, call, computeAttachmentCoordinates, computeFixedCoordinates, contains, containsAllParts, dispose, drawAllParts, drawAllPartsCorrectly, drawGhostCorrectly, dropResources, fireEvent, getAttachmentBounds, getAttachmentManager, getAttribute, getChildCount, getChildren, getHierarchyRoot, getInteractiveProxy, getLayoutProxy, getLayoutProxyShape, getParent, getProperty, getProxy, getRepresentationObject, getView, invalidateRegion, isInteractiveProxyPresent, isLayoutProxyPresent, isSelected, layoutProxyApplyTransform, layoutProxyBoundingBox, linkConnectionRect, reinitLayoutProxy, reinitLayoutProxy, removeChild, removeChildren, removeGraphicChangeListener, removeProperty, setAttribute, setHierarchyRoot, setInteractiveProxyPresent, setParent, setProperty, setView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_parent

protected IltGraphic _parent
Parent graphic, if there is one.

Internal method or field: do not use!

Selected

public static ilog.tgo.graphic.internal.IltGraphicSetting Selected
The graphic setting indicating that an object is selected. Its value is a Boolean.

Internal method or field: do not use!

Editable

public static ilog.tgo.graphic.internal.IltGraphicSetting Editable
Deprecated. Please use IltObject.IsEditable instead.
The graphic setting indicating that an object may be edited by an interactor. Its value is a Boolean.

Internal method or field: do not use!
Deprecated Since:
JTGO 3.5

InfoIcon

public static ilog.tgo.graphic.internal.IltGraphicSetting InfoIcon
The graphic setting indicating that an info icon is present, and containing information about the info icon's state and the info window's state. Its value is an IltInfoIconData.

Internal method or field: do not use!

SystemIcon

public static ilog.tgo.graphic.internal.IltGraphicSetting SystemIcon
The graphic setting indicating that a system icon is present, and containing information about the system icon's state and the system window's state. Its value is an IltInfoIconData.

Internal method or field: do not use!

_styleListenerForCPL

public IlpStyleListenerSupport _styleListenerForCPL
Internal method or field: do not use!

_shapeListenerForCPL

public IltShapeChangedListener _shapeListenerForCPL
Internal method or field: do not use!
Constructor Detail

IltCompositeGraphic

public IltCompositeGraphic(IltObject object,
                           IltGraphicManager manager)
Creates a composite graphic for the given object in the given manager.

Internal method or field: do not use!
Method Detail

getSynchronizationStrategy

public IlSynchronizationStrategy getSynchronizationStrategy()
Returns the synchronization strategy which will be used by the style change event dispatcher.

Specified by:
getSynchronizationStrategy in interface IlSynchronizationContext
Returns:
the synchronization strategy to be used
Internal method or field: do not use!

getLock

public Object getLock()
Lock object

Specified by:
getLock in interface IlSynchronizationContext
Returns:
an object to be use in a synchronized statement.
Internal method or field: do not use!

initStyle

protected void initStyle()
Creates the style and adds a specific listener in order to recompute the graphic representation when the style changes.

Internal method or field: do not use!

getCompositeGraphic

public IltCompositeGraphic getCompositeGraphic()
Returns the composite graphic.

Specified by:
getCompositeGraphic in interface IltGraphic
Returns:
This object

getLegend

public IltLegend getLegend()
Deprecated. Please use CSS instead.

Returns the object containing the customizable graphic properties for this composite object.

Specified by:
getLegend in interface IltGraphic
Deprecated Since:
JTGO 3.0

getInteractions

public IltCompositeInteractions getInteractions()
Deprecated. See IltCompositeInteractions

Returns the object managing the interactions for this composite object.

Specified by:
getInteractions in interface IltGraphic
See Also:
IltObject.getGraphicInteractions(ilog.tgo.graphic.IltGraphicManager)
Deprecated Since:
JTGO 4.0

isContainerGraphic

public boolean isContainerGraphic()
Deprecated. See IltContainer

Returns true if this graphic representation belongs to a container.

Specified by:
isContainerGraphic in interface IltGraphic
Deprecated Since:
JTGO 4.0

getParentGraphic

public IltGraphic getParentGraphic()
Returns the graphic object which represents the container this graphic representation belongs to, in the same IltGraphicManager.

Specified by:
getParentGraphic in interface IltGraphic
Returns:
null if this graphic representation is not a subordinate graphic object of a container

setParentGraphic

public void setParentGraphic(IltGraphic parent)
Sets the parent graphic representation. Only the container should call this function, and only once for a given IltCompositeGraphic instance.

Internal method or field: do not use!

doComputeGraphic

public void doComputeGraphic(IltObject object,
                             IltGraphicManager manager,
                             ilog.tgo.graphic.internal.IltComputeAmount amount)
Computes the graphic representation.

Specified by:
doComputeGraphic in interface IltGraphic
Internal method or field: do not use!

afterComputeGraphic

public void afterComputeGraphic(IltObject object,
                                IltGraphicManager manager)
This method is called after computing the graphical representation of the objects. It is mainly used to know when the graphical representation of the subitems have been created.

Specified by:
afterComputeGraphic in interface IltGraphic
Internal method or field: do not use!

getManager

public IltCompositeGrapher getManager()
Returns the IltcCompositeManager containing this composite graphic object, or null if it is currently not in a manager.


getParentGraphicUpdates

public ilog.tgo.mapper.IltMapping getParentGraphicUpdates()
Decoration adders positioned by the container of this graphic representation. Either null or an IltMapping with a TRUE predicate.

Internal method or field: do not use!

setParentGraphicUpdates

public void setParentGraphicUpdates(ilog.tgo.mapper.IltMapping update)
Internal method or field: do not use!

getAdditionalGraphicUpdates

public ilog.tgo.mapper.IltMapping getAdditionalGraphicUpdates()
Decoration adders positioned by other means on this graphic representation. Either null or an IltMapping with a TRUE predicate.

Internal method or field: do not use!

setAdditionalGraphicUpdates

public void setAdditionalGraphicUpdates(ilog.tgo.mapper.IltMapping update)
Internal method or field: do not use!

getInheritableGraphicUpdates

public ilog.tgo.mapper.IltMapping getInheritableGraphicUpdates()
All graphic updates that should be inherited to contained objects.

Internal method or field: do not use!

setLayoutProxyPresent

public void setLayoutProxyPresent(boolean present)
Override from IltcCompositeGraphic, to notify the layout optimizer.

Overrides:
setLayoutProxyPresent in class IltcCompositeGraphic
Internal method or field: do not use!

isBlinking

public boolean isBlinking()
Deprecated. 

Support for blinking.

Internal method or field: do not use!
Deprecated Since:
JTGO 3.0

getBlinkingData

public ilog.tgo.graphic.internal.IltBlinking getBlinkingData()
Deprecated. 

Support for blinking.

Internal method or field: do not use!
Deprecated Since:
JTGO 3.0

setBlinkingData

public void setBlinkingData(ilog.tgo.graphic.internal.IltBlinking data)
Deprecated. 

Support for blinking.

Internal method or field: do not use!
Deprecated Since:
JTGO 3.0

isVisible

public boolean isVisible()
Returns the visibility state.

Internal method or field: do not use!

setVisible

public void setVisible(boolean visible)
Changes the visibility state.

Internal method or field: do not use!

setInitialVisible

public void setInitialVisible(boolean visible)
Sets the initial visibility state, immediately after preCreateGraphic.

Internal method or field: do not use!

isLink

public boolean isLink()
Returns true when the graphic object is a link.

Internal method or field: do not use!

setLink

public void setLink(boolean isLink)
Changes the fact that the graphic object is a link.

Internal method or field: do not use!

noteAddToCompositeManager

public void noteAddToCompositeManager(IltcCompositeManager manager)
Description copied from class: IltcCompositeGraphic
This function is called when the graphic object is being added to a manager.

Overrides:
noteAddToCompositeManager in class IltcCompositeGraphic
Internal method or field: do not use!

noteRemoveFromCompositeManager

public void noteRemoveFromCompositeManager(IltcCompositeManager manager)
Description copied from class: IltcCompositeGraphic
This function is called when the graphic object is is being removed from a manager.

Overrides:
noteRemoveFromCompositeManager in class IltcCompositeGraphic
Internal method or field: do not use!

getBaseParameters

public Enumeration getBaseParameters()
Returns an enumeration of the base parameters.

Note: Base parameters are compared with ==, not equal, for efficiency.

Returns:
an enumeration of Object
Internal method or field: do not use!

getBaseParameter

public Object getBaseParameter(Object parameter)
Returns the value of a base parameter.

Internal method or field: do not use!

setBaseParameter

public void setBaseParameter(Object parameter,
                             Object value)
Sets the value of a base parameter.

Internal method or field: do not use!

removeBaseParameter

public void removeBaseParameter(Object parameter)
Removes a base parameter (and its value).

Internal method or field: do not use!

removeAllBaseParameters

public void removeAllBaseParameters()
Removes all base parameters.

Internal method or field: do not use!

getBaseParameterBoolean

public boolean getBaseParameterBoolean(Object parameter,
                                       boolean defaultValue)
Returns the value of a base parameter denoting a Boolean.

Internal method or field: do not use!

hasGraphicSetting

public boolean hasGraphicSetting(ilog.tgo.graphic.internal.IltGraphicSetting setting)
Tests whether this object has a given graphic setting.

Internal method or field: do not use!

getGraphicSetting

public Object getGraphicSetting(ilog.tgo.graphic.internal.IltGraphicSetting setting)
Returns the value of a given graphic setting. If no value is present, a default value is computed and inserted.

Internal method or field: do not use!

setGraphicSetting

public void setGraphicSetting(ilog.tgo.graphic.internal.IltGraphicSetting setting,
                              Object value)
Sets the the value of a given graphic setting.

Parameters:
value - Setting value
Internal method or field: do not use!

removeGraphicSetting

public void removeGraphicSetting(ilog.tgo.graphic.internal.IltGraphicSetting setting)
Removes a given graphic setting, thus implicitly reverting to the default value.

Internal method or field: do not use!

removeAllGraphicSettings

public void removeAllGraphicSettings()
Removes all graphic settings.

Internal method or field: do not use!

getGraphicSettings

public IltGraphicSettings getGraphicSettings()
Returns all (non-transient) graphic settings altogether.

Internal method or field: do not use!

addShapeChangedListener

public void addShapeChangedListener(IltShapeChangedListener listener)
Adds a shape change listener.


removeShapeChangedListener

public void removeShapeChangedListener(IltShapeChangedListener listener)
Removes a shape change listener.


noteShapeChanged

public void noteShapeChanged(Object newShapeInManager,
                             IlpPositionSource reason)
Internal method or field: do not use!

getGraphicRepresentationStyle

public ilog.tgo.graphic.internal.IltGraphicRepresentationStyle getGraphicRepresentationStyle()
Returns the graphic representation style.

Internal method or field: do not use!

getAttacher

public ilog.tgo.attacher.IltAttacher getAttacher()
Returns the current attacher.

Internal method or field: do not use!

getDecorationContainer

public ilog.tgo.graphic.internal.IltDecorationContainer getDecorationContainer()
Returns the object responsible for storing the decorations that will be part of this graphic.

Internal method or field: do not use!

getObject

public IltObject getObject()
Deprecated. Use IltObject.FromGraphic(IltCompositeGraphic) instead.

Return the object associated to this graphic.

See Also:
IltObject.FromGraphic(ilog.tgo.graphic.IltGraphic)
Internal method or field: do not use!
Deprecated Since:
JTGO 1.0

getManagerNotNull

public IltGraphicManager getManagerNotNull()
Internal method or field: do not use!

setManagerNotNull

public void setManagerNotNull(IltGraphicManager manager)
Internal method or field: do not use!

_setLogicalValue

public void _setLogicalValue(boolean value)
This attribute stores the last value of isLogical set in this graphic. This value is used when we want to check if the current value of IsLogical legend value is different for an old one, for instance to to verify inside a computeGraphic if this legend value has changed. This can be removed later if in the endChangingStyleValues method we could know which legend value has changed to execute the proper modifications. This attribute is used by IltLinkSet, IltShelf and IltCardCarrier.

Internal method or field: do not use!

_hasLogicalChanged

public boolean _hasLogicalChanged(boolean value)
Verifies if the given value is different from the stored value.

Internal method or field: do not use!

isLogical

public boolean isLogical()
Returns if the logical representation is set in the legend.

Internal method or field: do not use!

computeMapping

public void computeMapping()
Computes the base parameters and graphic settings for a graphic representation.

Internal method or field: do not use!

createBase

protected ilog.tgo.graphic.internal.base.IltBaseElement createBase(IltcGraphicElementAggregate root,
                                                                   IltObject obj)
Creates the base of the graphical representation. In the Logical Graphic Representation Style (GRS) case, the base does not depend on the IltObject.

In the Tiny and Symbolic GRS cases the base creation is delegated to the IltObject.

Internal method or field: do not use!

initHierarchy2

public void initHierarchy2(IltcGraphicElementAggregate root,
                           ilog.tgo.graphic.internal.base.IltBaseElement base)
Internal method or field: do not use!

recomputeGraphic

public void recomputeGraphic()
Recompute if object is visible, invisible or if it is in a tree and not in a manager. But don't recompute graphic objects that have been removed using removeGraphic.

Internal method or field: do not use!

recomputeGraphic1

public void recomputeGraphic1()
Reinitializes a visible graphic object, after some legend values have changed which might even affect the structure of the element hierarchy.

Internal method or field: do not use!

recomputeGraphicOnlyShape

public void recomputeGraphicOnlyShape()
Reinitializes a visible graphic object, after only the shape has changed.

Internal method or field: do not use!

customizeGraphic

protected void customizeGraphic(IltGraphicElementAggregate root)
This method allows CPL users to add new decorations to a composite graphic. In order to add new decorations, the user must register a IlpGraphicRenderer in the representation object style. Only the method IlpGraphicRenderer.updateGraphic will be called. When implementing this method, the user will be able to add new decorations and attach them around the base object. The user will have to cast the received IlpGraphic into an IltGraphicElementAggregate.

Internal method or field: do not use!

applyTransform

public void applyTransform(IlvTransformer t,
                           IlpPositionSource reason)
Applies a transform to this graphic object as a whole.

Overrides:
applyTransform in class IltcCompositeGraphic
Parameters:
t - the transformer to be applied in this graphic.
reason - the reason for the transform, or null if unknown.

applyZoomTransform

public void applyZoomTransform(IlvTransformer t)
Applies a transform to this graphic object as a whole, but note it is a zoom transform; the logical position/shape of the object shouldn't change.

Overrides:
applyZoomTransform in class IltcCompositeGraphic
Internal method or field: do not use!

getVisibilityThreshold

public double[] getVisibilityThreshold(IltGraphicElementName elementName)
Returns the visibility threshold for the given element.

Internal method or field: do not use!

getInteractor

public IlvObjectInteractor getInteractor(ilog.tgo.composite.internal.IltcGraphicElement g)
Returns the interactor to be positioned on a graphic element.

This implementation looks it up in the root's interactions object.

Overrides:
getInteractor in class IltcCompositeGraphic
Internal method or field: do not use!

getBase

public ilog.tgo.graphic.internal.base.IltBaseElement getBase()
Returns the base element.

Internal method or field: do not use!

getGraphicLabel

public IlpGraphic getGraphicLabel()
Returns the graphic corresponding to the label of this element.

Returns:
Label graphic

getGraphicLabelRecursive

protected ilog.tgo.graphic.internal.decoration.IltLabelDecoration getGraphicLabelRecursive(Collection children)
Internal method or field: do not use!

linkConnectionRect

public IlvRect linkConnectionRect(float magnification,
                                  boolean topleftOnePixelCorrection)
Returns the rectangle to which links can connect.

Overrides:
linkConnectionRect in class IltcCompositeGraphic
Parameters:
magnification - magnification factor, a hint for the computations, > 0
Internal method or field: do not use!

createCompositePart

public ilog.tgo.composite.internal.IltcCompositePart createCompositePart(IltcLayer macroLayer)
Returns a new per-layer part for this graphic object.

Overrides:
createCompositePart in class IltcCompositeGraphic
Internal method or field: do not use!

createNodeLayoutProxy

public ilog.tgo.composite.internal.IltcCompositeLayoutProxy createNodeLayoutProxy()
Returns a new layout proxy for this graphic object.

Overrides:
createNodeLayoutProxy in class IltcCompositeGraphic
Internal method or field: do not use!

createLinkLayoutProxy

public ilog.tgo.composite.internal.IltcCompositeLinkLayoutProxy createLinkLayoutProxy(IltcCompositeGraphic from,
                                                                                      IltcCompositeGraphic to)
Returns a new link layout proxy for this graphic object.

Overrides:
createLinkLayoutProxy in class IltcCompositeGraphic
Internal method or field: do not use!

createNodeInteractiveProxy

public ilog.tgo.composite.internal.IltcCompositeInteractiveProxy createNodeInteractiveProxy()
Returns a new interactive proxy for this graphic object.

Overrides:
createNodeInteractiveProxy in class IltcCompositeGraphic
Returns:
not an instance of IlvPolyPointsInterface
Internal method or field: do not use!

createLinkInteractiveProxy

public ilog.tgo.composite.internal.IltcCompositeInteractiveProxy createLinkInteractiveProxy()
Returns a new link interactive proxy for this graphic object.

Overrides:
createLinkInteractiveProxy in class IltcCompositeGraphic
Returns:
an instance of IlvPolyPointsInterface
Internal method or field: do not use!

drawGhost

protected void drawGhost(Graphics g,
                         IlvTransformer t)
Draws an outline of the composite graphic object.

This implementation only sketches the base.

Overrides:
drawGhost in class IltcCompositeGraphic
Parameters:
g - a graphics context in XOR mode
Internal method or field: do not use!

setInhibitSetSelected

public void setInhibitSetSelected(boolean inhibit)
Turns the setSelected inhibition on or off.

Internal method or field: do not use!

setSelected

public void setSelected(boolean selected)
Changes the composite graphic object so that is appears selected.

Overrides:
setSelected in class IltcCompositeGraphic
Internal method or field: do not use!

isEditable

public boolean isEditable()
Returns the "editable" state of the composite graphic object.

Internal method or field: do not use!

isMovable

public boolean isMovable()
Returns if the given object can be moved or not through user interactions.

Customization is done via CSS.

Overrides:
isMovable in class IltcCompositeGraphic
Since:
JTGO 4.0
Internal method or field: do not use!

isSelectable

public boolean isSelectable()
Returns true if the graphic object shall be treated as selectable by the IlvManager and IlvSelectInteractor.

Overrides:
isSelectable in class IltcCompositeGraphic
Internal method or field: do not use!

makeSelection

public IlvSelection makeSelection()
Returns the graphic object which shall be displayed in the topmost layer while the composite graphic object is selected.

Overrides:
makeSelection in class IltcCompositeGraphic
Internal method or field: do not use!

initComponent

public void initComponent(IltObject object)
Sets the object to visible and the telecom object which is being represented.

Internal method or field: do not use!

drawElements

public void drawElements(Graphics g,
                         IlvTransformer t,
                         IltGraphicElementName name)
Draws all subobjects of the composite graphic object.

Internal method or field: do not use!

getElementBounds

public IlvRect getElementBounds(IltGraphicElementName name,
                                IlvTransformer t)
Returns the bounding box of the requested graphic element.

Internal method or field: do not use!

getComponent

public JComponent getComponent()
Returns the Java component responsible for the display of this graphic. The respective component can only be created using the IltComponentManager and IltObject API.

Specified by:
getComponent in interface IlpGraphic
Overrides:
getComponent in class IltcCompositeGraphic
Internal method or field: do not use!

getGraphicElement

public ilog.tgo.graphic.internal.IltGraphicElement getGraphicElement(IlvPoint tp,
                                                                     IlvTransformer trans)
Returns the graphic element which contains the given transformed point.

Internal method or field: do not use!

completeGraphic

public void completeGraphic(IlpGraphicView view,
                            IlpRepresentationObject ro)
Complete the composite graphic creation. This method should be called just once, when the composite graphic is created.

Internal method or field: do not use!

setRepresentationObject

public void setRepresentationObject(IlpRepresentationObject ro)
Sets the object that this instance is representing.

Overrides:
setRepresentationObject in class IltcCompositeGraphic
Internal method or field: do not use!

removeGraphic

public void removeGraphic()
Call removeGraphic on the IltObject o