public class IltCompositeGraphic extends IltcCompositeGraphic implements IltGraphic, IlSynchronizationContext
| Modifier and Type | Field and Description |
|---|---|
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.
|
AlarmBalloonBorderColor, AlarmBalloonColor, AlarmBalloonOrientation, AlarmBalloonPointerDepth, AlarmBalloonPointerDistance, AlarmBalloonRadius, AlarmBalloonShadowColor, AlarmBalloonShadowThickness, AlarmCountLabelBackgroundColor, AlarmCountOuterBorderColor, CenteredInsets, InfoBalloonBorderColor, InfoBalloonColor, InfoBalloonOrientation, InfoBalloonPointerDepth, InfoBalloonShadowColor, InfoBalloonShadowThickness, StackerAlignment, StackerOrientation, StackerSpacing| Constructor and Description |
|---|
IltCompositeGraphic(IltObject object,
IltGraphicManager manager)
Creates a composite graphic for the given object in the
given manager.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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(double 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.
|
_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, setViewprotected IltGraphic _parent
public static ilog.tgo.graphic.internal.IltGraphicSetting Selected
Boolean.@Deprecated public static ilog.tgo.graphic.internal.IltGraphicSetting Editable
IltObject.IsEditable instead.Boolean.public static ilog.tgo.graphic.internal.IltGraphicSetting InfoIcon
IltInfoIconData.public static ilog.tgo.graphic.internal.IltGraphicSetting SystemIcon
IltInfoIconData.public IlpStyleListenerSupport _styleListenerForCPL
public IltShapeChangedListener _shapeListenerForCPL
public IltCompositeGraphic(IltObject object, IltGraphicManager manager)
public IlSynchronizationStrategy getSynchronizationStrategy()
getSynchronizationStrategy in interface IlSynchronizationContextpublic Object getLock()
getLock in interface IlSynchronizationContextprotected void initStyle()
public IltCompositeGraphic getCompositeGraphic()
getCompositeGraphic in interface IltGraphic@Deprecated public IltLegend getLegend()
getLegend in interface IltGraphic@Deprecated public IltCompositeInteractions getInteractions()
IltCompositeInteractionsgetInteractions in interface IltGraphicIltObject.getGraphicInteractions(ilog.tgo.graphic.IltGraphicManager)@Deprecated public boolean isContainerGraphic()
IltContainerisContainerGraphic in interface IltGraphicpublic IltGraphic getParentGraphic()
getParentGraphic in interface IltGraphicnull if this graphic representation is not a
subordinate graphic object of a containerpublic void setParentGraphic(IltGraphic parent)
public void doComputeGraphic(IltObject object, IltGraphicManager manager, ilog.tgo.graphic.internal.IltComputeAmount amount)
doComputeGraphic in interface IltGraphicpublic void afterComputeGraphic(IltObject object, IltGraphicManager manager)
afterComputeGraphic in interface IltGraphicpublic IltCompositeGrapher getManager()
null if it is currently not in a manager.public ilog.tgo.mapper.IltMapping getParentGraphicUpdates()
public void setParentGraphicUpdates(ilog.tgo.mapper.IltMapping update)
public ilog.tgo.mapper.IltMapping getAdditionalGraphicUpdates()
public void setAdditionalGraphicUpdates(ilog.tgo.mapper.IltMapping update)
public ilog.tgo.mapper.IltMapping getInheritableGraphicUpdates()
public void setLayoutProxyPresent(boolean present)
setLayoutProxyPresent in class IltcCompositeGraphic@Deprecated public boolean isBlinking()
@Deprecated public ilog.tgo.graphic.internal.IltBlinking getBlinkingData()
@Deprecated public void setBlinkingData(ilog.tgo.graphic.internal.IltBlinking data)
public boolean isVisible()
public void setVisible(boolean visible)
public void setInitialVisible(boolean visible)
public boolean isLink()
public void setLink(boolean isLink)
public void noteAddToCompositeManager(IltcCompositeManager manager)
IltcCompositeGraphicnoteAddToCompositeManager in class IltcCompositeGraphicpublic void noteRemoveFromCompositeManager(IltcCompositeManager manager)
IltcCompositeGraphicnoteRemoveFromCompositeManager in class IltcCompositeGraphicpublic Enumeration getBaseParameters()
Note: Base parameters are compared with ==, not equal, for efficiency.
Objectpublic Object getBaseParameter(Object parameter)
public void setBaseParameter(Object parameter, Object value)
public void removeBaseParameter(Object parameter)
public void removeAllBaseParameters()
public boolean getBaseParameterBoolean(Object parameter, boolean defaultValue)
public boolean hasGraphicSetting(ilog.tgo.graphic.internal.IltGraphicSetting setting)
public Object getGraphicSetting(ilog.tgo.graphic.internal.IltGraphicSetting setting)
public void setGraphicSetting(ilog.tgo.graphic.internal.IltGraphicSetting setting,
Object value)
value - Setting valuepublic void removeGraphicSetting(ilog.tgo.graphic.internal.IltGraphicSetting setting)
public void removeAllGraphicSettings()
public IltGraphicSettings getGraphicSettings()
public void addShapeChangedListener(IltShapeChangedListener listener)
public void removeShapeChangedListener(IltShapeChangedListener listener)
public void noteShapeChanged(Object newShapeInManager, IlpPositionSource reason)
public ilog.tgo.graphic.internal.IltGraphicRepresentationStyle getGraphicRepresentationStyle()
public ilog.tgo.attacher.IltAttacher getAttacher()
public ilog.tgo.graphic.internal.IltDecorationContainer getDecorationContainer()
@Deprecated public IltObject getObject()
IltObject.FromGraphic(ilog.tgo.graphic.IltGraphic)public IltGraphicManager getManagerNotNull()
public void setManagerNotNull(IltGraphicManager manager)
public void _setLogicalValue(boolean value)
public boolean _hasLogicalChanged(boolean value)
public boolean isLogical()
public void computeMapping()
protected ilog.tgo.graphic.internal.base.IltBaseElement createBase(IltcGraphicElementAggregate root, IltObject obj)
IltObject.
In the Tiny and Symbolic GRS cases the base creation is delegated to the
IltObject.
public void initHierarchy2(IltcGraphicElementAggregate root, ilog.tgo.graphic.internal.base.IltBaseElement base)
public void recomputeGraphic()
public void recomputeGraphic1()
public void recomputeGraphicOnlyShape()
protected void customizeGraphic(IltGraphicElementAggregate root)
public void applyTransform(IlvTransformer t, IlpPositionSource reason)
applyTransform in class IltcCompositeGraphict - the transformer to be applied in this graphic.reason - the reason for the transform, or null if unknown.public void applyZoomTransform(IlvTransformer t)
applyZoomTransform in class IltcCompositeGraphicpublic double[] getVisibilityThreshold(IltGraphicElementName elementName)
public IlvObjectInteractor getInteractor(ilog.tgo.composite.internal.IltcGraphicElement g)
This implementation looks it up in the root's interactions object.
getInteractor in class IltcCompositeGraphicpublic ilog.tgo.graphic.internal.base.IltBaseElement getBase()
public IlpGraphic getGraphicLabel()
protected ilog.tgo.graphic.internal.decoration.IltLabelDecoration getGraphicLabelRecursive(Collection children)
public IlvRect linkConnectionRect(double magnification, boolean topleftOnePixelCorrection)
linkConnectionRect in class IltcCompositeGraphicmagnification - magnification factor, a hint for the computations, > 0public ilog.tgo.composite.internal.IltcCompositePart createCompositePart(IltcLayer macroLayer)
createCompositePart in class IltcCompositeGraphicpublic ilog.tgo.composite.internal.IltcCompositeLayoutProxy createNodeLayoutProxy()
createNodeLayoutProxy in class IltcCompositeGraphicpublic ilog.tgo.composite.internal.IltcCompositeLinkLayoutProxy createLinkLayoutProxy(IltcCompositeGraphic from, IltcCompositeGraphic to)
createLinkLayoutProxy in class IltcCompositeGraphicpublic ilog.tgo.composite.internal.IltcCompositeInteractiveProxy createNodeInteractiveProxy()
createNodeInteractiveProxy in class IltcCompositeGraphicpublic ilog.tgo.composite.internal.IltcCompositeInteractiveProxy createLinkInteractiveProxy()
createLinkInteractiveProxy in class IltcCompositeGraphicprotected void drawGhost(Graphics g, IlvTransformer t)
This implementation only sketches the base.
drawGhost in class IltcCompositeGraphicg - a graphics context in XOR modepublic void setInhibitSetSelected(boolean inhibit)
public void setSelected(boolean selected)
setSelected in class IltcCompositeGraphicpublic boolean isEditable()
public boolean isMovable()
Customization is done via CSS.
isMovable in class IltcCompositeGraphicpublic boolean isSelectable()
isSelectable in class IltcCompositeGraphicpublic IlvSelection makeSelection()
makeSelection in class IltcCompositeGraphicpublic void initComponent(IltObject object)
public void drawElements(Graphics g, IlvTransformer t, IltGraphicElementName name)
public IlvRect getElementBounds(IltGraphicElementName name, IlvTransformer t)
public JComponent getComponent()
getComponent in interface IlpGraphicgetComponent in class IltcCompositeGraphicpublic ilog.tgo.graphic.internal.IltGraphicElement getGraphicElement(IlvPoint tp, IlvTransformer trans)
public void completeGraphic(IlpGraphicView view, IlpRepresentationObject ro)
public void setRepresentationObject(IlpRepresentationObject ro)
setRepresentationObject in class IltcCompositeGraphicpublic void removeGraphic()
public String toString()
public static void ForceInit(ilog.tgo.util.internal.IltForceClassInit object)
© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.