|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.tgo.composite.internal.IltcGraphicChild
ilog.tgo.composite.IltcGraphicElementAggregate
public abstract class IltcGraphicElementAggregate
This class implements a composite graphic which contains a list of children decorations.
| Field Summary | |
|---|---|
protected List |
_children
The child nodes. |
| Fields inherited from class ilog.tgo.composite.internal.IltcGraphicChild |
|---|
_attachmanager, _attachrect, _attribute, _component, _listenerSupport |
| Constructor Summary | |
|---|---|
IltcGraphicElementAggregate(IlpAttribute attr,
IlpAttachmentManager attachmanager)
Constructs a new instance, associated with a distinguished graphic object. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class ilog.tgo.composite.internal.IltcGraphicChild |
|---|
addGraphicChangeListener, fireEvent, getAttachmentManager, getAttribute, getParent, getRepresentationObject, getRootGraphic, getView, isVisible, removeGraphicChangeListener, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ilog.cpl.graphic.IlpGraphic |
|---|
addGraphicChangeListener, fireEvent, getAttribute, getParent, getRepresentationObject, getView, removeGraphicChangeListener, setParent |
| Methods inherited from interface ilog.cpl.graphic.attachment.IlpAttachable |
|---|
getAttachmentManager |
| Field Detail |
|---|
protected List _children
| Constructor Detail |
|---|
public IltcGraphicElementAggregate(IlpAttribute attr,
IlpAttachmentManager attachmanager)
| Method Detail |
|---|
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 IlpAttachmentManager
public 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.IltcGraphicModifier
public 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.IlpGraphicModifier
public 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
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||