ilog.views
Interface IlvObjectInteractorContext

All Known Implementing Classes:
IlvManagerView, IlvPrototypeBeanSupport

public interface IlvObjectInteractorContext

The interface IlvObjectInteractorContext is the context passed to an object interactor. This interface is implemented by IlvManagerView.

See Also:
IlvObjectInteractor.processEvent(ilog.views.IlvGraphic, java.awt.AWTEvent, ilog.views.IlvObjectInteractorContext)

Method Summary
 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.
 

Method Detail

getTransformer

IlvTransformer getTransformer()
Returns the transformer of the interactor context.


getGraphics

Graphics getGraphics()
Returns a Graphics to perform additional drawings.


getGrid

IlvGrid getGrid()
Returns the grid associated with this interactor context.

Returns:
The grid, or null if there is no grid.
Since:
JViews 5.0
See Also:
IlvManagerView.getGrid()

setCursor

void setCursor(Cursor cursor)
Changes the cursor of the context.

Parameters:
cursor - The cursor.

getCursor

Cursor getCursor()
Returns the cursor of the context.

Since:
JViews 5.5

isCursorSet

boolean isCursorSet()
Returns whether the cursor is set in the context. The object interactor context can represent a 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.

Since:
JViews 8.0

repaint

void repaint(IlvRect rect)
Repaints a region. The dimensions of the rectangle are compatible with the transformer returned by the method getTransformer().

Parameters:
rect - The rectangular region.
Since:
JViews 5.0

ensureVisible

void ensureVisible(IlvPoint p)
Scrolls the context so that the point becomes visible.

Parameters:
p - The point.

snapToGrid

void snapToGrid(IlvPoint p)
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.

Parameters:
p - The point to be snapped to the grid.
See Also:
IlvGrid, IlvGrid.snap(IlvPoint)

getDefaultXORColor

Color getDefaultXORColor()
Returns a default XOR color for the context.


getDefaultGhostColor

Color getDefaultGhostColor()
Returns a default ghost color for the context.



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