|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.sdedit.editor.Editor
public final class Editor
The control class of the Quick Sequence Diagram Editor.
| Field Summary |
|---|
| Fields inherited from interface net.sf.sdedit.Constants |
|---|
ACTIVE_LIFELINE_COLOR, ANTI_ALIAS, dashed, DEFAULT_CODE_FONT, DEFAULT_CURSOR, DEFAULT_ENCODING_SCHEME, dotted, emptyStroke, GLOBAL_CONF_FILE, HAND_CURSOR, MOVE_CURSOR, SAVE_AS_FILE_PROPERTY, SAVE_AS_TYPE_PROPERTY, solid, TEST_FREEHEP_CLASSNAME, thick, thick_dashed, THREAD_COLORS |
| Method Summary | |
|---|---|
void |
codeChanged(boolean syntaxCheckOnly)
Starts a new thread that generates a diagram from the source text found in the text area of the currently selected tab. |
void |
currentTabClosing()
The current tab shall be closed. |
void |
error(String msg)
|
static Editor |
getEditor()
|
PanelPaintDeviceListener |
getPanelPaintDeviceListener()
|
List<String> |
getRecentFiles()
|
UserInterface |
getUI()
Returns the user interface. |
void |
hyperlinkClicked(String hyperlink)
A hyperlink has been clicked. |
boolean |
isServerRunning()
|
boolean |
isSetup()
|
void |
loadCode(File file)
|
void |
mouseClickedDrawable(Drawable drawable)
Moves the cursor to the position in the text area where the object or message corresponding to the drawable instance is declared. |
boolean |
mouseEnteredDrawable(Drawable drawable)
Returns true if and only if the given drawable instance is associated by the most recently used diagram with a DiagramDataProvider state, id est a position in the text area. |
void |
mouseExitedDrawable(Drawable drawable)
This method is called when the mouse exited a rectangle belonging to some drawable component. |
void |
quit()
|
boolean |
saveCode(boolean as)
Saves the code from the text area to the current file or to a file whose name is given by the user. |
void |
shutDownServer()
|
int |
startRealtimeServer(int port)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Editor getEditor()
public void currentTabClosing()
UserInterfaceListener
currentTabClosing in interface UserInterfaceListenerUserInterfaceListener.currentTabClosing()public void hyperlinkClicked(String hyperlink)
UserInterfaceListener
hyperlinkClicked in interface UserInterfaceListenerhyperlink - a string containing a colon, the part before the colon denotes
the type of the hyperlink, the part after the colon denotes
its nameUserInterfaceListener.hyperlinkClicked(java.lang.String)public void error(String msg)
public List<String> getRecentFiles()
public int startRealtimeServer(int port)
throws IOException
IOExceptionpublic boolean isServerRunning()
public void shutDownServer()
public void loadCode(File file)
throws IOException,
DocUtil.XMLException
IOException
DocUtil.XMLExceptionpublic boolean isSetup()
public void quit()
public boolean saveCode(boolean as)
throws IOException,
DocUtil.XMLException
as - flag denoting whether the user should give the file, if not,
the current file (if present) is used
IOException - if the file cannot be written
DocUtil.XMLExceptionpublic void codeChanged(boolean syntaxCheckOnly)
codeChanged in interface UserInterfaceListenersyntaxCheckOnly - flag denoting if only syntax is checked and no diagram is
generated yetpublic UserInterface getUI()
public void mouseClickedDrawable(Drawable drawable)
mouseClickedDrawable in interface PanelPaintDeviceListenerdrawable - a drawable instance to show the corresponding declaration forpublic boolean mouseEnteredDrawable(Drawable drawable)
mouseEnteredDrawable in interface PanelPaintDeviceListenerdrawable - a drawable instance such that the mouse has just entered it
public void mouseExitedDrawable(Drawable drawable)
PanelPaintDeviceListener
mouseExitedDrawable in interface PanelPaintDeviceListenerdrawable - the drawable component that has been entered by the mousePanelPaintDeviceListener.mouseExitedDrawable(net.sf.sdedit.drawable.Drawable)public PanelPaintDeviceListener getPanelPaintDeviceListener()
getPanelPaintDeviceListener in interface UserInterfaceListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||