Package net.sf.jaxodraw.util
Enum JaxoMode
- java.lang.Object
-
- java.lang.Enum<JaxoMode>
-
- net.sf.jaxodraw.util.JaxoMode
-
- All Implemented Interfaces:
Serializable,Comparable<JaxoMode>
public enum JaxoMode extends Enum<JaxoMode>
Collection of modes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABOUTAbout.ANTIALIASAntialias on/off.ARROWArrow on/off.ATTACHAttach handles.BACKGROUNDPut an object in the background.BLOBBlob (filled ellipse).BOXBox (filled rectangle).CLEARClear the current graph.CLEAR_CLIPBOARDClear the clipboard.CLONE_TABOpen a new tab with the graph taken from the current one.CLOSE_ALLClose all tabs.CLOSE_OTHERClose all tabs except the current one.CLOSE_TABClose the current buffer.COLORColor an object.DEFAULT_BLOBDefault .DEFAULT_BOXDefault .DEFAULT_COLORDefault .DEFAULT_DUPLICATEDefault .DEFAULT_EDITDefault .DEFAULT_FERMION_ARCDefault .DEFAULT_FERMION_BEZIERDefault .DEFAULT_FERMION_LINEDefault fline.DEFAULT_FERMION_LOOPDefault .DEFAULT_GHOST_ARCDefault .DEFAULT_GHOST_BEZIERDefault .DEFAULT_GHOST_LINEDefault .DEFAULT_GHOST_LOOPDefault .DEFAULT_GLUON_ARCDefault .DEFAULT_GLUON_BEZIERDefault .DEFAULT_GLUON_LINEDefault .DEFAULT_GLUON_LOOPDefault .DEFAULT_LATEXDefault .DEFAULT_MOVEDefault .DEFAULT_NONEDefault none.DEFAULT_PHOTON_ARCDefault .DEFAULT_PHOTON_BEZIERDefault .DEFAULT_PHOTON_LINEDefault .DEFAULT_PHOTON_LOOPDefault .DEFAULT_RESIZEDefault .DEFAULT_SCALAR_ARCDefault .DEFAULT_SCALAR_BEZIERDefault .DEFAULT_SCALAR_LINEDefault .DEFAULT_SCALAR_LOOPDefault .DEFAULT_SELECTDefault .DEFAULT_TEXTDefault .DEFAULT_TRIANGLEDefault .DEFAULT_VERTEXDefault .DEFAULT_ZIGZAG_ARCDefault .DEFAULT_ZIGZAG_BEZIERDefault .DEFAULT_ZIGZAG_LINEDefault .DEFAULT_ZIGZAG_LOOPDefault .DELETEDelete an object.DESCRIBEEnter a description of the graph.DETACHDetach handles.DUPLICATECopy an object.EDITEdit an object.ENGLISHEnglish language mode.EXPORTExport the graph.FERMION_ARCFermion arc.FERMION_BEZIERFermionic Bezier.FERMION_LINEFermion line.FERMION_LOOPFermion loop.FOREGROUNDPut an object in the foreground.FRENCHFrench language mode.GERMANGerman language mode.GHOST_ARCGhost arc.GHOST_BEZIERGhost Bezier.GHOST_LINEGhost line.GHOST_LOOPGhost loop.GLUON_ARCGluon arc.GLUON_BEZIERGluonic Bezier.GLUON_LINEGluon line.GLUON_LOOPGluon loop.GRIDGrid.GRID_ON_OFFGrid on/off.GRID_SIZEGrid size.GRID_STYLE_CROSSCross style.GRID_STYLE_DOTDot style.GRID_STYLE_LINELine style.GRID_STYLE_LINE_HONEYCOMBHoneycomb style.GRIDBARShow gridbar.HEXAGONAL_GRIDHexagonal grid.IMPORTImport a Latex file.ITALIANItalian language mode.LATEXLatex text.LOG_VIEWThe JaxoDraw web site.LOOKNFEELLooknFeel dialog.MAC_READMESystem info.MOVEMove an object.MOVE_GRAPHMove complete graph on canvas.NEW_GRAPHStart a new graph.NEW_TABStart a new graph tab.OPENOpen a JaxoDraw file.PASTEPaste the most recently selected objects from the clipboard.PHOTON_ARCPhoton arc.PHOTON_BEZIERPhotonic Bezier.PHOTON_LINEPhoton line.PHOTON_LOOPPhoton loop.PLUGINSPlugin manager dialog.PREFERENCESPreferences dialog.PREVIEWPreview the graph.PRINTPrint the graph.QUITQuit.RECENT_FILERecent file mode.RECTANGULAR_GRIDRectangular grid.REDORedo the last operations.REFRESHRefresh the screen.RENAME_TABRename a tab.RESIZEResize an object.SAVESave a JaxoDraw graph.SAVE_ASSave a JaxoDraw graph in a given file.SCALAR_ARCScalar arc.SCALAR_BEZIERScalar Bezier.SCALAR_LINEScalar line.SCALAR_LOOPScalar loop.SELECTSelect objects.SELECT_ALLSelect all objects.SELECTION_BACKGROUNDPut in the background the most recently selected objects.SELECTION_CLEARClear the selected objects.SELECTION_COPYCopy into the clipboard the most recently selected objects.SELECTION_CUTCut the most recently selected objects stored in the clipboard.SELECTION_FOREGROUNDPut in the foreground the most recently selected objects.SELECTION_GROUPGroup the most recently selected objects.SELECTION_UNGROUPUngroup the most recently selected objects.SHORTCUTSThe keyboard shortcuts.SHOW_LATEX_LABELSShow latex labels.SNAP_ON_OFFSnap on/off.SPANISHSpanish language mode.STANDBYDefault drawing mode: do nothing.STATUSBARShow statusbar.SYSTEM_INFOSystem info.TEXTNormal text.TOOLBARShow toolbar.TRIANGLEA filled triangle.UNDOUndo the last operations.UNGROUPUngroup objects.USER_GUIDEUser guide.VERTEXA general vertex.VERTEX_CIRCLE_CROSSA vertex type 2 object (a cross with a circle).VERTEX_CROSSA vertex type 4 object (a cross).VERTEX_DIAMONDA vertex type 6 object (a diamond).VERTEX_DOTA vertex type 1 object (a dot).VERTEX_SQUAREA vertex type 3 object (a filled square).VIEW_CLIPBOARDView the clipboard.WATCHFILEWatch file mode.WEB_SITEThe JaxoDraw web site.ZIGZAG_ARCZigZag arc.ZIGZAG_BEZIERZigZag Bezier.ZIGZAG_LINEZigZag line.ZIGZAG_LOOPZigZag loop.ZOOMDynamic zoom.ZOOM_FACTORA zoom factor mode.ZOOM_FACTOR_X2A zoom factor mode x2.ZOOM_FACTOR_X4A zoom factor mode x4.ZOOM_FACTOR_X8A zoom factor mode x8.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String[]defaultActionKeys()Returns the default action keys.static JaxoModedefaultActionToMode(JaxoMode defaultAction)Mode constants corresponding to a DEFAULT_XYZ constant.static JaxoMode[]defaultModes()Returns the default modes.static StringgetModeAsString(JaxoMode mode)Returns a string representation of the given mode.static JaxoModegetModeFromString(String modeString)Converts the given string to a JaxoMode.static booleanisActionMode(JaxoMode mode)Determines whether the given mode is an action mode.static booleanisArcMode(JaxoMode mode)Determines whether the given mode is an arc mode.static booleanisBezierMode(JaxoMode mode)Determines whether the given mode is a Bezier mode.static booleanisDefaultMode(JaxoMode mode)Determines whether the given mode is a default mode.static booleanisEditMode(JaxoMode mode)Determines whether the given mode is an edit mode.static booleanisFileMode(JaxoMode mode)Determines whether the given mode is a file mode.static booleanisGridMode(JaxoMode mode)Determines whether the given mode is a grid mode.static booleanisHelpMode(JaxoMode mode)Determines whether the given mode is a help mode.static booleanisLanguageMode(JaxoMode mode)Determines whether the given mode is a language mode.static booleanisLineMode(JaxoMode mode)Determines whether the given mode is a line mode.static booleanisLoopMode(JaxoMode mode)Determines whether the given mode is a loop mode.static booleanisMiscMode(JaxoMode mode)Determines whether the given mode is a misc mode.static booleanisNewObjectMode(JaxoMode mode)Determines whether the given mode is a mode that will create a new JaxoObject.static booleanisOptionMode(JaxoMode mode)Determines whether the given mode is an option mode.static booleanisParticleMode(JaxoMode mode)Determines whether the given mode is a particle mode.static booleanisSelectMode(JaxoMode mode)Determines whether the given mode is a select mode (mode allowing an object to be selected).static booleanisTextMode(JaxoMode mode)Determines whether the given mode is a text mode (either LATEX or TEXT).static booleanisVertexMode(JaxoMode mode)Determines whether the given mode is a vertex mode.static booleanisZoomFactorMode(JaxoMode mode)Determines whether the given mode is a zoom factor mode.static JaxoModevalueOf(String name)Returns the enum constant of this type with the specified name.static JaxoMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STANDBY
public static final JaxoMode STANDBY
Default drawing mode: do nothing.
-
FERMION_LINE
public static final JaxoMode FERMION_LINE
Fermion line.
-
FERMION_LOOP
public static final JaxoMode FERMION_LOOP
Fermion loop.
-
FERMION_ARC
public static final JaxoMode FERMION_ARC
Fermion arc.
-
SCALAR_LINE
public static final JaxoMode SCALAR_LINE
Scalar line.
-
SCALAR_LOOP
public static final JaxoMode SCALAR_LOOP
Scalar loop.
-
SCALAR_ARC
public static final JaxoMode SCALAR_ARC
Scalar arc.
-
GHOST_LINE
public static final JaxoMode GHOST_LINE
Ghost line.
-
GHOST_LOOP
public static final JaxoMode GHOST_LOOP
Ghost loop.
-
GHOST_ARC
public static final JaxoMode GHOST_ARC
Ghost arc.
-
PHOTON_LINE
public static final JaxoMode PHOTON_LINE
Photon line.
-
PHOTON_LOOP
public static final JaxoMode PHOTON_LOOP
Photon loop.
-
PHOTON_ARC
public static final JaxoMode PHOTON_ARC
Photon arc.
-
GLUON_LINE
public static final JaxoMode GLUON_LINE
Gluon line.
-
GLUON_LOOP
public static final JaxoMode GLUON_LOOP
Gluon loop.
-
GLUON_ARC
public static final JaxoMode GLUON_ARC
Gluon arc.
-
FERMION_BEZIER
public static final JaxoMode FERMION_BEZIER
Fermionic Bezier.
-
PHOTON_BEZIER
public static final JaxoMode PHOTON_BEZIER
Photonic Bezier.
-
GLUON_BEZIER
public static final JaxoMode GLUON_BEZIER
Gluonic Bezier.
-
SCALAR_BEZIER
public static final JaxoMode SCALAR_BEZIER
Scalar Bezier.
-
GHOST_BEZIER
public static final JaxoMode GHOST_BEZIER
Ghost Bezier.
-
ZIGZAG_LINE
public static final JaxoMode ZIGZAG_LINE
ZigZag line.
-
ZIGZAG_LOOP
public static final JaxoMode ZIGZAG_LOOP
ZigZag loop.
-
ZIGZAG_ARC
public static final JaxoMode ZIGZAG_ARC
ZigZag arc.
-
ZIGZAG_BEZIER
public static final JaxoMode ZIGZAG_BEZIER
ZigZag Bezier.
-
BOX
public static final JaxoMode BOX
Box (filled rectangle).
-
BLOB
public static final JaxoMode BLOB
Blob (filled ellipse).
-
VERTEX
public static final JaxoMode VERTEX
A general vertex.
-
TEXT
public static final JaxoMode TEXT
Normal text.
-
LATEX
public static final JaxoMode LATEX
Latex text.
-
TRIANGLE
public static final JaxoMode TRIANGLE
A filled triangle.
-
VERTEX_DOT
public static final JaxoMode VERTEX_DOT
A vertex type 1 object (a dot).
-
VERTEX_CIRCLE_CROSS
public static final JaxoMode VERTEX_CIRCLE_CROSS
A vertex type 2 object (a cross with a circle).
-
VERTEX_SQUARE
public static final JaxoMode VERTEX_SQUARE
A vertex type 3 object (a filled square).
-
VERTEX_CROSS
public static final JaxoMode VERTEX_CROSS
A vertex type 4 object (a cross).
-
VERTEX_DIAMOND
public static final JaxoMode VERTEX_DIAMOND
A vertex type 6 object (a diamond).
-
MOVE
public static final JaxoMode MOVE
Move an object.
-
RESIZE
public static final JaxoMode RESIZE
Resize an object.
-
DUPLICATE
public static final JaxoMode DUPLICATE
Copy an object.
-
COLOR
public static final JaxoMode COLOR
Color an object.
-
EDIT
public static final JaxoMode EDIT
Edit an object.
-
DELETE
public static final JaxoMode DELETE
Delete an object.
-
BACKGROUND
public static final JaxoMode BACKGROUND
Put an object in the background.
-
FOREGROUND
public static final JaxoMode FOREGROUND
Put an object in the foreground.
-
UNGROUP
public static final JaxoMode UNGROUP
Ungroup objects.
-
SELECT
public static final JaxoMode SELECT
Select objects.
-
NEW_GRAPH
public static final JaxoMode NEW_GRAPH
Start a new graph.
-
OPEN
public static final JaxoMode OPEN
Open a JaxoDraw file.
-
SAVE
public static final JaxoMode SAVE
Save a JaxoDraw graph.
-
SAVE_AS
public static final JaxoMode SAVE_AS
Save a JaxoDraw graph in a given file.
-
EXPORT
public static final JaxoMode EXPORT
Export the graph.
-
PRINT
public static final JaxoMode PRINT
Print the graph.
-
CLOSE_TAB
public static final JaxoMode CLOSE_TAB
Close the current buffer.
-
NEW_TAB
public static final JaxoMode NEW_TAB
Start a new graph tab.
-
IMPORT
public static final JaxoMode IMPORT
Import a Latex file.
-
RECENT_FILE
public static final JaxoMode RECENT_FILE
Recent file mode. This is NOT a file mode!
-
ZOOM_FACTOR
public static final JaxoMode ZOOM_FACTOR
A zoom factor mode.
-
ZOOM_FACTOR_X2
public static final JaxoMode ZOOM_FACTOR_X2
A zoom factor mode x2.
-
ZOOM_FACTOR_X4
public static final JaxoMode ZOOM_FACTOR_X4
A zoom factor mode x4.
-
ZOOM_FACTOR_X8
public static final JaxoMode ZOOM_FACTOR_X8
A zoom factor mode x8.
-
UNDO
public static final JaxoMode UNDO
Undo the last operations.
-
CLEAR
public static final JaxoMode CLEAR
Clear the current graph.
-
REDO
public static final JaxoMode REDO
Redo the last operations.
-
REFRESH
public static final JaxoMode REFRESH
Refresh the screen.
-
PASTE
public static final JaxoMode PASTE
Paste the most recently selected objects from the clipboard.
-
CLEAR_CLIPBOARD
public static final JaxoMode CLEAR_CLIPBOARD
Clear the clipboard.
-
VIEW_CLIPBOARD
public static final JaxoMode VIEW_CLIPBOARD
View the clipboard.
-
DESCRIBE
public static final JaxoMode DESCRIBE
Enter a description of the graph.
-
PREVIEW
public static final JaxoMode PREVIEW
Preview the graph.
-
WATCHFILE
public static final JaxoMode WATCHFILE
Watch file mode.
-
RENAME_TAB
public static final JaxoMode RENAME_TAB
Rename a tab.
-
SELECTION_CLEAR
public static final JaxoMode SELECTION_CLEAR
Clear the selected objects.
-
SELECTION_CUT
public static final JaxoMode SELECTION_CUT
Cut the most recently selected objects stored in the clipboard.
-
SELECT_ALL
public static final JaxoMode SELECT_ALL
Select all objects.
-
SELECTION_COPY
public static final JaxoMode SELECTION_COPY
Copy into the clipboard the most recently selected objects.
-
SELECTION_GROUP
public static final JaxoMode SELECTION_GROUP
Group the most recently selected objects.
-
SELECTION_UNGROUP
public static final JaxoMode SELECTION_UNGROUP
Ungroup the most recently selected objects.
-
SELECTION_FOREGROUND
public static final JaxoMode SELECTION_FOREGROUND
Put in the foreground the most recently selected objects.
-
SELECTION_BACKGROUND
public static final JaxoMode SELECTION_BACKGROUND
Put in the background the most recently selected objects.
-
MOVE_GRAPH
public static final JaxoMode MOVE_GRAPH
Move complete graph on canvas.
-
ATTACH
public static final JaxoMode ATTACH
Attach handles.
-
DETACH
public static final JaxoMode DETACH
Detach handles.
-
CLOSE_ALL
public static final JaxoMode CLOSE_ALL
Close all tabs.
-
CLOSE_OTHER
public static final JaxoMode CLOSE_OTHER
Close all tabs except the current one.
-
CLONE_TAB
public static final JaxoMode CLONE_TAB
Open a new tab with the graph taken from the current one.
-
ABOUT
public static final JaxoMode ABOUT
About.
-
USER_GUIDE
public static final JaxoMode USER_GUIDE
User guide.
-
SYSTEM_INFO
public static final JaxoMode SYSTEM_INFO
System info.
-
MAC_README
public static final JaxoMode MAC_README
System info.
-
WEB_SITE
public static final JaxoMode WEB_SITE
The JaxoDraw web site.
-
LOG_VIEW
public static final JaxoMode LOG_VIEW
The JaxoDraw web site.
-
SHORTCUTS
public static final JaxoMode SHORTCUTS
The keyboard shortcuts.
-
GRID
public static final JaxoMode GRID
Grid.
-
ZOOM
public static final JaxoMode ZOOM
Dynamic zoom.
-
QUIT
public static final JaxoMode QUIT
Quit.
-
GRID_SIZE
public static final JaxoMode GRID_SIZE
Grid size.
-
RECTANGULAR_GRID
public static final JaxoMode RECTANGULAR_GRID
Rectangular grid.
-
HEXAGONAL_GRID
public static final JaxoMode HEXAGONAL_GRID
Hexagonal grid.
-
GRID_STYLE_DOT
public static final JaxoMode GRID_STYLE_DOT
Dot style.
-
GRID_STYLE_CROSS
public static final JaxoMode GRID_STYLE_CROSS
Cross style.
-
GRID_STYLE_LINE
public static final JaxoMode GRID_STYLE_LINE
Line style.
-
GRID_STYLE_LINE_HONEYCOMB
public static final JaxoMode GRID_STYLE_LINE_HONEYCOMB
Honeycomb style.
-
ENGLISH
public static final JaxoMode ENGLISH
English language mode.
-
GERMAN
public static final JaxoMode GERMAN
German language mode.
-
FRENCH
public static final JaxoMode FRENCH
French language mode.
-
ITALIAN
public static final JaxoMode ITALIAN
Italian language mode.
-
SPANISH
public static final JaxoMode SPANISH
Spanish language mode.
-
TOOLBAR
public static final JaxoMode TOOLBAR
Show toolbar.
-
STATUSBAR
public static final JaxoMode STATUSBAR
Show statusbar.
-
ANTIALIAS
public static final JaxoMode ANTIALIAS
Antialias on/off.
-
ARROW
public static final JaxoMode ARROW
Arrow on/off.
-
LOOKNFEEL
public static final JaxoMode LOOKNFEEL
LooknFeel dialog.
-
PREFERENCES
public static final JaxoMode PREFERENCES
Preferences dialog.
-
GRID_ON_OFF
public static final JaxoMode GRID_ON_OFF
Grid on/off.
-
GRIDBAR
public static final JaxoMode GRIDBAR
Show gridbar.
-
SNAP_ON_OFF
public static final JaxoMode SNAP_ON_OFF
Snap on/off.
-
PLUGINS
public static final JaxoMode PLUGINS
Plugin manager dialog.
-
SHOW_LATEX_LABELS
public static final JaxoMode SHOW_LATEX_LABELS
Show latex labels.
-
DEFAULT_NONE
public static final JaxoMode DEFAULT_NONE
Default none.
-
DEFAULT_FERMION_LINE
public static final JaxoMode DEFAULT_FERMION_LINE
Default fline.
-
DEFAULT_FERMION_LOOP
public static final JaxoMode DEFAULT_FERMION_LOOP
Default .
-
DEFAULT_FERMION_ARC
public static final JaxoMode DEFAULT_FERMION_ARC
Default .
-
DEFAULT_SCALAR_LINE
public static final JaxoMode DEFAULT_SCALAR_LINE
Default .
-
DEFAULT_SCALAR_LOOP
public static final JaxoMode DEFAULT_SCALAR_LOOP
Default .
-
DEFAULT_SCALAR_ARC
public static final JaxoMode DEFAULT_SCALAR_ARC
Default .
-
DEFAULT_GHOST_LINE
public static final JaxoMode DEFAULT_GHOST_LINE
Default .
-
DEFAULT_GHOST_LOOP
public static final JaxoMode DEFAULT_GHOST_LOOP
Default .
-
DEFAULT_GHOST_ARC
public static final JaxoMode DEFAULT_GHOST_ARC
Default .
-
DEFAULT_PHOTON_LINE
public static final JaxoMode DEFAULT_PHOTON_LINE
Default .
-
DEFAULT_PHOTON_LOOP
public static final JaxoMode DEFAULT_PHOTON_LOOP
Default .
-
DEFAULT_PHOTON_ARC
public static final JaxoMode DEFAULT_PHOTON_ARC
Default .
-
DEFAULT_GLUON_LINE
public static final JaxoMode DEFAULT_GLUON_LINE
Default .
-
DEFAULT_GLUON_LOOP
public static final JaxoMode DEFAULT_GLUON_LOOP
Default .
-
DEFAULT_GLUON_ARC
public static final JaxoMode DEFAULT_GLUON_ARC
Default .
-
DEFAULT_BOX
public static final JaxoMode DEFAULT_BOX
Default .
-
DEFAULT_BLOB
public static final JaxoMode DEFAULT_BLOB
Default .
-
DEFAULT_VERTEX
public static final JaxoMode DEFAULT_VERTEX
Default .
-
DEFAULT_TEXT
public static final JaxoMode DEFAULT_TEXT
Default .
-
DEFAULT_LATEX
public static final JaxoMode DEFAULT_LATEX
Default .
-
DEFAULT_MOVE
public static final JaxoMode DEFAULT_MOVE
Default .
-
DEFAULT_RESIZE
public static final JaxoMode DEFAULT_RESIZE
Default .
-
DEFAULT_DUPLICATE
public static final JaxoMode DEFAULT_DUPLICATE
Default .
-
DEFAULT_COLOR
public static final JaxoMode DEFAULT_COLOR
Default .
-
DEFAULT_EDIT
public static final JaxoMode DEFAULT_EDIT
Default .
-
DEFAULT_SELECT
public static final JaxoMode DEFAULT_SELECT
Default .
-
DEFAULT_ZIGZAG_LINE
public static final JaxoMode DEFAULT_ZIGZAG_LINE
Default .
-
DEFAULT_ZIGZAG_LOOP
public static final JaxoMode DEFAULT_ZIGZAG_LOOP
Default .
-
DEFAULT_ZIGZAG_ARC
public static final JaxoMode DEFAULT_ZIGZAG_ARC
Default .
-
DEFAULT_ZIGZAG_BEZIER
public static final JaxoMode DEFAULT_ZIGZAG_BEZIER
Default .
-
DEFAULT_FERMION_BEZIER
public static final JaxoMode DEFAULT_FERMION_BEZIER
Default .
-
DEFAULT_GHOST_BEZIER
public static final JaxoMode DEFAULT_GHOST_BEZIER
Default .
-
DEFAULT_SCALAR_BEZIER
public static final JaxoMode DEFAULT_SCALAR_BEZIER
Default .
-
DEFAULT_PHOTON_BEZIER
public static final JaxoMode DEFAULT_PHOTON_BEZIER
Default .
-
DEFAULT_GLUON_BEZIER
public static final JaxoMode DEFAULT_GLUON_BEZIER
Default .
-
DEFAULT_TRIANGLE
public static final JaxoMode DEFAULT_TRIANGLE
Default .
-
-
Method Detail
-
values
public static JaxoMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (JaxoMode c : JaxoMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JaxoMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
defaultActionKeys
public static String[] defaultActionKeys()
Returns the default action keys.- Returns:
- The default action keys.
-
defaultModes
public static JaxoMode[] defaultModes()
Returns the default modes.- Returns:
- The default modes.
-
isEditMode
public static boolean isEditMode(JaxoMode mode)
Determines whether the given mode is an edit mode.- Parameters:
mode- The mode to check. May be null in which case false is returned.- Returns:
- True if the given mode is an edit mode.
-
isParticleMode
public static boolean isParticleMode(JaxoMode mode)
Determines whether the given mode is a particle mode.- Parameters:
mode- The mode to check. May be null in which case false is returned.- Returns:
- True if the given mode is a particle mode.
-
isMiscMode
public static boolean isMiscMode(JaxoMode mode)
Determines whether the given mode is a misc mode.- Parameters:
mode- The mode to check. May be null in which case false is returned.- Returns:
- True if the given mode is a misc mode.
-
isFileMode
public static boolean isFileMode(JaxoMode mode)
Determines whether the given mode is a file mode.- Parameters:
mode- The mode to check. May be null in which case false is returned.- Returns:
- True if the given mode is a file mode.
-
isActionMode
public static boolean isActionMode(JaxoMode mode)
Determines whether the given mode is an action mode.- Parameters:
mode- The mode to check. May be null in which case false is returned.- Returns:
- True if the given mode is an action mode.
-
isGridMode
public static boolean isGridMode(JaxoMode mode)
Determines whether the given mode is a grid mode.- Parameters:
mode- The mode to check. May be null in which case false is returned.- Returns:
- True if the given mode is a grid mode.
-
isVertexMode
public static boolean isVertexMode(JaxoMode mode)
Determines whether the given mode is a vertex mode.- Parameters:
mode- The mode to check. May be null in which case false is returned.- Returns:
- True if the given mode is a vertex mode.
-
isZoomFactorMode
public static boolean isZoomFactorMode(JaxoMode mode)
Determines whether the given mode is a zoom factor mode.- Parameters:
mode- The mode to check. May be null in which case false is returned.- Returns:
- True if the given mode is a zoom factor mode.
-
isHelpMode
public static boolean isHelpMode(JaxoMode mode)
Determines whether the given mode is a help mode.- Parameters:
mode- The mode to check. May be null in which case false is returned.- Returns:
- True if the given mode is a help mode.
-
isLanguageMode
public static boolean isLanguageMode(JaxoMode mode)
Determines whether the given mode is a language mode.- Parameters:
mode- The mode to check. May be null in which case false is returned.- Returns:
- True if the given mode is a language mode.
-
isOptionMode
public static boolean isOptionMode(JaxoMode mode)
Determines whether the given mode is an option mode.- Parameters:
mode- The mode to check. May be null in which case false is returned.- Returns:
- True if the given mode is an option mode.
-
isDefaultMode
public static boolean isDefaultMode(JaxoMode mode)
Determines whether the given mode is a default mode.- Parameters:
mode- The mode to check. May be null in which case false is returned.- Returns:
- True if the given mode is a default mode.
-
isNewObjectMode
public static boolean isNewObjectMode(JaxoMode mode)
Determines whether the given mode is a mode that will create a new JaxoObject.- Parameters:
mode- The mode to check. May be null in which case false is returned.- Returns:
- True if the given mode is a particle, misc or vertex mode.
-
isLineMode
public static boolean isLineMode(JaxoMode mode)
Determines whether the given mode is a line mode.- Parameters:
mode- The mode to check. May be null in which case false is returned.- Returns:
- True if the given mode is a line mode.
-
isArcMode
public static boolean isArcMode(JaxoMode mode)
Determines whether the given mode is an arc mode.- Parameters:
mode- The mode to check. May be null in which case false is returned.- Returns:
- True if the given mode is an arc mode.
-
isBezierMode
public static boolean isBezierMode(JaxoMode mode)
Determines whether the given mode is a Bezier mode.- Parameters:
mode- The mode to check. May be null in which case false is returned.- Returns:
- True if the given mode is an arc mode.
-
isLoopMode
public static boolean isLoopMode(JaxoMode mode)
Determines whether the given mode is a loop mode.- Parameters:
mode- The mode to check. May be null in which case false is returned.- Returns:
- True if the given mode is a loop mode.
-
isTextMode
public static boolean isTextMode(JaxoMode mode)
Determines whether the given mode is a text mode (either LATEX or TEXT).- Parameters:
mode- The mode to check. May be null in which case false is returned.- Returns:
- True if the given mode is a text mode.
-
isSelectMode
public static boolean isSelectMode(JaxoMode mode)
Determines whether the given mode is a select mode (mode allowing an object to be selected).- Parameters:
mode- The mode to check. May be null in which case false is returned.- Returns:
- True if the given mode is a select mode.
-
getModeAsString
public static String getModeAsString(JaxoMode mode)
Returns a string representation of the given mode.- Parameters:
mode- The mode to convert. May be null in which case the String "null" is returned.- Returns:
- The mode as a string, or "NO_MODE" if it is not a valid mode.
-
getModeFromString
public static JaxoMode getModeFromString(String modeString)
Converts the given string to a JaxoMode.- Parameters:
modeString- A string holding the name of a defined JaxoMode.- Returns:
- The JaxoDraw mode as defined by this class if modeString corresponds to one of them, or null otherwise.
-
defaultActionToMode
public static JaxoMode defaultActionToMode(JaxoMode defaultAction)
Mode constants corresponding to a DEFAULT_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 default mode.
-
-