public abstract class IltcGraphicElementAggregate extends ilog.tgo.composite.internal.IltcGraphicChild implements IlpAttachmentManager, IlpGraphic
| Modifier and Type | Field and Description |
|---|---|
protected List |
_children
The child nodes.
|
_attachmanager, _attachrect, _attribute, _component, _listenerSupportAlarmBalloonBorderColor, AlarmBalloonColor, AlarmBalloonOrientation, AlarmBalloonPointerDepth, AlarmBalloonPointerDistance, AlarmBalloonRadius, AlarmBalloonShadowColor, AlarmBalloonShadowThickness, AlarmCountLabelBackgroundColor, AlarmCountOuterBorderColor, CenteredInsets, InfoBalloonBorderColor, InfoBalloonColor, InfoBalloonOrientation, InfoBalloonPointerDepth, InfoBalloonShadowColor, InfoBalloonShadowThickness, StackerAlignment, StackerOrientation, StackerSpacing| Constructor and Description |
|---|
IltcGraphicElementAggregate(IlpAttribute attr,
IlpAttachmentManager attachmanager)
Constructs a new instance, associated with a distinguished graphic object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(IlpGraphic graphic)
Adds a new child node.
|
void |
addChild(IlpGraphic graphic,
IlpAttachment attachment)
Adds a new child graphic with the given attachment rule.
|
void |
apply(ilog.cpl.graphic.internal.IlpApplyToGraphic f)
Applies the given function to the graphic.
|
void |
apply(ilog.cpl.graphic.internal.IlpApplyToGraphic f,
boolean postOrder)
Applies the given function to the graphic in the
given order.
|
void |
apply(ilog.tgo.composite.internal.IltcApplyToElement f)
Recursively applies a function to all leaves.
|
void |
apply(IlvApplyObject f,
Object arg)
Recursively applies a function to all leaves.
|
Object |
call(ilog.cpl.graphic.views.internal.IlpCallObject f)
Recursively applies a function to all leaves, and returns the first
non-null value produced.
|
Object |
call(ilog.cpl.graphic.internal.IlpCallOnGraphic f)
Recursively applies a function to all leaves, and returns the first
non-null value produced.
|
Object |
call(ilog.tgo.composite.internal.IltcCallOnElement f)
Recursively applies a function to all leaves, and returns the first
non-null value produced.
|
ilog.tgo.composite.internal.IltcGraphicChild |
childAt(int n)
Returns the n-th child in the hierarchy, in the order of the collection
getChildren().
|
void |
computeAttachmentBounds()
Computes the composite attachment bounds based on the
children bounds.
|
void |
computeAttachmentCoordinates()
Computes the values of all attachments, recursively traversing the tree.
|
void |
computeAttachmentCoordinates(IlpGraphic graphic)
Computes the attachment coordinates of this composite graphic.
|
protected void |
computeChildrenAttachmentCoordinates()
Compute the attachment coordinates of the children graphics.
|
void |
computeFixedCoordinates()
This methods prepares the attachment rectangle.
|
boolean |
contains(Point p)
Returns if the given point is contained in this graphic instance.
|
IlpAttachment |
getAttachment(IlpGraphic graphic)
Returns the attachment of the given graphic object.
|
IlpRect |
getAttachmentBounds()
Returns the "attachment rectangle".
|
IlpGraphic |
getBase()
Get the base element.
|
IlvRect |
getBoundingBox()
Returns the bounding box of the set of
IlvGraphic objects
associated with this object. |
int |
getChildCount()
Returns the number of all children in the hierarchy.
|
Collection |
getChildren()
Returns a collection with all graphics present in
this composite.
|
JComponent |
getComponent()
Returns the Java component responsible for the display
of this graphic.
|
void |
removeChild(IlpGraphic graphic)
Removes a child node.
|
void |
removeChildren()
Removes all children objects.
|
void |
setAttachment(IlpGraphic graphic,
IlpAttachment attachment)
Attaches the corresponding graphic object to another one.
|
addGraphicChangeListener, fireEvent, getAttachmentManager, getAttribute, getParent, getRepresentationObject, getRootGraphic, getView, isVisible, removeGraphicChangeListener, setParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddGraphicChangeListener, fireEvent, getAttribute, getParent, getRepresentationObject, getView, removeGraphicChangeListener, setParentgetAttachmentManagerprotected List _children
public IltcGraphicElementAggregate(IlpAttribute attr, IlpAttachmentManager attachmanager)
public IlpGraphic getBase()
public void addChild(IlpGraphic graphic, IlpAttachment attachment)
public IlpRect getAttachmentBounds()
getAttachmentBounds in interface IlpAttachablepublic void computeFixedCoordinates()
computeFixedCoordinates in interface IlpAttachablepublic void computeAttachmentCoordinates()
computeAttachmentCoordinates in interface IlpAttachableprotected void computeChildrenAttachmentCoordinates()
public void computeAttachmentBounds()
public IlpAttachment getAttachment(IlpGraphic graphic)
getAttachment in interface IlpAttachmentManagerpublic void setAttachment(IlpGraphic graphic, IlpAttachment attachment)
setAttachment in interface IlpAttachmentManagerpublic void computeAttachmentCoordinates(IlpGraphic graphic)
computeAttachmentCoordinates in interface IlpAttachmentManagerpublic JComponent getComponent()
getComponent in interface IlpGraphicpublic boolean contains(Point p)
contains in interface IlpGraphicpublic Collection getChildren()
getChildren in interface IlpGraphicContainmentpublic int getChildCount()
getChildCount in interface IlpGraphicContainmentpublic ilog.tgo.composite.internal.IltcGraphicChild childAt(int n)
public void addChild(IlpGraphic graphic)
addChild in interface IlpGraphicContainmentpublic void removeChild(IlpGraphic graphic)
removeChild in interface IlpGraphicContainmentpublic void removeChildren()
removeChildren in interface IlpGraphicContainmentpublic void apply(ilog.tgo.composite.internal.IltcApplyToElement f)
apply in interface ilog.tgo.composite.internal.IltcGraphicModifierpublic void apply(IlvApplyObject f, Object arg)
apply in interface ilog.tgo.composite.internal.IltcGraphicModifierpublic Object call(ilog.tgo.composite.internal.IltcCallOnElement f)
call in interface ilog.tgo.composite.internal.IltcGraphicModifierpublic Object call(ilog.cpl.graphic.views.internal.IlpCallObject f)
call in interface ilog.tgo.composite.internal.IltcGraphicModifierpublic void apply(ilog.cpl.graphic.internal.IlpApplyToGraphic f)
apply in interface ilog.cpl.graphic.internal.IlpGraphicModifierpublic void apply(ilog.cpl.graphic.internal.IlpApplyToGraphic f,
boolean postOrder)
apply in interface ilog.cpl.graphic.internal.IlpGraphicModifierpublic Object call(ilog.cpl.graphic.internal.IlpCallOnGraphic f)
call in interface ilog.cpl.graphic.internal.IlpGraphicModifierpublic IlvRect getBoundingBox()
IlvGraphic objects
associated with this object.getBoundingBox in class ilog.tgo.composite.internal.IltcGraphicChild© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.