public class IlpLeafGraphic extends IlpAbstractGraphic implements ilog.cpl.graphic.internal.IlpHotSpot
AlarmBalloonBorderColor, AlarmBalloonColor, AlarmBalloonOrientation, AlarmBalloonPointerDepth, AlarmBalloonPointerDistance, AlarmBalloonRadius, AlarmBalloonShadowColor, AlarmBalloonShadowThickness, AlarmCountLabelBackgroundColor, AlarmCountOuterBorderColor, CenteredInsets, InfoBalloonBorderColor, InfoBalloonColor, InfoBalloonOrientation, InfoBalloonPointerDepth, InfoBalloonShadowColor, InfoBalloonShadowThickness, StackerAlignment, StackerOrientation, StackerSpacing| Modifier | Constructor and Description |
|---|---|
protected |
IlpLeafGraphic(IlpGraphicView graphicView,
IlpRepresentationObject object)
Creates a graphic to represent the given object inside
the given view.
|
protected |
IlpLeafGraphic(IlpGraphicView graphicView,
IlpRepresentationObject object,
IlpAttribute attribute)
Creates a graphic to represent an attribute in the given object
inside the given view.
|
|
IlpLeafGraphic(IlpGraphicView graphicView,
IlpRepresentationObject object,
IlpAttribute attribute,
JComponent c)
Creates a graphic to represent an attribute in the given object
inside the given view.
|
|
IlpLeafGraphic(IlpGraphicView graphicView,
IlpRepresentationObject object,
JComponent c)
Creates a graphic to represent the given object inside
the given view.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(IlpGraphic child)
Adds a child to this graphic, creating a composite
representation.
|
void |
computeAttachmentCoordinates()
Computes the values of all attachments, recursively traversing the tree.
|
void |
computeFixedCoordinates()
Prepares the attachment rectangle.
|
IlpRect |
getAttachmentBounds()
Returns the "attachment rectangle".
|
int |
getChildCount()
Returns the number of child graphics.
|
Collection |
getChildren()
Returns a collection with all graphics present in
this composite.
|
JComponent |
getComponent()
Returns the Java component responsible for drawing this
object.
|
IlpPoint |
getHotSpot()
Returns the hotspot.
|
void |
removeChild(IlpGraphic child)
Removes the given child from this composite graphic.
|
void |
removeChildren()
Removes all the children.
|
void |
setComponent(JComponent c)
Sets the component responsible for the drawing of
this graphic.
|
addGraphicChangeListener, contains, fireEvent, getAttachmentManager, getAttachmentRect, getAttribute, getParent, getRepresentationObject, getRoot, getView, invalidateAttachmentRect, removeGraphicChangeListener, setAttachmentManager, setAttachmentRect, setAttribute, setComponentNoInvalidate, setParentprotected IlpLeafGraphic(IlpGraphicView graphicView, IlpRepresentationObject object)
graphicView - View in which the object is being represented.object - The object that is being represented by this graphic.protected IlpLeafGraphic(IlpGraphicView graphicView, IlpRepresentationObject object, IlpAttribute attribute)
graphicView - View in which the object is being represented.object - The object that is being represented.attribute - The attribute that is being represented by this graphic.public IlpLeafGraphic(IlpGraphicView graphicView, IlpRepresentationObject object, JComponent c)
graphicView - View in which the object is being represented.object - The object that is being represented by this graphic.c - The Java component being displayed.public IlpLeafGraphic(IlpGraphicView graphicView, IlpRepresentationObject object, IlpAttribute attribute, JComponent c)
graphicView - View in which the object is being represented.object - The object that is being represented.attribute - The attribute that is being represented by this graphic.c - The Java component being displayedpublic IlpRect getAttachmentBounds()
getAttachmentBounds in interface IlpAttachablepublic void computeFixedCoordinates()
computeCoordinates. Its job is to set those parts
of the attachment rectangle which will not be determined by
attachments. This means, normally, computing the size
of the graphic object and its subobjects, but it may also mean
setting the position of the attachment rectangle.computeFixedCoordinates in interface IlpAttachablepublic void computeAttachmentCoordinates()
computeAttachmentCoordinates in interface IlpAttachablepublic JComponent getComponent()
getComponent in interface IlpGraphicpublic void setComponent(JComponent c)
setComponent in class IlpAbstractGraphicpublic void addChild(IlpGraphic child)
addChild in interface IlpGraphicContainmentpublic void removeChild(IlpGraphic child)
removeChild in interface IlpGraphicContainmentpublic void removeChildren()
removeChildren in interface IlpGraphicContainmentpublic Collection getChildren()
getChildren in interface IlpGraphicContainmentpublic int getChildCount()
getChildCount in interface IlpGraphicContainmentpublic IlpPoint getHotSpot()
getAttachmentBounds().getHotSpot in interface ilog.cpl.graphic.internal.IlpHotSpot© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.