All Packages Class Hierarchy This Package Previous Next Index
Class dispatcher.Globals
java.lang.Object
|
+----dispatcher.Globals
- public class Globals
- extends Object
This class holds all global parameters and pic settings
-
arc_clockwise
- current arc default direction
-
arc_radius
- current arc default radius
-
arrow_height
- current arrow default height
-
arrow_width
- current arrow default width
-
box_height
- current box default height
-
box_width
- current box default width
-
circle_radius
- current circle default radius
-
copy
- current copy state
-
curr_style
- current line style
-
currElement
- current element in the picture
-
currElementAsInt
- current element type
-
current_x
- current X coordinate
-
current_y
- current Y coordinate
-
currentFont
- current font
-
currFrame
- current frame
-
currLine
- the application's TextWindow object
-
currPosition
- current position in the elements list
-
defaultsON
- On/Off defaults
-
direction
- current drawing direction
-
ellipse_height
- current ellipse default height
-
ellipse_width
- current ellipse default width
-
frameToolkit
- current Toolkit
-
grid
- current grid
-
group
- current group flag
-
init_X
- the X coordinate adjustment to centralize the picture
-
init_Y
- the Y coordinate adjustment to centralize the picture
-
insertBefore
- Shows the insertion place (before or after the current element)
-
line_height
- current line default height
-
line_width
- current line default widht
-
max_height
- current maximal height
-
max_width
- current maximal width
-
move_height
- current move default height
-
move_width
- current move default width
-
paste
- current paste state
-
recovery
- the application's Recovery object
-
scale
- current scale value
-
selected1
- the first element in the selected group
-
selected2
- the last element in the selected group
-
shape_fill
- current default fill flag
-
showGrid
- current show grid state
-
TEST
- the application is in a TEST mode
-
text_height
- current text default height
-
text_width
- current text default width
-
textON
- On/Off text flag
-
Globals()
-
-
getDirAsString(int)
- Returns the string representing current drawing direction
-
getShapeAsString(int)
- Returns the name of shape by its type
-
isClosePoints(Point, Point)
- Returns true iff points p1 and p2 are
close one to another
-
reset()
- Resets all global parameters to default values
-
scaleGlobals()
- Scales global pic parameters
-
styleAsString()
- Returns current the drawing style as string
-
styleAsString(int)
- Returns the given drawing style as string
init_X
public static int init_X
- the X coordinate adjustment to centralize the picture
init_Y
public static int init_Y
- the Y coordinate adjustment to centralize the picture
insertBefore
public static boolean insertBefore
- Shows the insertion place (before or after the current element)
direction
public static int direction
- current drawing direction
current_x
public static int current_x
- current X coordinate
current_y
public static int current_y
- current Y coordinate
ellipse_width
public static int ellipse_width
- current ellipse default width
ellipse_height
public static int ellipse_height
- current ellipse default height
box_height
public static int box_height
- current box default height
box_width
public static int box_width
- current box default width
shape_fill
public static boolean shape_fill
- current default fill flag
circle_radius
public static int circle_radius
- current circle default radius
line_width
public static int line_width
- current line default widht
line_height
public static int line_height
- current line default height
arrow_width
public static int arrow_width
- current arrow default width
arrow_height
public static int arrow_height
- current arrow default height
move_width
public static int move_width
- current move default width
move_height
public static int move_height
- current move default height
arc_radius
public static int arc_radius
- current arc default radius
text_width
public static int text_width
- current text default width
text_height
public static int text_height
- current text default height
max_width
public static int max_width
- current maximal width
max_height
public static int max_height
- current maximal height
scale
public static float scale
- current scale value
arc_clockwise
public static boolean arc_clockwise
- current arc default direction
curr_style
public static int curr_style
- current line style
group
public static boolean group
- current group flag
currElement
public static LinkedList currElement
- current element in the picture
currElementAsInt
public static int currElementAsInt
- current element type
selected1
public static LinkedList selected1
- the first element in the selected group
selected2
public static LinkedList selected2
- the last element in the selected group
currPosition
public static int currPosition
- current position in the elements list
textON
public static boolean textON
- On/Off text flag
defaultsON
public static boolean defaultsON
- On/Off defaults
currentFont
public static Font currentFont
- current font
frameToolkit
public static Toolkit frameToolkit
- current Toolkit
currFrame
public static Diamond currFrame
- current frame
copy
public static boolean copy
- current copy state
grid
public static Grid grid
- current grid
showGrid
public static boolean showGrid
- current show grid state
paste
public static boolean paste
- current paste state
recovery
public static Recovery recovery
- the application's Recovery object
currLine
public static TextWindow currLine
- the application's TextWindow object
TEST
public static boolean TEST
- the application is in a TEST mode
Globals
public Globals()
getDirAsString
public static String getDirAsString(int direction)
- Returns the string representing current drawing direction
getShapeAsString
public static String getShapeAsString(int shapeType)
- Returns the name of shape by its type
styleAsString
public static String styleAsString()
- Returns current the drawing style as string
styleAsString
public static String styleAsString(int style)
- Returns the given drawing style as string
reset
public static void reset()
- Resets all global parameters to default values
scaleGlobals
public static void scaleGlobals()
- Scales global pic parameters
isClosePoints
public static boolean isClosePoints(Point p1,
Point p2)
- Returns true iff points p1 and p2 are
close one to another
All Packages Class Hierarchy This Package Previous Next Index