JGraphpad Pro
v6.0.5.0


com.jgraph
Class JGraphpadDemo

java.lang.Object
  extended bycom.jgraph.JGraphpad
      extended bycom.jgraph.JGraphpadDemo

public class JGraphpadDemo
extends JGraphpad


Nested Class Summary
static class JGraphpadDemo.AllActions
          Bundle of all actions in this class.
static class JGraphpadDemo.JGraphpadDemoFileAction
          Replaces file open / save action with different actions.
 
Field Summary
 
Fields inherited from class com.jgraph.JGraphpad
APPTITLE, ARG_JGOODIESLOOKANDFEEL, ARG_SYSTEMLOOKANDFEEL, ARG_VERSION, defaultBeginDecoration, defaultBorderColor, defaultBounds, defaultEdgeFont, defaultEndDecoration, defaultPlugins, defaultPortLocations, INNER_LIBRARIES, KEY_EDGEPROTOTYPE, KEY_GROUPPROTOTYPE, KEY_MAINWINDOW, KEY_RECENTFILES, KEY_VERTEXPROTOTYPE, METHOD_CREATEGRADIENTCOMBO, METHOD_CREATELINECOLORCOMBO, METHOD_CREATESHAPECOMBO, NAME_CIRCLETOOL, NAME_CYLINDERTOOL, NAME_DIAMONDTOOL, NAME_EDGETOOL, NAME_HEAVYTOOL, NAME_IMAGETOOL, NAME_ORTHOGONALEDGETOOL, NAME_ROUNDEDTOOL, NAME_SELECTTOOL, NAME_SETTINGSFILE, NAME_TEXTTOOL, NAME_TRIANGLETOOL, NAME_UICONFIG, NAME_USERSETTINGS, NAME_VERTEXTOOL, PATH_DEFAULTLIBRARY, PATH_DEFAULTSETTINGS, PATH_SPLASHIMAGE, PATH_UICONFIG, PATH_USERSETTINGS, USAGE, VERSION, VERSION_NUMBER
 
Constructor Summary
JGraphpadDemo()
           
 
Method Summary
protected  void addActions(JGraphEditor editor, JGraphEditorKit kit)
          Replaces some actions with empty implementations.
 Window createApplication(List files, Map args)
          Issues a warning message in the online demo.
protected  JGraphEditorModel createModel()
          Creates a model that does not allow to add files.
static void main(String[] args)
          Constructs and displays a new application window.
 
Methods inherited from class com.jgraph.JGraphpad
addPorts, addTools, center, configureEdge, configureEditor, configureFactory, configureGraph, configureKit, configureModel, configurePort, configureSettings, configureVertex, createAttributeMap, createEdge, createEdge, createEdgeTool, createEdgeUserObject, createEditor, createFactory, createGraph, createGroup, createGroup, createKit, createMainWindow, createPlugins, createPort, createPortUserObject, createSettings, createSplashWindow, createVertex, createVertex, createVertexTool, createVertexTool, createVertexUserObject, exit, isImage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JGraphpadDemo

public JGraphpadDemo()
Method Detail

createApplication

public Window createApplication(List files,
                                Map args)
                         throws ParserConfigurationException,
                                SAXException,
                                IOException
Issues a warning message in the online demo.

Overrides:
createApplication in class JGraphpad
Parameters:
files - The list of filenames passed to the Java command.
args - The arguments to use for constructing the editor settings.
Returns:
Returns a new application main window.
Throws:
ParserConfigurationException
SAXException
IOException

createModel

protected JGraphEditorModel createModel()
Creates a model that does not allow to add files.

Overrides:
createModel in class JGraphpad
Returns:
Returns a configured document model for an editor.

addActions

protected void addActions(JGraphEditor editor,
                          JGraphEditorKit kit)
Replaces some actions with empty implementations.

Overrides:
addActions in class JGraphpad
Parameters:
editor - The editor for which to create the actions.
kit - The editor kit to add the actions to.
See Also:
JGraphpad.configureKit(JGraphEditor, JGraphEditorKit), JGraphEditorKit.addBundle(JGraphEditorAction.Bundle), JGraphpad.createVertex(), JGraphpad.createEdge()

main

public static void main(String[] args)
Constructs and displays a new application window.

Parameters:
args - The command line arguments to pass to the application.

JGraphpad Pro
v6.0.5.0


Copyright (C) 2005 JGraph.com. All rights reserved.