public class IltComponentManager extends Object implements IltGraphicManager, IlvObjectInteractorContext, ilog.tgo.graphic.internal.IltContainerToolTipSupport
Internal use only.
| Constructor and Description |
|---|
IltComponentManager()
Default constructor
|
IltComponentManager(Container container)
Creates a container for IltComponentGraphic objects.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addGraphic(IltGraphic graphic)
Adds the graphic representation created with
createGraphic in the
graphic manager. |
boolean |
areChildrenComputedAutomatically()
Returns if computing a container object should also compute
its children objects.
|
void |
computeGraphic(IltObject object,
Object position,
ilog.tgo.graphic.internal.IltComputeAmount amount)
Ensures a valid graphic representation, and sets the object position
inside this manager.
|
IltGraphic |
createGraphic(IltObject obj)
Ensures that this object has a graphic representation in a given
IltGraphicManager.
|
void |
endDelayingUpdates()
Terminates delaying redraws and updates.
|
void |
ensureVisible(IlvPoint p)
Scrolls the context so that the point becomes visible.
|
Container |
getContainer()
Returns the Swing container being handled by this component manager.
|
Cursor |
getCursor()
Returns the cursor of the context.
|
Color |
getDefaultGhostColor()
Returns a default ghost color for the context.
|
Color |
getDefaultXORColor()
Returns a default XOR color for the context.
|
Graphics |
getGraphics()
Returns a
Graphics to perform additional drawings. |
IlvGrid |
getGrid()
Returns the grid associated with this interactor context.
|
ilog.tgo.graphic.internal.IltObjectLocator |
getObjectLocator()
Returns the locator used to retrieve a certain object in a container.
|
Enumeration |
getObjects()
Returns an enumeration with all the
IltObjects that were
inserted in this component manager. |
IlvTransformer |
getTransformer()
Returns the transformer of the interactor context.
|
IlvTransformer |
getZoomTransformer()
Returns the zoom transform of the associated manager.
|
boolean |
isCursorSet()
Returns whether the cursor is set in the context.
|
void |
removeGraphic(IltGraphic graphic)
Removes the graphic representation from the graphic manager.
|
void |
repaint(IlvRect rect)
Repaints a region.
|
void |
setCursor(Cursor c)
Changes the cursor of the context.
|
void |
setKeepGraphicObjects(boolean keepThem)
Specifies if graphic objects are kept stored by this manager.
|
void |
snapToGrid(IlvPoint p)
Changes the coordinates of the specified point to the
closest point of the grid.
|
void |
startDelayingUpdates()
Starts delaying redraws and updates.
|
public IltComponentManager(Container container)
IltComponentGraphic. The container where the objects will be really displayed
must be a Swing container.public IltComponentManager()
public void setKeepGraphicObjects(boolean keepThem)
getObjects will not work.public boolean areChildrenComputedAutomatically()
public void addGraphic(IltGraphic graphic)
IltGraphicManagercreateGraphic in the
graphic manager.addGraphic in interface IltGraphicManagerpublic void removeGraphic(IltGraphic graphic)
IltGraphicManagerremoveGraphic in interface IltGraphicManagerpublic void computeGraphic(IltObject object, Object position, ilog.tgo.graphic.internal.IltComputeAmount amount)
IltGraphicManagercomputeGraphic 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)
IltGraphicManagercreateGraphic in interface IltGraphicManagerpublic void ensureVisible(IlvPoint p)
IlvObjectInteractorContextensureVisible in interface IlvObjectInteractorContextp - The point.public Color getDefaultGhostColor()
IlvObjectInteractorContextgetDefaultGhostColor in interface IlvObjectInteractorContextpublic Color getDefaultXORColor()
IlvObjectInteractorContextgetDefaultXORColor in interface IlvObjectInteractorContextpublic Graphics getGraphics()
IlvObjectInteractorContextGraphics to perform additional drawings.getGraphics in interface IlvObjectInteractorContextpublic IlvTransformer getTransformer()
IlvObjectInteractorContextgetTransformer in interface IlvObjectInteractorContextpublic void setCursor(Cursor c)
IlvObjectInteractorContextsetCursor in interface IlvObjectInteractorContextc - The cursor.public Cursor getCursor()
IlvObjectInteractorContextgetCursor 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()
IlvObjectInteractorContextgetGrid in interface IlvObjectInteractorContextnull if
there is no grid.IlvManagerView.getGrid()public void repaint(IlvRect rect)
IlvObjectInteractorContextIlvObjectInteractorContext.getTransformer().repaint in interface IlvObjectInteractorContextrect - The rectangular region.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.