|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectletterTool
public class letterTool
The letterTool class represents letter tools. All texts are implemented by mouse events with x-coordinates and y-coordinates in parent frame. The class letterTool includes methods for clicking, dragging, and releasing the mouse. There are no OS/Hardware dependencies and no variances. There is no need for any security constraints and no references to external specifications.
Field Summary | |
---|---|
static boolean |
boldness
Holds the state of the font's boldness. |
static int |
currentFont
Holds the size of the current Font. |
static int |
currentSize
Holds the state of the font's current size. |
static boolean |
italicness
Holds the state of the font's italicness. |
boolean |
ok_action
The dialog is closed by OK. |
java.awt.Frame |
parentFrame
A main frame that generates the letter tool frame. |
static boolean |
underlineness
Holds the state of the font's underlineness. |
Constructor Summary | |
---|---|
letterTool(java.awt.Frame parent)
Creates a letterTool and initializes a newly created java.awt.Frame object so that it represents a copy of the argument java.awt.Frame There are no OS/Hardware dependencies and no variances. |
Method Summary | |
---|---|
void |
clickAction(java.awt.event.MouseEvent mevt,
main_canvas theCanvas)
Allows the user to click the mouse using the letterTool. |
void |
dragAction(java.awt.event.MouseEvent mevt,
main_canvas theCanvas)
Allows the user to drag the mouse, using the letter Tool. |
void |
mouseReleaseAction(java.awt.event.MouseEvent mevt,
main_canvas theCanvas)
Allows the user to release the mouse, using the letter Tool. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.awt.Frame parentFrame
public static int currentFont
public static boolean boldness
public static boolean underlineness
public static boolean italicness
public static int currentSize
public boolean ok_action
Constructor Detail |
---|
public letterTool(java.awt.Frame parent)
parent
- frame to initialize the letter toolMethod Detail |
---|
public void clickAction(java.awt.event.MouseEvent mevt, main_canvas theCanvas)
clickAction
in interface ourTool
mevt
- contains information about the mouse event including x-coordinates and y-coordinatestheCanvas
- main canvaspublic void dragAction(java.awt.event.MouseEvent mevt, main_canvas theCanvas)
dragAction
in interface ourTool
mevt
- object contains information about the mouse event including x-coordinates and y-coordinatestheCanvas
- main canvaspublic void mouseReleaseAction(java.awt.event.MouseEvent mevt, main_canvas theCanvas)
mouseReleaseAction
in interface ourTool
mevt
- object contains information about the mouse event including x-coordinates and y-coordinatestheCanvas
- main canvas
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |