public interface IlvObjectInteractorContext
IlvObjectInteractorContext
is
the context passed to an object interactor.
This interface is implemented by IlvManagerView
.Modifier and Type | Method and Description |
---|---|
void |
ensureVisible(IlvPoint p)
Scrolls the context so that the point becomes visible.
|
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.
|
IlvTransformer |
getTransformer()
Returns the transformer of the interactor context.
|
boolean |
isCursorSet()
Returns whether the cursor is set in the context.
|
void |
repaint(IlvRect rect)
Repaints a region.
|
void |
setCursor(Cursor cursor)
Changes the cursor of the context.
|
void |
snapToGrid(IlvPoint p)
Changes the coordinates of the specified point to the
closest point of the grid.
|
IlvTransformer getTransformer()
Graphics getGraphics()
Graphics
to perform additional drawings.IlvGrid getGrid()
null
if
there is no grid.IlvManagerView.getGrid()
void setCursor(Cursor cursor)
cursor
- The cursor.Cursor getCursor()
boolean isCursorSet()
java.awt.Component
. For components, 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 getCursor()
is not the cursor of the parent component but
the cursor of this component.void repaint(IlvRect rect)
getTransformer()
.rect
- The rectangular region.void ensureVisible(IlvPoint p)
p
- The point.void snapToGrid(IlvPoint p)
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.p
- The point to be snapped to the grid.IlvGrid
,
IlvGrid.snap(IlvPoint)
Color getDefaultXORColor()
Color getDefaultGhostColor()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.