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, setParent
protected 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 IlpAttachable
public 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 IlpAttachable
public void computeAttachmentCoordinates()
computeAttachmentCoordinates
in interface IlpAttachable
public JComponent getComponent()
getComponent
in interface IlpGraphic
public void setComponent(JComponent c)
setComponent
in class IlpAbstractGraphic
public void addChild(IlpGraphic child)
addChild
in interface IlpGraphicContainment
public void removeChild(IlpGraphic child)
removeChild
in interface IlpGraphicContainment
public void removeChildren()
removeChildren
in interface IlpGraphicContainment
public Collection getChildren()
getChildren
in interface IlpGraphicContainment
public int getChildCount()
getChildCount
in interface IlpGraphicContainment
public IlpPoint getHotSpot()
getAttachmentBounds()
.getHotSpot
in interface ilog.cpl.graphic.internal.IlpHotSpot
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.