|
JGraphpad Pro
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jgraph.JGraphEditor
Defines the structure of an JGraph editor.
| Field Summary | |
protected JGraphEditorFactory |
factory
Holds the UI factory. |
protected JGraphEditorKit |
kit
Holds the editor kit. |
protected JGraphEditorModel |
model
Holds the document model. |
protected JGraphEditorSettings |
settings
Holds the settings. |
static String |
VERSION
Global static product identifier. |
| Constructor Summary | |
JGraphEditor()
Constructs an empty editor. |
|
JGraphEditor(JGraphEditorSettings settings)
Constructs a new editor for the specified settings and model. |
|
JGraphEditor(JGraphEditorSettings settings,
JGraphEditorModel model,
JGraphEditorKit kit,
JGraphEditorFactory factory)
Constructs a new editor for the specified settings and model. |
|
| Method Summary | |
void |
exit(int code)
Implements an application exit. |
JGraphEditorFactory |
getFactory()
|
JGraphEditorKit |
getKit()
|
JGraphEditorModel |
getModel()
|
JGraphEditorSettings |
getSettings()
|
static boolean |
isURL(Object value)
Returns true if the specified value is a URL, that is, if it starts with one of http://, mailto:, ftp://, file:, https://, webdav:// or webdavs://. |
static void |
main(String[] args)
|
void |
setFactory(JGraphEditorFactory factory)
|
void |
setKit(JGraphEditorKit kit)
|
void |
setModel(JGraphEditorModel model)
|
void |
setSettings(JGraphEditorSettings settings)
|
static String |
toURL(File file)
Returns a URL representation for the specified file or an empty string if there was an exception. |
static URL |
toURL(String s)
Returns a URL representation for the specified string or null if there was an exception. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String VERSION
protected JGraphEditorSettings settings
protected JGraphEditorModel model
protected JGraphEditorKit kit
protected JGraphEditorFactory factory
| Constructor Detail |
public JGraphEditor()
public JGraphEditor(JGraphEditorSettings settings)
settings - The settings to use for the editor.
public JGraphEditor(JGraphEditorSettings settings,
JGraphEditorModel model,
JGraphEditorKit kit,
JGraphEditorFactory factory)
settings - The settings to use for the editor.model - The model to use as the document model.kit - The kit to be used to store the actions and tools.factory - The factory to be used to creat the user interface.| Method Detail |
public void exit(int code)
JGraphEditorSettings.shutdown(). Subclassers should call the
superclass method as the first step. Note: This method is never called
from within the framework.
public JGraphEditorSettings getSettings()
public void setSettings(JGraphEditorSettings settings)
settings - The settings to set.public JGraphEditorFactory getFactory()
public void setFactory(JGraphEditorFactory factory)
factory - The factory to set.public JGraphEditorKit getKit()
public void setKit(JGraphEditorKit kit)
kit - The kit to set.public JGraphEditorModel getModel()
public void setModel(JGraphEditorModel model)
model - The model to set.public static boolean isURL(Object value)
value - The value that represents a potential URL.
value is a URL.public static String toURL(File file)
file - The file to return the URL for.
file or an empty
string.public static URL toURL(String s)
s - The string to return the URL for.
string or null.public static void main(String[] args)
|
JGraphpad Pro
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||