Class TCursor

java.lang.Object
  |
  +--TObject
        |
        +--TVCpn
              |
              +--TCursor

public class TCursor
extends TVCpn

Type Cursor: Class TCursor manages a graphical cursor.

Since:
First release

Field Summary
 java.lang.String cursorType
          The cursor's graphic.
 int speedX
          The horizontal speed.
 int speedY
          The vertical speed.
 
Fields inherited from class TVCpn
height, visible, width, x, y
 
Constructor Summary
TCursor()
          Instanciates a new Type Cursor.
 
Method Summary
 void activate()
          Activates the cursor, moved by arrows and enterupted by enter key.
 java.lang.String getCursor()
          Returns the cursor's graphic.
 int getSpeedX()
          Returns the horizontal speed of the cursor.
 int getSpeedY()
          Returns the vertical speed of the cursor.
 void setCursor(java.lang.String cursor)
          Sets the cursor's graphic.
 void setSpeedX(int speed)
          Sets the horizontal speed of the cursor.
 void setSpeedY(int speed)
          Sets the vertical speed of the cursor.
 
Methods inherited from class TVCpn
getHeight, getVisible, getWidth, getX, getY, move, setDim, setHeight, setVisible, setWidth, setX, setY
 
Methods inherited from class TObject
clone, Destroy, equals, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

speedX

public int speedX
The horizontal speed.


speedY

public int speedY
The vertical speed.


cursorType

public java.lang.String cursorType
The cursor's graphic. (crDefault(Arrow), crPlus, crCross, crHourGlass, crPoint)

Constructor Detail

TCursor

public TCursor()
Instanciates a new Type Cursor.

Since:
First release
Method Detail

setSpeedX

public void setSpeedX(int speed)
Sets the horizontal speed of the cursor.

Parameters:
speed - The horizontal speed.
Since:
First release

setSpeedY

public void setSpeedY(int speed)
Sets the vertical speed of the cursor.

Parameters:
speed - The vertical speed.
Since:
First release

setCursor

public void setCursor(java.lang.String cursor)
Sets the cursor's graphic.

Parameters:
cursor - The cursor's graphic. (options: crDefault(Arrow), crPlus, crCross, crHourGlass, crPoint)
Since:
First release

getSpeedX

public int getSpeedX()
Returns the horizontal speed of the cursor.

Returns:
speed: The horizontal speed.
Since:
First release

getSpeedY

public int getSpeedY()
Returns the vertical speed of the cursor.

Since:
First release

getCursor

public java.lang.String getCursor()
Returns the cursor's graphic.

Returns:
cursor: The cursor's graphic. (crDefault(Arrow), crPlus, crCross, crHourGlass, crPoint)
Since:
First release

activate

public void activate()
Activates the cursor, moved by arrows and enterupted by enter key.

Since:
First release