Class DragCanvas
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----DragCanvas
- class DragCanvas
- extends Canvas
-
Dragging
-
-
dragXPos
- dragging/not dragging and drag position
-
Height
-
-
MouseX
- last mouse move position
-
MouseY
-
-
tenFont
-
-
twelveFont
-
-
Width
-
-
XPos
- (XPos,YPos) - leftmost upper corner of the object of Width and Height
-
YPos
-
-
DragCanvas()
-
-
Intersects(int, int)
- point(x,y) intersects current object?
-
isDragging()
-
-
mouseMove(Event, int, int)
-
-
paint(Graphics)
- frame the current object, place location information if framed, etc
-
resetDragging(boolean)
- drag modifiers, standard method as used in Win32 API
-
setDPos(int, int, int, int)
- set the relative drag position
-
setDragging(boolean)
-
XPos
protected int XPos
- (XPos,YPos) - leftmost upper corner of the object of Width and Height
YPos
protected int YPos
Width
protected int Width
Height
protected int Height
dragXPos
private Point dragXPos
- dragging/not dragging and drag position
Dragging
protected boolean Dragging
MouseX
protected int MouseX
- last mouse move position
MouseY
protected int MouseY
twelveFont
protected Font twelveFont
tenFont
protected Font tenFont
DragCanvas
DragCanvas()
mouseMove
public boolean mouseMove(Event evt,
int x,
int y)
- Overrides:
- mouseMove in class Component
resetDragging
public void resetDragging(boolean Value)
- drag modifiers, standard method as used in Win32 API
setDragging
public boolean setDragging(boolean Value)
isDragging
public boolean isDragging()
Intersects
public boolean Intersects(int x,
int y)
- point(x,y) intersects current object?
setDPos
public void setDPos(int iXPos,
int iYPos,
int w,
int h)
- set the relative drag position
paint
public void paint(Graphics g)
- frame the current object, place location information if framed, etc
- Overrides:
- paint in class Canvas