|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.IlvGraphic
ilog.views.graphic.IlvGraphicHandle
ilog.views.sdm.renderer.IlvSubGraphRenderer.CollapsedGraphic
public static class IlvSubGraphRenderer.CollapsedGraphic
This graphic object encapsulates the collapsed representation of a subgraph. Its purpose is to draw the "expand" icon on top of the collapsed graphic.
This class is public only to allow saving in an IVL file the contents of a grapher associated with an SDM engine and containing expandable nodes.
| Constructor Summary | |
|---|---|
IlvSubGraphRenderer.CollapsedGraphic(IlvInputStream stream)
Reads the collapsed graphic from an IVL stream. |
|
| Method Summary | |
|---|---|
void |
addObject(IlvGraphic graphic,
boolean redraw)
Adds a graphic object in the bag. |
void |
applyToObject(IlvGraphic graphic,
IlvApplyObject f,
Object arg,
boolean redraw)
Applies a method to a graphic object of the bag. |
boolean |
contains(IlvPoint p,
IlvPoint tp,
IlvTransformer t)
Tests if a point lies within the outline of the object, or within the outline of the "expand" icon. |
void |
draw(Graphics dst,
IlvTransformer t)
Draws the "expand" icon on top of the collapsed graphic. |
IlvGraphic |
getObject(String name)
Returns the graphic object with that name if it exists in the bag, otherwise returns null. |
IlvGraphicEnumeration |
getObjects()
Implementation of the IlvGraphicBag interface. |
void |
moveObject(IlvGraphic graphic,
float x,
float y,
boolean redraw)
Changes the location of a graphic object. |
void |
reDrawObj(IlvGraphic graphic)
Redraws a graphic object located in the bag. |
void |
reDrawRegion(IlvRegion region)
Redraws a region of the bag. |
void |
removeObject(IlvGraphic graphic,
boolean redraw)
Removes a graphic object from the bag. |
void |
reshapeObject(IlvGraphic graphic,
IlvRect newrect,
boolean redraw)
Changes the size of a graphic object. |
boolean |
setObjectName(IlvGraphic graphic,
String name)
Changes the name of a graphic object. |
void |
write(IlvOutputStream stream)
Writes the collapsed graphic to an IVL stream. |
| Methods inherited from class ilog.views.graphic.IlvGraphicHandle |
|---|
applyTransform, boundingBox, copy, getIntersectionWithOutline, getObject, getOriginalPopupMenu, getPopupMenu, getToolTipText, inside, intersects, isOwner, isPersistent, move, move, moveResize, resize, rotate, scale, setBackground, setDelegateMoveResize, setForeground, setObject, setOwner, translate, zoomable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ilog.views.IlvGraphicBag |
|---|
getGraphicBag |
| Constructor Detail |
|---|
public IlvSubGraphRenderer.CollapsedGraphic(IlvInputStream stream)
throws IlvReadFileException,
IOException
stream - The input stream.
IlvReadFileException
IOException| Method Detail |
|---|
public void write(IlvOutputStream stream)
throws IOException
write in interface IlvPersistentObjectwrite in class IlvGraphicHandlestream - The output stream.
IOException - thrown when an exception occurs during
the write operation for this object.
public void draw(Graphics dst,
IlvTransformer t)
draw in class IlvGraphicHandledst - The Graphics used to draw the collapsed graphic.t - The transformer used to draw the collapsed graphic.IlvGraphic.boundingBox(ilog.views.IlvTransformer),
IlvGraphic.zoomable(),
IlvGraphic
public boolean contains(IlvPoint p,
IlvPoint tp,
IlvTransformer t)
contains in class IlvGraphicHandlep - The point to be tested.tp - The point p transformed by the transformer t.t - The transformation used to draw the object.
true if the point lies inside this graphic object.IlvGraphic
public void addObject(IlvGraphic graphic,
boolean redraw)
addObject in interface IlvGraphicBaggraphic - The graphic object.redraw - If true the object is redrawn.
public void removeObject(IlvGraphic graphic,
boolean redraw)
removeObject in interface IlvGraphicBaggraphic - The graphic object.redraw - If true the object is redrawn.public IlvGraphicEnumeration getObjects()
IlvGraphicBag interface.
Do not call this method directly.
getObjects in interface IlvGraphicBagpublic void reDrawObj(IlvGraphic graphic)
reDrawObj in interface IlvGraphicBaggraphic - The graphic object.public void reDrawRegion(IlvRegion region)
reDrawRegion in interface IlvGraphicBagregion - The region to redraw.
public void reshapeObject(IlvGraphic graphic,
IlvRect newrect,
boolean redraw)
reshapeObject in interface IlvGraphicBaggraphic - The graphic object.newrect - The new desired bounding rectangle.redraw - If true the object is redrawn.
public void moveObject(IlvGraphic graphic,
float x,
float y,
boolean redraw)
moveObject in interface IlvGraphicBaggraphic - The graphic object.x - The new desired x position.y - The new desired y position.redraw - If true the object is redrawn.
public void applyToObject(IlvGraphic graphic,
IlvApplyObject f,
Object arg,
boolean redraw)
applyToObject in interface IlvGraphicBaggraphic - The graphic object.f - The method to apply.arg - The arguments passed to the method f.redraw - If true the object is redrawn.
public boolean setObjectName(IlvGraphic graphic,
String name)
setObjectName in interface IlvGraphicBaggraphic - The graphic object.name - The new name.
true if the name can be changed.public IlvGraphic getObject(String name)
null.
getObject in interface IlvGraphicBagname - The graphic object name.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||