|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.tgo.swing.IltComponentManager
IlpGraphic objects instead. Use their
function getComponent to retrieve a JComponent, which you can
add to any other JComponent.
public class IltComponentManager
This class is the counterpart of Container for IltComponentGraphic objects. It manages component objects, each of which takes the role of either a node or a link.
| Constructor Summary | |
|---|---|
IltComponentManager()
Deprecated. Default constructor |
|
IltComponentManager(Container container)
Deprecated. Creates a container for IltComponentGraphic objects. |
|
| Method Summary | |
|---|---|
void |
addGraphic(IltGraphic graphic)
Deprecated. Adds the graphic representation created with createGraphic in the
graphic manager. |
void |
computeGraphic(IltObject object,
Object position,
ilog.tgo.graphic.internal.IltComputeAmount amount)
Deprecated. Ensures a valid graphic representation, and sets the object position inside this manager. |
IltGraphic |
createGraphic(IltObject obj)
Deprecated. Ensures that this object has a graphic representation in a given IltGraphicManager. |
void |
endDelayingUpdates()
Deprecated. Terminates delaying redraws and updates. |
void |
ensureVisible(IlvPoint p)
Deprecated. Scrolls the context so that the point becomes visible. |
Container |
getContainer()
Deprecated. Returns the Swing container being handled by this component manager. |
Cursor |
getCursor()
Deprecated. Returns the cursor of the context. |
Color |
getDefaultGhostColor()
Deprecated. Returns a default ghost color for the context. |
Color |
getDefaultXORColor()
Deprecated. Returns a default XOR color for the context. |
Graphics |
getGraphics()
Deprecated. Returns a Graphics to perform additional drawings. |
IlvGrid |
getGrid()
Deprecated. Returns the grid associated with this interactor context. |
ilog.tgo.graphic.internal.IltObjectLocator |
getObjectLocator()
Deprecated. Returns the locator used to retrieve a certain object in a container. |
Enumeration |
getObjects()
Deprecated. Returns an enumeration with all the IltObjects that were
inserted in this component manager. |
IlvTransformer |
getTransformer()
Deprecated. Returns the transformer of the interactor context. |
IlvTransformer |
getZoomTransformer()
Deprecated. Returns the zoom transform of the associated manager. |
boolean |
isCursorSet()
Deprecated. Returns whether the cursor is set in the context. |
void |
removeGraphic(IltGraphic graphic)
Deprecated. Removes the graphic representation from the graphic manager. |
void |
repaint(IlvRect rect)
Deprecated. Repaints a region. |
void |
setCursor(Cursor c)
Deprecated. Changes the cursor of the context. |
void |
setKeepGraphicObjects(boolean keepThem)
Deprecated. Specifies if graphic objects are kept stored by this manager. |
void |
snapToGrid(IlvPoint p)
Deprecated. Changes the coordinates of the specified point to the closest point of the grid. |
void |
startDelayingUpdates()
Deprecated. Starts delaying redraws and updates. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IltComponentManager(Container container)
IltComponentGraphic. The container where the objects will be really displayed
must be a Swing container.
public IltComponentManager()
| Method Detail |
|---|
public void setKeepGraphicObjects(boolean keepThem)
getObjects will not work.
public void addGraphic(IltGraphic graphic)
IltGraphicManagercreateGraphic in the
graphic manager.
addGraphic in interface IltGraphicManagerpublic void removeGraphic(IltGraphic graphic)
IltGraphicManager
removeGraphic in interface IltGraphicManager
public void computeGraphic(IltObject object,
Object position,
ilog.tgo.graphic.internal.IltComputeAmount amount)
IltGraphicManager
computeGraphic in interface IltGraphicManagerpublic Enumeration getObjects()
IltObjects that were
inserted in this component manager.
public ilog.tgo.graphic.internal.IltObjectLocator getObjectLocator()
getObjectLocator in interface ilog.tgo.graphic.internal.IltContainerToolTipSupportpublic Container getContainer()
getContainer in interface ilog.tgo.graphic.internal.IltContainerToolTipSupportpublic void startDelayingUpdates()
IltGraphicManagerendDelayingUpdates.
startDelayingUpdates in interface IltGraphicManagerpublic void endDelayingUpdates()
IltGraphicManagerstartDelayingUpdates.
endDelayingUpdates in interface IltGraphicManagerpublic IlvTransformer getZoomTransformer()
IltGraphicManagernull is returned, which stands for the
identity transform.
getZoomTransformer in interface IltGraphicManagerpublic IltGraphic createGraphic(IltObject obj)
IltGraphicManager
createGraphic in interface IltGraphicManagerpublic void ensureVisible(IlvPoint p)
IlvObjectInteractorContext
ensureVisible in interface IlvObjectInteractorContextp - The point.public Color getDefaultGhostColor()
IlvObjectInteractorContext
getDefaultGhostColor in interface IlvObjectInteractorContextpublic Color getDefaultXORColor()
IlvObjectInteractorContext
getDefaultXORColor in interface IlvObjectInteractorContextpublic Graphics getGraphics()
IlvObjectInteractorContextGraphics to perform additional drawings.
getGraphics in interface IlvObjectInteractorContextpublic IlvTransformer getTransformer()
IlvObjectInteractorContext
getTransformer in interface IlvObjectInteractorContextpublic void setCursor(Cursor c)
IlvObjectInteractorContext
setCursor in interface IlvObjectInteractorContextc - The cursor.public Cursor getCursor()
IlvObjectInteractorContext
getCursor in interface IlvObjectInteractorContextpublic boolean isCursorSet()
IlvObjectInteractorContextjava.awt.Component. For components, IlvObjectInteractorContext.getCursor()
returns the cursor of the parent component if the cursor was not set
on the component itself. This method returns true if the
cursor was explicitly set on this component, that is, the result
of IlvObjectInteractorContext.getCursor() is not the cursor of the parent component but
the cursor of this component.
isCursorSet in interface IlvObjectInteractorContextpublic void snapToGrid(IlvPoint p)
IlvObjectInteractorContextp to the closest grid point of the grid
associated with this context.
If no grid is currently associated or the grid is not
active, then the parameter is not changed.
snapToGrid in interface IlvObjectInteractorContextp - The point to be snapped to the grid.IlvGrid,
IlvGrid.snap(IlvPoint)public IlvGrid getGrid()
IlvObjectInteractorContext
getGrid in interface IlvObjectInteractorContextnull if
there is no grid.IlvManagerView.getGrid()public void repaint(IlvRect rect)
IlvObjectInteractorContextIlvObjectInteractorContext.getTransformer().
repaint in interface IlvObjectInteractorContextrect - The rectangular region.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||