org.zaval.lw.gdp
Class DgnCursorInfo
java.lang.Object
|
+--org.zaval.lw.gdp.DgnCursorInfo
- All Implemented Interfaces:
- Cursorable
- public class DgnCursorInfo
- extends java.lang.Object
- implements Cursorable
This is an implementation of the org.zaval.lw.Cursorable interface that can be used by
a designer container to control mouse cursor type. The cursor info uses the target
components insets to specify eight square areas where one of resize cursor type is set
and the for the rest the move cursor type is used. Look at the pictures below to
understand it clearly:
|
Method Summary |
int |
getCursorType(LwComponent target,
int x,
int y)
Gets the cursor type for the specified location of the given component.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DgnCursorInfo
public DgnCursorInfo()
getCursorType
public int getCursorType(LwComponent target,
int x,
int y)
- Gets the cursor type for the specified location of the given component.
It is supposed to use set of cursors provided by java.awt.Cursor class.
- Specified by:
getCursorType in interface Cursorable
- Parameters:
target - the given component.x - the x coordinate of the location.y - the y coordinate of the location.- Returns:
- a cursor type.
|