ilog.tgo.swing
Class IltComponentManager

java.lang.Object
  extended by ilog.tgo.swing.IltComponentManager
All Implemented Interfaces:
IltGraphicManager, ilog.tgo.graphic.internal.IltContainerToolTipSupport, IlvObjectInteractorContext

Deprecated. Please use IlpGraphic objects instead. Use their function getComponent to retrieve a JComponent, which you can add to any other JComponent.

public class IltComponentManager
extends Object
implements IltGraphicManager, IlvObjectInteractorContext, ilog.tgo.graphic.internal.IltContainerToolTipSupport

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.

Deprecated Since:
JTGO 3.5

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

IltComponentManager

public IltComponentManager(Container container)
Deprecated. 
Creates a container for IltComponentGraphic objects. The representation for each telecom object inserted in this manager, will be an instance of IltComponentGraphic. The container where the objects will be really displayed must be a Swing container.


IltComponentManager

public IltComponentManager()
Deprecated. 
Default constructor

Method Detail

setKeepGraphicObjects

public void setKeepGraphicObjects(boolean keepThem)
Deprecated. 
Specifies if graphic objects are kept stored by this manager. If not, the method getObjects will not work.

Internal method or field: do not use!

addGraphic

public void addGraphic(IltGraphic graphic)
Deprecated. 
Description copied from interface: IltGraphicManager
Adds the graphic representation created with createGraphic in the graphic manager.

Specified by:
addGraphic in interface IltGraphicManager

removeGraphic

public void removeGraphic(IltGraphic graphic)
Deprecated. 
Description copied from interface: IltGraphicManager
Removes the graphic representation from the graphic manager.

Specified by:
removeGraphic in interface IltGraphicManager

computeGraphic

public void computeGraphic(IltObject object,
                           Object position,
                           ilog.tgo.graphic.internal.IltComputeAmount amount)
Deprecated. 
Description copied from interface: IltGraphicManager
Ensures a valid graphic representation, and sets the object position inside this manager.

Specified by:
computeGraphic in interface IltGraphicManager

getObjects

public Enumeration getObjects()
Deprecated. 
Returns an enumeration with all the IltObjects that were inserted in this component manager.


getObjectLocator

public ilog.tgo.graphic.internal.IltObjectLocator getObjectLocator()
Deprecated. 
Returns the locator used to retrieve a certain object in a container.

Specified by:
getObjectLocator in interface ilog.tgo.graphic.internal.IltContainerToolTipSupport
Internal method or field: do not use!

getContainer

public Container getContainer()
Deprecated. 
Returns the Swing container being handled by this component manager.

Specified by:
getContainer in interface ilog.tgo.graphic.internal.IltContainerToolTipSupport

startDelayingUpdates

public void startDelayingUpdates()
Deprecated. 
Description copied from interface: IltGraphicManager
Starts delaying redraws and updates. After this call, updates and redraws will be delayed until the next call to endDelayingUpdates.

Specified by:
startDelayingUpdates in interface IltGraphicManager

endDelayingUpdates

public void endDelayingUpdates()
Deprecated. 
Description copied from interface: IltGraphicManager
Terminates delaying redraws and updates. Performs the necessary updates and redraws that became necessary since the last call to startDelayingUpdates.

Specified by:
endDelayingUpdates in interface IltGraphicManager

getZoomTransformer

public IlvTransformer getZoomTransformer()
Deprecated. 
Description copied from interface: IltGraphicManager
Returns the zoom transform of the associated manager. If no logical zoom is enabled, null is returned, which stands for the identity transform.

Specified by:
getZoomTransformer in interface IltGraphicManager
Returns:
The identity transformer

createGraphic

public IltGraphic createGraphic(IltObject obj)
Deprecated. 
Description copied from interface: IltGraphicManager
Ensures that this object has a graphic representation in a given IltGraphicManager. If no graphic representation in this view exists, an invisible graphic representation is created.

Specified by:
createGraphic in interface IltGraphicManager

ensureVisible

public void ensureVisible(IlvPoint p)
Deprecated. 
Description copied from interface: IlvObjectInteractorContext
Scrolls the context so that the point becomes visible.

Specified by:
ensureVisible in interface IlvObjectInteractorContext
Parameters:
p - The point.

getDefaultGhostColor

public Color getDefaultGhostColor()
Deprecated. 
Description copied from interface: IlvObjectInteractorContext
Returns a default ghost color for the context.

Specified by:
getDefaultGhostColor in interface IlvObjectInteractorContext

getDefaultXORColor

public Color getDefaultXORColor()
Deprecated. 
Description copied from interface: IlvObjectInteractorContext
Returns a default XOR color for the context.

Specified by:
getDefaultXORColor in interface IlvObjectInteractorContext

getGraphics

public Graphics getGraphics()
Deprecated. 
Description copied from interface: IlvObjectInteractorContext
Returns a Graphics to perform additional drawings.

Specified by:
getGraphics in interface IlvObjectInteractorContext

getTransformer

public IlvTransformer getTransformer()
Deprecated. 
Description copied from interface: IlvObjectInteractorContext
Returns the transformer of the interactor context.

Specified by:
getTransformer in interface IlvObjectInteractorContext

setCursor

public void setCursor(Cursor c)
Deprecated. 
Description copied from interface: IlvObjectInteractorContext
Changes the cursor of the context.

Specified by:
setCursor in interface IlvObjectInteractorContext
Parameters:
c - The cursor.

getCursor

public Cursor getCursor()
Deprecated. 
Description copied from interface: IlvObjectInteractorContext
Returns the cursor of the context.

Specified by:
getCursor in interface IlvObjectInteractorContext

isCursorSet

public boolean isCursorSet()
Deprecated. 
Description copied from interface: IlvObjectInteractorContext
Returns whether the cursor is set in the context. The object interactor context can represent a java.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.

Specified by:
isCursorSet in interface IlvObjectInteractorContext

snapToGrid

public void snapToGrid(IlvPoint p)
Deprecated. 
Description copied from interface: IlvObjectInteractorContext
Changes the coordinates of the specified point to the closest point of the grid. This method moves the point p 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.

Specified by:
snapToGrid in interface IlvObjectInteractorContext
Parameters:
p - The point to be snapped to the grid.
See Also:
IlvGrid, IlvGrid.snap(IlvPoint)

getGrid

public IlvGrid getGrid()
Deprecated. 
Description copied from interface: IlvObjectInteractorContext
Returns the grid associated with this interactor context.

Specified by:
getGrid in interface IlvObjectInteractorContext
Returns:
The grid, or null if there is no grid.
See Also:
IlvManagerView.getGrid()

repaint

public void repaint(IlvRect rect)
Deprecated. 
Description copied from interface: IlvObjectInteractorContext
Repaints a region. The dimensions of the rectangle are compatible with the transformer returned by the method IlvObjectInteractorContext.getTransformer().

Specified by:
repaint in interface IlvObjectInteractorContext
Parameters:
rect - The rectangular region.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.