public abstract class IlpAbstractGraphic extends Object implements IlpGraphic
AlarmBalloonBorderColor, AlarmBalloonColor, AlarmBalloonOrientation, AlarmBalloonPointerDepth, AlarmBalloonPointerDistance, AlarmBalloonRadius, AlarmBalloonShadowColor, AlarmBalloonShadowThickness, AlarmCountLabelBackgroundColor, AlarmCountOuterBorderColor, CenteredInsets, InfoBalloonBorderColor, InfoBalloonColor, InfoBalloonOrientation, InfoBalloonPointerDepth, InfoBalloonShadowColor, InfoBalloonShadowThickness, StackerAlignment, StackerOrientation, StackerSpacing
Constructor and Description |
---|
IlpAbstractGraphic(IlpGraphicView view,
IlpRepresentationObject object)
Creates a graphic to represent the given object inside
the given view.
|
IlpAbstractGraphic(IlpGraphicView view,
IlpRepresentationObject object,
IlpAttribute attribute)
Creates a graphic to represent an attribute in the given object
inside the given view.
|
Modifier and Type | Method and Description |
---|---|
void |
addGraphicChangeListener(GraphicChangeListener l)
Adds a new listener to this graphic.
|
boolean |
contains(Point p)
Checks whether this component "contains" the specified point,
which is defined relative to the coordinate system of this component.
|
void |
fireEvent(GraphicChangeEvent ev)
Fires a change event to the listeners.
|
IlpAttachmentManager |
getAttachmentManager()
Returns the current attachment manager.
|
protected IlpRect |
getAttachmentRect()
Retrieves the attachment bounds.
|
IlpAttribute |
getAttribute()
Returns the attribute being represented by this graphic.
|
IlpGraphic |
getParent()
Returns the parent graphic or
null if this graphic is
not inside another graphic. |
IlpRepresentationObject |
getRepresentationObject()
Returns the object being represented by this graphic.
|
IlpGraphic |
getRoot()
Returns the root graphic in the hierarchy.
|
IlpGraphicView |
getView()
Returns the view in which the graphic is being displayed.
|
protected void |
invalidateAttachmentRect()
Resets the attachment bounds.
|
void |
removeGraphicChangeListener(GraphicChangeListener l)
Removes a listener from the list.
|
protected void |
setAttachmentManager(IlpAttachmentManager mgr)
Sets a new attachment manager to this graphic.
|
protected void |
setAttachmentRect(IlpRect r)
Sets the attachment bounds.
|
protected void |
setAttribute(IlpAttribute a)
Sets the business attribute represented by this graphic.
|
protected void |
setComponent(JComponent c)
Sets the component responsible for the drawing of
this graphic.
|
protected void |
setComponentNoInvalidate(JComponent c)
Sets the component responsible for the drawing of this graphic.
|
void |
setParent(IlpGraphic parent)
Sets a new parent graphic for this instance.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponent
computeAttachmentCoordinates, computeFixedCoordinates, getAttachmentBounds
addChild, getChildCount, getChildren, removeChild, removeChildren
public IlpAbstractGraphic(IlpGraphicView view, IlpRepresentationObject object)
view
- The view in which the object is being represented.object
- The object that is being represented by this graphic.public IlpAbstractGraphic(IlpGraphicView view, IlpRepresentationObject object, IlpAttribute attribute)
view
- The 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 IlpGraphic getRoot()
protected void setComponentNoInvalidate(JComponent c)
protected void setComponent(JComponent c)
public boolean contains(Point p)
contains
in interface IlpGraphic
public IlpAttachmentManager getAttachmentManager()
getAttachmentManager
in interface IlpAttachable
protected void setAttachmentManager(IlpAttachmentManager mgr)
protected void invalidateAttachmentRect()
protected void setAttachmentRect(IlpRect r)
r
- The attachment boundsprotected IlpRect getAttachmentRect()
public IlpGraphicView getView()
getView
in interface IlpGraphic
public IlpRepresentationObject getRepresentationObject()
getRepresentationObject
in interface IlpGraphic
public IlpAttribute getAttribute()
getAttribute
in interface IlpGraphic
protected void setAttribute(IlpAttribute a)
a
- Business attributepublic IlpGraphic getParent()
null
if this graphic is
not inside another graphic.getParent
in interface IlpGraphic
public void setParent(IlpGraphic parent)
setParent
in interface IlpGraphic
public void addGraphicChangeListener(GraphicChangeListener l)
addGraphicChangeListener
in interface IlpGraphic
public void removeGraphicChangeListener(GraphicChangeListener l)
removeGraphicChangeListener
in interface IlpGraphic
public void fireEvent(GraphicChangeEvent ev)
fireEvent
in interface IlpGraphic
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.