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)
IltGraphicManager
createGraphic
in the
graphic manager.addGraphic
in interface IltGraphicManager
public 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 IltGraphicManager
public Enumeration getObjects()
IltObjects
that were
inserted in this component manager.public ilog.tgo.graphic.internal.IltObjectLocator getObjectLocator()
getObjectLocator
in interface ilog.tgo.graphic.internal.IltContainerToolTipSupport
public Container getContainer()
getContainer
in interface ilog.tgo.graphic.internal.IltContainerToolTipSupport
public void startDelayingUpdates()
IltGraphicManager
endDelayingUpdates
.startDelayingUpdates
in interface IltGraphicManager
public void endDelayingUpdates()
IltGraphicManager
startDelayingUpdates
.endDelayingUpdates
in interface IltGraphicManager
public IlvTransformer getZoomTransformer()
IltGraphicManager
null
is returned, which stands for the
identity transform.getZoomTransformer
in interface IltGraphicManager
public IltGraphic createGraphic(IltObject obj)
IltGraphicManager
createGraphic
in interface IltGraphicManager
public void ensureVisible(IlvPoint p)
IlvObjectInteractorContext
ensureVisible
in interface IlvObjectInteractorContext
p
- The point.public Color getDefaultGhostColor()
IlvObjectInteractorContext
getDefaultGhostColor
in interface IlvObjectInteractorContext
public Color getDefaultXORColor()
IlvObjectInteractorContext
getDefaultXORColor
in interface IlvObjectInteractorContext
public Graphics getGraphics()
IlvObjectInteractorContext
Graphics
to perform additional drawings.getGraphics
in interface IlvObjectInteractorContext
public IlvTransformer getTransformer()
IlvObjectInteractorContext
getTransformer
in interface IlvObjectInteractorContext
public void setCursor(Cursor c)
IlvObjectInteractorContext
setCursor
in interface IlvObjectInteractorContext
c
- The cursor.public Cursor getCursor()
IlvObjectInteractorContext
getCursor
in interface IlvObjectInteractorContext
public boolean isCursorSet()
IlvObjectInteractorContext
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.isCursorSet
in interface IlvObjectInteractorContext
public void snapToGrid(IlvPoint p)
IlvObjectInteractorContext
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.snapToGrid
in interface IlvObjectInteractorContext
p
- The point to be snapped to the grid.IlvGrid
,
IlvGrid.snap(IlvPoint)
public IlvGrid getGrid()
IlvObjectInteractorContext
getGrid
in interface IlvObjectInteractorContext
null
if
there is no grid.IlvManagerView.getGrid()
public void repaint(IlvRect rect)
IlvObjectInteractorContext
IlvObjectInteractorContext.getTransformer()
.repaint
in interface IlvObjectInteractorContext
rect
- The rectangular region.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.