: Download: FAQ: Licensing: Support: Contact ME
LwVCL Home
Introduction
Overview
Screen Shots
On-line Demos
Requirements
Further Plans
Docs
Tutorial
How-to (PDF)
API
FAQ
Download
Latest version

Home > J2SE > API

Overview  Package   Class  Tree  Deprecated  Index  Help 

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:


Constructor Summary
DgnCursorInfo()
           
 
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
 

Constructor Detail

DgnCursorInfo

public DgnCursorInfo()
Method Detail

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.


: up