All Packages Class Hierarchy This Package Previous Next Index
Class dispatcher.Definitions
java.lang.Object
|
+----dispatcher.Definitions
- public class Definitions
- extends Object
This class holds all global application constants and defaults
used by other classes. All the data
-
arc
- The shape's type is arc
-
arc_clockwise
- The default arc direction (counter clockwise)
-
arc_radius
- The default arc radius (in pixels)
-
arrow
- The shape's type is arrow
-
arrow_height
- The default arrow height (in pixels)
-
arrow_width
- The default arrow width (in pixels)
-
box
- The shape's type is box
-
box_height
- The default box height (in pixels)
-
box_width
- The default box width (in pixels)
-
circle
- The shape's type is circle
-
circle_radius
- The default circle radius (in pixels)
-
down_dir
- The drawing is down directed
-
dummy
- The shape's type is dummy
-
ellipse
- The shape's type is ellipse
-
ellipse_height
- The default ellipse height (in pixels)
-
ellipse_width
- The default ellipse width (in pixels)
-
left_dir
- The drawing is left directed
-
line
- The shape's type is line
-
line_height
- The default line height (in pixels)
-
line_width
- The default line width (in pixels)
-
max_x
- The maximal X coordinate
-
max_y
- The maximal Y coordinate
-
move
- The shape's type is move
-
move_height
- The default move height (in pixels)
-
move_width
- The default move width (in pixels)
-
near
- The distance of cursor from element when this element
can be selected
-
pixelsInInch
- Holds the pixels number in one inch
-
right_dir
- The drawing is right directed
-
shape_fill
- The default shape fill flag.
-
spline
- The shape's type is spline
-
text
- The shape's type is text
-
text_height
- The default text height (in pixels)
-
text_width
- The default text width (in pixels)
-
up_dir
- The drawing is up directed
-
Definitions()
-
-
pixelToInch(int)
- Translates the distance from pixels to inches
-
trancate(double)
- Returns the double parameter trancated to two digits
pixelsInInch
public static final int pixelsInInch
- Holds the pixels number in one inch
box
public static final int box
- The shape's type is box
circle
public static final int circle
- The shape's type is circle
line
public static final int line
- The shape's type is line
arc
public static final int arc
- The shape's type is arc
arrow
public static final int arrow
- The shape's type is arrow
spline
public static final int spline
- The shape's type is spline
text
public static final int text
- The shape's type is text
move
public static final int move
- The shape's type is move
ellipse
public static final int ellipse
- The shape's type is ellipse
dummy
public static final int dummy
- The shape's type is dummy
left_dir
public static final int left_dir
- The drawing is left directed
right_dir
public static final int right_dir
- The drawing is right directed
up_dir
public static final int up_dir
- The drawing is up directed
down_dir
public static final int down_dir
- The drawing is down directed
max_x
public static final int max_x
- The maximal X coordinate
max_y
public static final int max_y
- The maximal Y coordinate
ellipse_width
public static final int ellipse_width
- The default ellipse width (in pixels)
ellipse_height
public static final int ellipse_height
- The default ellipse height (in pixels)
box_height
public static final int box_height
- The default box height (in pixels)
box_width
public static final int box_width
- The default box width (in pixels)
shape_fill
public static final boolean shape_fill
- The default shape fill flag. The default shape is not filled
circle_radius
public static final int circle_radius
- The default circle radius (in pixels)
line_width
public static final int line_width
- The default line width (in pixels)
line_height
public static final int line_height
- The default line height (in pixels)
arrow_width
public static final int arrow_width
- The default arrow width (in pixels)
arrow_height
public static final int arrow_height
- The default arrow height (in pixels)
move_width
public static final int move_width
- The default move width (in pixels)
move_height
public static final int move_height
- The default move height (in pixels)
arc_radius
public static final int arc_radius
- The default arc radius (in pixels)
text_width
public static final int text_width
- The default text width (in pixels)
text_height
public static final int text_height
- The default text height (in pixels)
arc_clockwise
public static final boolean arc_clockwise
- The default arc direction (counter clockwise)
near
public static final int near
- The distance of cursor from element when this element
can be selected
Definitions
public Definitions()
pixelToInch
public static double pixelToInch(int pixel)
- Translates the distance from pixels to inches
- Parameters:
- pixels - distance in pixels
- Returns:
- distance in inches
trancate
public static double trancate(double num)
- Returns the double parameter trancated to two digits
All Packages Class Hierarchy This Package Previous Next Index