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, _listenerSupport
AlarmBalloonBorderColor, 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, setParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addGraphicChangeListener, fireEvent, getAttribute, getParent, getRepresentationObject, getView, removeGraphicChangeListener, setParent
getAttachmentManager
protected List _children
public IltcGraphicElementAggregate(IlpAttribute attr, IlpAttachmentManager attachmanager)
public IlpGraphic getBase()
public void addChild(IlpGraphic graphic, IlpAttachment attachment)
public IlpRect getAttachmentBounds()
getAttachmentBounds
in interface IlpAttachable
public void computeFixedCoordinates()
computeFixedCoordinates
in interface IlpAttachable
public void computeAttachmentCoordinates()
computeAttachmentCoordinates
in interface IlpAttachable
protected void computeChildrenAttachmentCoordinates()
public void computeAttachmentBounds()
public IlpAttachment getAttachment(IlpGraphic graphic)
getAttachment
in interface IlpAttachmentManager
public void setAttachment(IlpGraphic graphic, IlpAttachment attachment)
setAttachment
in interface IlpAttachmentManager
public void computeAttachmentCoordinates(IlpGraphic graphic)
computeAttachmentCoordinates
in interface IlpAttachmentManager
public JComponent getComponent()
getComponent
in interface IlpGraphic
public boolean contains(Point p)
contains
in interface IlpGraphic
public Collection getChildren()
getChildren
in interface IlpGraphicContainment
public int getChildCount()
getChildCount
in interface IlpGraphicContainment
public ilog.tgo.composite.internal.IltcGraphicChild childAt(int n)
public void addChild(IlpGraphic graphic)
addChild
in interface IlpGraphicContainment
public void removeChild(IlpGraphic graphic)
removeChild
in interface IlpGraphicContainment
public void removeChildren()
removeChildren
in interface IlpGraphicContainment
public void apply(ilog.tgo.composite.internal.IltcApplyToElement f)
apply
in interface ilog.tgo.composite.internal.IltcGraphicModifier
public void apply(IlvApplyObject f, Object arg)
apply
in interface ilog.tgo.composite.internal.IltcGraphicModifier
public Object call(ilog.tgo.composite.internal.IltcCallOnElement f)
call
in interface ilog.tgo.composite.internal.IltcGraphicModifier
public Object call(ilog.cpl.graphic.views.internal.IlpCallObject f)
call
in interface ilog.tgo.composite.internal.IltcGraphicModifier
public void apply(ilog.cpl.graphic.internal.IlpApplyToGraphic f)
apply
in interface ilog.cpl.graphic.internal.IlpGraphicModifier
public void apply(ilog.cpl.graphic.internal.IlpApplyToGraphic f, boolean postOrder)
apply
in interface ilog.cpl.graphic.internal.IlpGraphicModifier
public Object call(ilog.cpl.graphic.internal.IlpCallOnGraphic f)
call
in interface ilog.cpl.graphic.internal.IlpGraphicModifier
public 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.