|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.cpl.graphic.IlpAbstractGraphic
public abstract class IlpAbstractGraphic
This class models an abstract graphic. This graphic can be used to create complex graphic representations for objects and attributes.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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()
|
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)
|
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. |
| 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 |
|---|
getComponent |
| Methods inherited from interface ilog.cpl.graphic.attachment.IlpAttachable |
|---|
computeAttachmentCoordinates, computeFixedCoordinates, getAttachmentBounds |
| Methods inherited from interface ilog.cpl.graphic.IlpGraphicContainment |
|---|
addChild, getChildCount, getChildren, removeChild, removeChildren |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public IlpGraphic getRoot()
protected void setComponentNoInvalidate(JComponent c)
protected void setComponent(JComponent c)
public boolean contains(Point p)
contains in interface IlpGraphicpublic IlpAttachmentManager getAttachmentManager()
getAttachmentManager in interface IlpAttachableprotected void setAttachmentManager(IlpAttachmentManager mgr)
protected void invalidateAttachmentRect()
protected void setAttachmentRect(IlpRect r)
protected IlpRect getAttachmentRect()
public IlpGraphicView getView()
getView in interface IlpGraphicpublic IlpRepresentationObject getRepresentationObject()
getRepresentationObject in interface IlpGraphicpublic IlpAttribute getAttribute()
getAttribute in interface IlpGraphicprotected void setAttribute(IlpAttribute a)
a - Business attributepublic IlpGraphic getParent()
null if this graphic is
not inside another graphic.
getParent in interface IlpGraphicpublic void setParent(IlpGraphic parent)
setParent in interface IlpGraphicpublic void addGraphicChangeListener(GraphicChangeListener l)
addGraphicChangeListener in interface IlpGraphicpublic void removeGraphicChangeListener(GraphicChangeListener l)
removeGraphicChangeListener in interface IlpGraphicpublic void fireEvent(GraphicChangeEvent ev)
fireEvent in interface IlpGraphic
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||