Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

ViewerMode Class Reference

Enumeration of supported viewer modes. More...

List of all members.

Static Public Methods

int stringToMode (String name)
 Translate the given string to a viewer mode. More...

int stringToDrawMode (String name)
 Translate the given string to a draw sub-mode. More...

int stringToReshapeMode (String name)
 Translate the given string to a reshape sub-mode. More...

String[] viewerSubModes ()
 All sub-modes as array of strings. More...

int stringToSubMode (String name)
 Translate the given string to a sub-mode. More...


Static Public Attributes

final int SELECT = 0
 Main viewer mode: select object. More...

final int DRAW = 1
 Main viewer mode: draw graphical object. More...

final int MOVE = 2
 Main viewer mode: move graphical object. More...

final int COPY = 3
 Main viewer mode: copy graphical object. More...

final int RESIZE = 4
 Main viewer mode: resize graphical object. More...

final int RESHAPE = 5
 Main viewer mode: reshape graphical object. More...

final int DELETE = 6
 Main viewer mode: delete object. More...

final int DRAW_POINT = 100
 Draw sub-mode: draw point. More...

final int DRAW_LINE = 101
 Draw sub-mode: draw line. More...

final int DRAW_ARROW = 102
 Draw sub-mode: draw arrow. More...

final int DRAW_SQUARE = 103
 Draw sub-mode: draw square. More...

final int DRAW_RECTANGLE = 104
 Draw sub-mode: draw rectangle. More...

final int DRAW_CIRCLE = 105
 Draw sub-mode: draw circle. More...

final int DRAW_OVAL = 106
 Draw sub-mode: draw oval. More...

final int DRAW_POLYGON = 107
 Draw sub-mode: draw polygon. More...

final int DRAW_POLYLINE = 108
 Draw sub-mode: draw polyline. More...

final int DRAW_FREE_CLOSED = 109
 Draw sub-mode: draw closed freehand. More...

final int DRAW_FREE_OPEN = 110
 Draw sub-mode: draw open freehand. More...

final int DRAW_STRING = 111
 Draw sub-mode: draw string. More...

final int RESHAPE_MOVE_P = 500
 Reshape sub-mode: move point. More...

final int RESHAPE_DEL_P = 501
 Reshape sub-mode: delete point. More...

final int UNDEFINED = -1
 No mode defined. More...

final String[] viewerModes
 Main viewer modes as array of strings. More...

final String[] drawModes
 Draw sub-modes as array of strings. More...

final String[] reshapeModes
 Reshape sub-modes as array of strings. More...


Detailed Description

Enumeration of supported viewer modes.

Some modes (draw, reshape) also have sub-modes. The modes are garanteed to start at 0 and to be consecutive. Sub-modes are garanteed to start at "mode*100" and to be consecutive.


Member Function Documentation

int ViewerMode::stringToMode String    name [inline, static]
 

Translate the given string to a viewer mode.

int ViewerMode::stringToDrawMode String    name [inline, static]
 

Translate the given string to a draw sub-mode.

int ViewerMode::stringToReshapeMode String    name [inline, static]
 

Translate the given string to a reshape sub-mode.

String [] ViewerMode::viewerSubModes   [inline, static]
 

All sub-modes as array of strings.

int ViewerMode::stringToSubMode String    name [inline, static]
 

Translate the given string to a sub-mode.


Member Data Documentation

final int ViewerMode::SELECT = 0 [static]
 

Main viewer mode: select object.

final int ViewerMode::DRAW = 1 [static]
 

Main viewer mode: draw graphical object.

final int ViewerMode::MOVE = 2 [static]
 

Main viewer mode: move graphical object.

final int ViewerMode::COPY = 3 [static]
 

Main viewer mode: copy graphical object.

final int ViewerMode::RESIZE = 4 [static]
 

Main viewer mode: resize graphical object.

final int ViewerMode::RESHAPE = 5 [static]
 

Main viewer mode: reshape graphical object.

final int ViewerMode::DELETE = 6 [static]
 

Main viewer mode: delete object.

final int ViewerMode::DRAW_POINT = 100 [static]
 

Draw sub-mode: draw point.

final int ViewerMode::DRAW_LINE = 101 [static]
 

Draw sub-mode: draw line.

final int ViewerMode::DRAW_ARROW = 102 [static]
 

Draw sub-mode: draw arrow.

final int ViewerMode::DRAW_SQUARE = 103 [static]
 

Draw sub-mode: draw square.

final int ViewerMode::DRAW_RECTANGLE = 104 [static]
 

Draw sub-mode: draw rectangle.

final int ViewerMode::DRAW_CIRCLE = 105 [static]
 

Draw sub-mode: draw circle.

final int ViewerMode::DRAW_OVAL = 106 [static]
 

Draw sub-mode: draw oval.

final int ViewerMode::DRAW_POLYGON = 107 [static]
 

Draw sub-mode: draw polygon.

final int ViewerMode::DRAW_POLYLINE = 108 [static]
 

Draw sub-mode: draw polyline.

final int ViewerMode::DRAW_FREE_CLOSED = 109 [static]
 

Draw sub-mode: draw closed freehand.

final int ViewerMode::DRAW_FREE_OPEN = 110 [static]
 

Draw sub-mode: draw open freehand.

final int ViewerMode::DRAW_STRING = 111 [static]
 

Draw sub-mode: draw string.

final int ViewerMode::RESHAPE_MOVE_P = 500 [static]
 

Reshape sub-mode: move point.

final int ViewerMode::RESHAPE_DEL_P = 501 [static]
 

Reshape sub-mode: delete point.

final int ViewerMode::UNDEFINED = -1 [static]
 

No mode defined.

final String [] ViewerMode::viewerModes [static]
 

Initial value:

 new String[]
                                        {"Select", "Draw", "Move", "Copy",
                                         "Resize", "Reshape", "Delete" }
Main viewer modes as array of strings.

final String [] ViewerMode::drawModes [static]
 

Initial value:

 new String[]
                                        {"Point", "Line", "Arrow",
                                         "Square", "Rectangle",
                                         "Circle", "Oval",
                                         "Polygon", "Polyline",
                                         "Freehand Closed",
                                         "Freehand Open",
                                         "String" }
Draw sub-modes as array of strings.

final String [] ViewerMode::reshapeModes [static]
 

Initial value:

 new String[]
                                        {"Move Point", "Delete Point" }
Reshape sub-modes as array of strings.


The documentation for this class was generated from the following file:
Generated on Tue Jan 8 14:14:28 2002 for JavaReference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001