net.sf.jaxodraw.util
Class JaxoConstants

java.lang.Object
  extended by net.sf.jaxodraw.util.JaxoConstants

public final class JaxoConstants
extends Object

Defines constants used throughout JaxoDraw.

Since:
2.0

Field Summary
static int ABOUT
          About.
static int ANTIALIAS
          Antialias on/off.
static int ARROW
          Arrow on/off.
static int BACKGROUND
          Put an object in the background.
static int BLOB
          Blob (filled ellipse).
static int BOX
          Box (filled rectangle).
static int CLEAR
          Clear the current graph.
static int CLOSE
          Close the current buffer.
static int COLOR
          Color an object.
static int CUT
          Cut the most recently selected objects stored in the clipboard.
static int DEF_BLOB
          Default .
static int DEF_BOX
          Default .
static int DEF_COLOR
          Default .
static int DEF_DUPLICATE
          Default .
static int DEF_EDIT
          Default .
static int DEF_FARC
          Default .
static int DEF_FLINE
          Default fline.
static int DEF_FLOOP
          Default .
static int DEF_GARC
          Default .
static int DEF_GLARC
          Default .
static int DEF_GLINE
          Default .
static int DEF_GLLINE
          Default .
static int DEF_GLLOOP
          Default .
static int DEF_GLOOP
          Default .
static int DEF_LATEX
          Default .
static int DEF_MOVE
          Default .
static int DEF_NONE
          Default none.
static int DEF_PARC
          Default .
static int DEF_PLINE
          Default .
static int DEF_PLOOP
          Default .
static int DEF_RESIZE
          Default .
static int DEF_SARC
          Default .
static int DEF_SELECT
          Default .
static int DEF_SLINE
          Default .
static int DEF_SLOOP
          Default .
static int DEF_TEXT
          Default .
static int DEF_VERTEX
          Default .
static int DEF_ZIGZAG
          Default .
static int DELETE
          Delete an object.
static int DESCRIBE
          Enter a description of the graph.
static int DUMMIE
          A dummy variable.
static int DUMMIE1
          Another dummy.
static int DUPLICATE
          Copy an object.
static int EDIT
          Edit an object.
static int ENGLISH
          English language mode.
static int EXPORT
          Export the graph.
static int EXPORT_SELECTION
          Export the current selection of objects.
static int FARC
          Fermion arc.
static int FBEZ
          Fermionic Bezier.
static int FLINE
          Fermion line.
static int FLOOP
          Fermion loop.
static int FOREGROUND
          Put an object in the foreground.
static int FRENCH
          French language mode.
static int GARC
          Ghost arc.
static int GBEZ
          Ghost Bezier.
static int GERMAN
          German language mode.
static int GLARC
          Gluon arc.
static int GLBEZ
          Gluonic Bezier.
static int GLINE
          Ghost line.
static int GLLINE
          Gluon line.
static int GLLOOP
          Gluon loop.
static int GLOOP
          Ghost loop.
static int GRID
          Grid.
static int GRID_ONOFF
          Grid on/off.
static int GRID_SIZE
          Grid size.
static int GRID_STYLE_CROSS
          Cross style.
static int GRID_STYLE_DOT
          Dot style.
static int GRID_STYLE_LINE
          Line style.
static int GRID_STYLE_LINE_HONEYCOMB
          Honeycomb style.
static int GRIDBAR
          Show gridbar.
static int HEXAGONAL_GRID
          Hexagonal grid.
static int IMPORT
          Import a Latex file.
static int ITALIAN
          Italian language mode.
static int LATEX
          Latex text.
static int LATEX_PREVIEW_SELECTION
          Preview the current selection of objects (compiles in LaTeX + dvips).
static int LOOKNFEEL
          LooknFeel dialog.
static int MAC_README
          System info.
static int MOVE
          Move an object.
static int MOVE_GRAPH
          Move complete graph on canvas.
static int NEWG
          Start a new graph.
static int NEWT
          Start a new graph tab.
static int NO_MODE
          A mode indicating an invalid JaxoDraw mode.
static int OPEN
          Open a JaxoDraw file.
static int PACKAGE
          Add a custom Latex package to the Latex output of JaxoDraw.
static int PARC
          Photon arc.
static int PASTE
          Paste the most recently selected objects from the clipboard.
static int PBEZ
          Photonic Bezier.
static int PLINE
          Photon line.
static int PLOOP
          Photon loop.
static int PLUGINS
          Plugin manager dialog.
static int PREFERENCES
          Preferences dialog.
static int PREVIEW
          Preview the graph.
static int PRINT
          Print the graph.
static int QUIT
          Quit.
static int RECENT_FILE
          Recent file mode.
static int RECTANGULAR_GRID
          Rectangular grid.
static int REDO
          Redo the last operations.
static int REFRESH
          Refresh the screen.
static int RENAME_TAB
          Rename a tab.
static int RESIZE
          Resize an object.
static int SARC
          Scalar arc.
static int SAVE
          Save a JaxoDraw graph.
static int SAVE_AS
          Save a JaxoDraw graph in a given file.
static int SAVE_SELECTION_AS
          Save the current selection of objects in a given file.
static int SBACK
          Put in the background the most recently selected objects.
static int SBEZ
          Scalar Bezier.
static int SCOPY
          Copy into the clipboard the most recently selected objects.
static int SELECT
          Select objects.
static int SFORE
          Put in the foreground the most recently selected objects.
static int SGROUP
          Group the most recently selected objects.
static int SLINE
          Scalar line.
static int SLOOP
          Scalar loop.
static int SNAP_ONOFF
          Snap on/off.
static int SPANISH
          Spanish language mode.
static int STANDBY
          Default drawing mode: do nothing.
static int STATUSBAR
          Show statusbar.
static int SUNGROUP
          Ungroup the most recently selected objects.
static int SYS_INFO
          System info.
static int TEXT
          Normal text.
static int TOOLBAR
          Show toolbar.
static int UNDO
          Undo the last operations.
static int UNGROUP
          Ungroup objects.
static int USR_GUIDE
          User guide.
static int VERTEX
          A general vertex.
static int VERTEXT1
          A vertex type 1 object (a dot).
static int VERTEXT2
          A vertex type 2 object (a cross with a circle).
static int VERTEXT3
          A vertex type 3 object (a filled square).
static int VERTEXT4
          A vertex type 4 object (a cross).
static int VERTEXT5
          A vertex type 5 object (a triangle).
static int VERTEXT6
          A vertex type 6 object (a diamond).
static int WATCHFILE
          Watch file mode.
static int ZIGZAG
          ZigZag line.
static int ZOOM
          Dynamic zoom.
static int ZOOM_FACTOR
          A zoom factor mode.
static int ZOOM_FACTOR_X2
          A zoom factor mode x2.
static int ZOOM_FACTOR_X4
          A zoom factor mode x4.
static int ZOOM_FACTOR_X8
          A zoom factor mode x8.
 
Method Summary
static String[] defaultActionKeys()
          Returns the default action keys.
static int defaultActionToMode(int defaultAction)
          Mode constants corresponding to a DEF_XYZ constant.
static int[] defaultModes()
          Returns the default modes.
static int getModeAsInt(String modeString)
          Converts the given string to an integer and checks if it corresponds to a JaxoDraw mode.
static String getModeAsString(int mode)
          Returns a string representation of the given mode.
static boolean isActionMode(int mode)
          Determines whether the given mode is an action mode.
static boolean isArcMode(int mode)
          Determines whether the given mode is an arc mode.
static boolean isBezierMode(int mode)
          Determines whether the given mode is a Bezier mode.
static boolean isDefaultMode(int mode)
          Determines whether the given mode is a default mode.
static boolean isEditMode(int mode)
          Determines whether the given mode is an edit mode.
static boolean isFileMode(int mode)
          Determines whether the given mode is a file mode.
static boolean isGridMode(int mode)
          Determines whether the given mode is a grid mode.
static boolean isHelpMode(int mode)
          Determines whether the given mode is a help mode.
static boolean isLanguageMode(int mode)
          Determines whether the given mode is a language mode.
static boolean isLineMode(int mode)
          Determines whether the given mode is a line mode.
static boolean isLoopMode(int mode)
          Determines whether the given mode is a loop mode.
static boolean isMiscMode(int mode)
          Determines whether the given mode is a misc mode.
static boolean isNewObjectMode(int mode)
          Determines whether the given mode is a mode that will create a new JaxoObject.
static boolean isOptionMode(int mode)
          Determines whether the given mode is an option mode.
static boolean isParticleMode(int mode)
          Determines whether the given mode is a particle mode.
static boolean isSelectMode(int mode)
          Determines whether the given mode is a select mode (mode allowing an object to be selected).
static boolean isTextMode(int mode)
          Determines whether the given mode is a text mode (either LATEX or TEXT).
static boolean isVertexMode(int mode)
          Determines whether the given mode is a vertex mode.
static boolean isZoomFactorMode(int mode)
          Determines whether the given mode is a zoom factor mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_MODE

public static final int NO_MODE
A mode indicating an invalid JaxoDraw mode.

See Also:
Constant Field Values

STANDBY

public static final int STANDBY
Default drawing mode: do nothing.

See Also:
Constant Field Values

FLINE

public static final int FLINE
Fermion line.

See Also:
Constant Field Values

FLOOP

public static final int FLOOP
Fermion loop.

See Also:
Constant Field Values

FARC

public static final int FARC
Fermion arc.

See Also:
Constant Field Values

SLINE

public static final int SLINE
Scalar line.

See Also:
Constant Field Values

SLOOP

public static final int SLOOP
Scalar loop.

See Also:
Constant Field Values

SARC

public static final int SARC
Scalar arc.

See Also:
Constant Field Values

GLINE

public static final int GLINE
Ghost line.

See Also:
Constant Field Values

GLOOP

public static final int GLOOP
Ghost loop.

See Also:
Constant Field Values

GARC

public static final int GARC
Ghost arc.

See Also:
Constant Field Values

PLINE

public static final int PLINE
Photon line.

See Also:
Constant Field Values

PLOOP

public static final int PLOOP
Photon loop.

See Also:
Constant Field Values

PARC

public static final int PARC
Photon arc.

See Also:
Constant Field Values

GLLINE

public static final int GLLINE
Gluon line.

See Also:
Constant Field Values

GLLOOP

public static final int GLLOOP
Gluon loop.

See Also:
Constant Field Values

GLARC

public static final int GLARC
Gluon arc.

See Also:
Constant Field Values

FBEZ

public static final int FBEZ
Fermionic Bezier.

See Also:
Constant Field Values

PBEZ

public static final int PBEZ
Photonic Bezier.

See Also:
Constant Field Values

GLBEZ

public static final int GLBEZ
Gluonic Bezier.

See Also:
Constant Field Values

SBEZ

public static final int SBEZ
Scalar Bezier.

See Also:
Constant Field Values

GBEZ

public static final int GBEZ
Ghost Bezier.

See Also:
Constant Field Values

BOX

public static final int BOX
Box (filled rectangle).

See Also:
Constant Field Values

BLOB

public static final int BLOB
Blob (filled ellipse).

See Also:
Constant Field Values

VERTEX

public static final int VERTEX
A general vertex.

See Also:
Constant Field Values

ZIGZAG

public static final int ZIGZAG
ZigZag line.

See Also:
Constant Field Values

TEXT

public static final int TEXT
Normal text.

See Also:
Constant Field Values

LATEX

public static final int LATEX
Latex text.

See Also:
Constant Field Values

VERTEXT1

public static final int VERTEXT1
A vertex type 1 object (a dot).

See Also:
Constant Field Values

VERTEXT2

public static final int VERTEXT2
A vertex type 2 object (a cross with a circle).

See Also:
Constant Field Values

VERTEXT3

public static final int VERTEXT3
A vertex type 3 object (a filled square).

See Also:
Constant Field Values

VERTEXT4

public static final int VERTEXT4
A vertex type 4 object (a cross).

See Also:
Constant Field Values

VERTEXT5

public static final int VERTEXT5
A vertex type 5 object (a triangle).

See Also:
Constant Field Values

VERTEXT6

public static final int VERTEXT6
A vertex type 6 object (a diamond).

See Also:
Constant Field Values

MOVE

public static final int MOVE
Move an object.

See Also:
Constant Field Values

RESIZE

public static final int RESIZE
Resize an object.

See Also:
Constant Field Values

DUPLICATE

public static final int DUPLICATE
Copy an object.

See Also:
Constant Field Values

COLOR

public static final int COLOR
Color an object.

See Also:
Constant Field Values

EDIT

public static final int EDIT
Edit an object.

See Also:
Constant Field Values

DELETE

public static final int DELETE
Delete an object.

See Also:
Constant Field Values

BACKGROUND

public static final int BACKGROUND
Put an object in the background.

See Also:
Constant Field Values

FOREGROUND

public static final int FOREGROUND
Put an object in the foreground.

See Also:
Constant Field Values

UNGROUP

public static final int UNGROUP
Ungroup objects.

See Also:
Constant Field Values

SELECT

public static final int SELECT
Select objects.

See Also:
Constant Field Values

NEWG

public static final int NEWG
Start a new graph.

See Also:
Constant Field Values

OPEN

public static final int OPEN
Open a JaxoDraw file.

See Also:
Constant Field Values

SAVE

public static final int SAVE
Save a JaxoDraw graph.

See Also:
Constant Field Values

SAVE_AS

public static final int SAVE_AS
Save a JaxoDraw graph in a given file.

See Also:
Constant Field Values

EXPORT

public static final int EXPORT
Export the graph.

See Also:
Constant Field Values

PRINT

public static final int PRINT
Print the graph.

See Also:
Constant Field Values

CLOSE

public static final int CLOSE
Close the current buffer.

See Also:
Constant Field Values

NEWT

public static final int NEWT
Start a new graph tab.

See Also:
Constant Field Values

IMPORT

public static final int IMPORT
Import a Latex file.

See Also:
Constant Field Values

SAVE_SELECTION_AS

public static final int SAVE_SELECTION_AS
Save the current selection of objects in a given file.

See Also:
Constant Field Values

EXPORT_SELECTION

public static final int EXPORT_SELECTION
Export the current selection of objects.

See Also:
Constant Field Values

RECENT_FILE

public static final int RECENT_FILE
Recent file mode. This is NOT a file mode!

See Also:
Constant Field Values

ZOOM_FACTOR

public static final int ZOOM_FACTOR
A zoom factor mode.

See Also:
Constant Field Values

ZOOM_FACTOR_X2

public static final int ZOOM_FACTOR_X2
A zoom factor mode x2.

See Also:
Constant Field Values

ZOOM_FACTOR_X4

public static final int ZOOM_FACTOR_X4
A zoom factor mode x4.

See Also:
Constant Field Values

ZOOM_FACTOR_X8

public static final int ZOOM_FACTOR_X8
A zoom factor mode x8.

See Also:
Constant Field Values

UNDO

public static final int UNDO
Undo the last operations.

See Also:
Constant Field Values

CLEAR

public static final int CLEAR
Clear the current graph.

See Also:
Constant Field Values

REDO

public static final int REDO
Redo the last operations.

See Also:
Constant Field Values

REFRESH

public static final int REFRESH
Refresh the screen.

See Also:
Constant Field Values

PASTE

public static final int PASTE
Paste the most recently selected objects from the clipboard.

See Also:
Constant Field Values

DESCRIBE

public static final int DESCRIBE
Enter a description of the graph.

See Also:
Constant Field Values

PACKAGE

public static final int PACKAGE
Add a custom Latex package to the Latex output of JaxoDraw.

See Also:
Constant Field Values

PREVIEW

public static final int PREVIEW
Preview the graph.

See Also:
Constant Field Values

WATCHFILE

public static final int WATCHFILE
Watch file mode.

See Also:
Constant Field Values

RENAME_TAB

public static final int RENAME_TAB
Rename a tab.

See Also:
Constant Field Values

CUT

public static final int CUT
Cut the most recently selected objects stored in the clipboard.

See Also:
Constant Field Values

SCOPY

public static final int SCOPY
Copy into the clipboard the most recently selected objects.

See Also:
Constant Field Values

SGROUP

public static final int SGROUP
Group the most recently selected objects.

See Also:
Constant Field Values

SUNGROUP

public static final int SUNGROUP
Ungroup the most recently selected objects.

See Also:
Constant Field Values

SFORE

public static final int SFORE
Put in the foreground the most recently selected objects.

See Also:
Constant Field Values

SBACK

public static final int SBACK
Put in the background the most recently selected objects.

See Also:
Constant Field Values

LATEX_PREVIEW_SELECTION

public static final int LATEX_PREVIEW_SELECTION
Preview the current selection of objects (compiles in LaTeX + dvips).

See Also:
Constant Field Values

MOVE_GRAPH

public static final int MOVE_GRAPH
Move complete graph on canvas.

See Also:
Constant Field Values

ABOUT

public static final int ABOUT
About.

See Also:
Constant Field Values

USR_GUIDE

public static final int USR_GUIDE
User guide.

See Also:
Constant Field Values

SYS_INFO

public static final int SYS_INFO
System info.

See Also:
Constant Field Values

MAC_README

public static final int MAC_README
System info.

See Also:
Constant Field Values

GRID

public static final int GRID
Grid.

See Also:
Constant Field Values

ZOOM

public static final int ZOOM
Dynamic zoom.

See Also:
Constant Field Values

QUIT

public static final int QUIT
Quit.

See Also:
Constant Field Values

GRID_SIZE

public static final int GRID_SIZE
Grid size.

See Also:
Constant Field Values

RECTANGULAR_GRID

public static final int RECTANGULAR_GRID
Rectangular grid.

See Also:
Constant Field Values

HEXAGONAL_GRID

public static final int HEXAGONAL_GRID
Hexagonal grid.

See Also:
Constant Field Values

GRID_STYLE_DOT

public static final int GRID_STYLE_DOT
Dot style.

See Also:
Constant Field Values

GRID_STYLE_CROSS

public static final int GRID_STYLE_CROSS
Cross style.

See Also:
Constant Field Values

GRID_STYLE_LINE

public static final int GRID_STYLE_LINE
Line style.

See Also:
Constant Field Values

GRID_STYLE_LINE_HONEYCOMB

public static final int GRID_STYLE_LINE_HONEYCOMB
Honeycomb style.

See Also:
Constant Field Values

ENGLISH

public static final int ENGLISH
English language mode.

See Also:
Constant Field Values

GERMAN

public static final int GERMAN
German language mode.

See Also:
Constant Field Values

FRENCH

public static final int FRENCH
French language mode.

See Also:
Constant Field Values

ITALIAN

public static final int ITALIAN
Italian language mode.

See Also:
Constant Field Values

SPANISH

public static final int SPANISH
Spanish language mode.

See Also:
Constant Field Values

TOOLBAR

public static final int TOOLBAR
Show toolbar.

See Also:
Constant Field Values

STATUSBAR

public static final int STATUSBAR
Show statusbar.

See Also:
Constant Field Values

ANTIALIAS

public static final int ANTIALIAS
Antialias on/off.

See Also:
Constant Field Values

ARROW

public static final int ARROW
Arrow on/off.

See Also:
Constant Field Values

LOOKNFEEL

public static final int LOOKNFEEL
LooknFeel dialog.

See Also:
Constant Field Values

PREFERENCES

public static final int PREFERENCES
Preferences dialog.

See Also:
Constant Field Values

GRID_ONOFF

public static final int GRID_ONOFF
Grid on/off.

See Also:
Constant Field Values

GRIDBAR

public static final int GRIDBAR
Show gridbar.

See Also:
Constant Field Values

SNAP_ONOFF

public static final int SNAP_ONOFF
Snap on/off.

See Also:
Constant Field Values

PLUGINS

public static final int PLUGINS
Plugin manager dialog.

See Also:
Constant Field Values

DEF_NONE

public static final int DEF_NONE
Default none.

See Also:
Constant Field Values

DEF_FLINE

public static final int DEF_FLINE
Default fline.

See Also:
Constant Field Values

DEF_FLOOP

public static final int DEF_FLOOP
Default .

See Also:
Constant Field Values

DEF_FARC

public static final int DEF_FARC
Default .

See Also:
Constant Field Values

DEF_SLINE

public static final int DEF_SLINE
Default .

See Also:
Constant Field Values

DEF_SLOOP

public static final int DEF_SLOOP
Default .

See Also:
Constant Field Values

DEF_SARC

public static final int DEF_SARC
Default .

See Also:
Constant Field Values

DEF_GLINE

public static final int DEF_GLINE
Default .

See Also:
Constant Field Values

DEF_GLOOP

public static final int DEF_GLOOP
Default .

See Also:
Constant Field Values

DEF_GARC

public static final int DEF_GARC
Default .

See Also:
Constant Field Values

DEF_PLINE

public static final int DEF_PLINE
Default .

See Also:
Constant Field Values

DEF_PLOOP

public static final int DEF_PLOOP
Default .

See Also:
Constant Field Values

DEF_PARC

public static final int DEF_PARC
Default .

See Also:
Constant Field Values

DEF_GLLINE

public static final int DEF_GLLINE
Default .

See Also:
Constant Field Values

DEF_GLLOOP

public static final int DEF_GLLOOP
Default .

See Also:
Constant Field Values

DEF_GLARC

public static final int DEF_GLARC
Default .

See Also:
Constant Field Values

DEF_BOX

public static final int DEF_BOX
Default .

See Also:
Constant Field Values

DEF_BLOB

public static final int DEF_BLOB
Default .

See Also:
Constant Field Values

DEF_VERTEX

public static final int DEF_VERTEX
Default .

See Also:
Constant Field Values

DEF_ZIGZAG

public static final int DEF_ZIGZAG
Default .

See Also:
Constant Field Values

DEF_TEXT

public static final int DEF_TEXT
Default .

See Also:
Constant Field Values

DEF_LATEX

public static final int DEF_LATEX
Default .

See Also:
Constant Field Values

DEF_MOVE

public static final int DEF_MOVE
Default .

See Also:
Constant Field Values

DEF_RESIZE

public static final int DEF_RESIZE
Default .

See Also:
Constant Field Values

DEF_DUPLICATE

public static final int DEF_DUPLICATE
Default .

See Also:
Constant Field Values

DEF_COLOR

public static final int DEF_COLOR
Default .

See Also:
Constant Field Values

DEF_EDIT

public static final int DEF_EDIT
Default .

See Also:
Constant Field Values

DEF_SELECT

public static final int DEF_SELECT
Default .

See Also:
Constant Field Values

DUMMIE

public static final int DUMMIE
A dummy variable.

See Also:
Constant Field Values

DUMMIE1

public static final int DUMMIE1
Another dummy.

See Also:
Constant Field Values
Method Detail

defaultActionKeys

public static String[] defaultActionKeys()
Returns the default action keys.

Returns:
The default action keys.

defaultModes

public static int[] defaultModes()
Returns the default modes.

Returns:
The default modes.

isEditMode

public static boolean isEditMode(int mode)
Determines whether the given mode is an edit mode.

Parameters:
mode - The mode to check.
Returns:
True if the given mode is an edit mode.

isParticleMode

public static boolean isParticleMode(int mode)
Determines whether the given mode is a particle mode.

Parameters:
mode - The mode to check.
Returns:
True if the given mode is a particle mode.

isMiscMode

public static boolean isMiscMode(int mode)
Determines whether the given mode is a misc mode.

Parameters:
mode - The mode to check.
Returns:
True if the given mode is a misc mode.

isFileMode

public static boolean isFileMode(int mode)
Determines whether the given mode is a file mode.

Parameters:
mode - The mode to check.
Returns:
True if the given mode is a file mode.

isActionMode

public static boolean isActionMode(int mode)
Determines whether the given mode is an action mode.

Parameters:
mode - The mode to check.
Returns:
True if the given mode is an action mode.

isGridMode

public static boolean isGridMode(int mode)
Determines whether the given mode is a grid mode.

Parameters:
mode - The mode to check.
Returns:
True if the given mode is a grid mode.

isVertexMode

public static boolean isVertexMode(int mode)
Determines whether the given mode is a vertex mode.

Parameters:
mode - The mode to check.
Returns:
True if the given mode is a vertex mode.

isZoomFactorMode

public static boolean isZoomFactorMode(int mode)
Determines whether the given mode is a zoom factor mode.

Parameters:
mode - The mode to check.
Returns:
True if the given mode is a zoom factor mode.

isHelpMode

public static boolean isHelpMode(int mode)
Determines whether the given mode is a help mode.

Parameters:
mode - The mode to check.
Returns:
True if the given mode is a help mode.

isLanguageMode

public static boolean isLanguageMode(int mode)
Determines whether the given mode is a language mode.

Parameters:
mode - The mode to check.
Returns:
True if the given mode is a language mode.

isOptionMode

public static boolean isOptionMode(int mode)
Determines whether the given mode is an option mode.

Parameters:
mode - The mode to check.
Returns:
True if the given mode is an option mode.

isDefaultMode

public static boolean isDefaultMode(int mode)
Determines whether the given mode is a default mode.

Parameters:
mode - The mode to check.
Returns:
True if the given mode is a default mode.

isNewObjectMode

public static boolean isNewObjectMode(int mode)
Determines whether the given mode is a mode that will create a new JaxoObject.

Parameters:
mode - The mode to check.
Returns:
True if the given mode is a particle, misc or vertex mode.

isLineMode

public static boolean isLineMode(int mode)
Determines whether the given mode is a line mode.

Parameters:
mode - The mode to check.
Returns:
True if the given mode is a line mode.

isArcMode

public static boolean isArcMode(int mode)
Determines whether the given mode is an arc mode.

Parameters:
mode - The mode to check.
Returns:
True if the given mode is an arc mode.

isBezierMode

public static boolean isBezierMode(int mode)
Determines whether the given mode is a Bezier mode.

Parameters:
mode - The mode to check.
Returns:
True if the given mode is an arc mode.

isLoopMode

public static boolean isLoopMode(int mode)
Determines whether the given mode is a loop mode.

Parameters:
mode - The mode to check.
Returns:
True if the given mode is a loop mode.

isTextMode

public static boolean isTextMode(int mode)
Determines whether the given mode is a text mode (either LATEX or TEXT).

Parameters:
mode - The mode to check.
Returns:
True if the given mode is a text mode.

isSelectMode

public static boolean isSelectMode(int mode)
Determines whether the given mode is a select mode (mode allowing an object to be selected).

Parameters:
mode - The mode to check.
Returns:
True if the given mode is a select mode.

getModeAsString

public static String getModeAsString(int mode)
Returns a string representation of the given mode.

Parameters:
mode - The mode to convert.
Returns:
The mode as a string, or "NO_MODE" if it is not a valid mode.

getModeAsInt

public static int getModeAsInt(String modeString)
Converts the given string to an integer and checks if it corresponds to a JaxoDraw mode.

Parameters:
modeString - A string holding an integer.
Returns:
The JaxoDraw mode as defined by this class if modeString corresponds to one of them, or JaxoConstants.NO_MODE otherwise.

defaultActionToMode

public static int defaultActionToMode(int defaultAction)
Mode constants corresponding to a DEF_XYZ constant.

Parameters:
defaultAction - One of the default modes defined by this class.
Returns:
One of the modes corresponding to defaultAction, or STANDBY if defaultAction is not a valid mode.


Copyright © 2003-2011 The JaxoDraw team. All Rights Reserved.