|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jfig.gui.ModularEditor
the core editor for jfig.
ModularEditor - the main editor class of jfig, the Java 1.1 and Java 2.x AWT based xfig compatible graphics and diagram editor.
Nested Class Summary | |
(package private) class |
ModularEditor.UrlDialogListener
|
Field Summary | |
protected static java.util.Hashtable |
_callbackTable
|
(package private) AboutDialog |
aboutDialog
|
(package private) FigAttribs |
attribs
|
(package private) AttribsButtonPanel |
attribsButtonPanel
|
(package private) Command |
command
|
(package private) Console |
console
|
(package private) static java.lang.String |
demoURL
|
(package private) boolean |
displayTriggerFlag
|
(package private) EditorMenuBar |
editorMenuBar
|
(package private) ExportOptionsDialog |
exportOptionsDialog
|
int |
FIG_31
|
int |
FIG_32
|
(package private) java.awt.FileDialog |
fileDialog
|
(package private) java.lang.String |
filename
|
(package private) java.lang.String |
filetype
|
(package private) java.awt.Frame |
frame
|
(package private) StringDialog |
getUrlDialog
|
(package private) EditGlobalAttributesDialog |
globalAttributesDialog
|
(package private) KeyHandler |
keyHandler
|
(package private) java.awt.Font |
menuFont
|
(package private) ModeButtonPanel |
modeButtonPanel
|
(package private) FigCanvas |
objectCanvas
|
(package private) FigObjectList |
objectList
|
(package private) ConfirmDialog |
okToQuit
|
(package private) FigParser |
parser
|
(package private) RecentFileManager |
recentFileManager
|
(package private) StatusMessage |
statusField
|
(package private) EditorStatusPanel |
statusPanel
|
(package private) java.lang.String |
tmpfilename
|
(package private) java.lang.String |
tmpfiletype
|
(package private) FigObject |
tmpObject
|
(package private) FigObjectList |
tmpObjectList
|
java.lang.String |
TypeFILE
|
java.lang.String |
TypeRESOURCE
|
java.lang.String |
TypeURL
|
(package private) UndoStack |
undoStack
|
(package private) java.lang.String |
versionString
|
(package private) FigWriter |
writer
|
Constructor Summary | |
ModularEditor()
|
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed: process an action event using the global callback table. |
void |
addCallback(java.lang.String key,
java.lang.String methodname)
add an entry to our callback table. |
void |
addTmpObject(FigObject obj)
|
void |
call(java.lang.String s,
java.lang.Object arg)
|
boolean |
checkCanCancel()
check whether the current command can be canceled. |
void |
checkCreateAttributeCache()
|
boolean |
checkIsIdle()
|
int |
checkUnsavedChanges()
|
void |
clearEditorState()
|
void |
dbg(java.lang.String msg)
|
void |
deleteFromObjectList(FigObject obj)
|
void |
deleteTmpObject(FigObject obj)
|
void |
doAddToAttributeCache(java.lang.Object arg)
|
void |
doAddUserColor(java.lang.Object arg)
|
void |
doAlignObjects(java.lang.Object arg)
|
void |
doBreakCompound(java.lang.Object arg)
|
void |
doBrowseOpenNextFile()
|
void |
doBrowseOpenPreviousFile()
|
void |
doCancel(java.lang.Object arg)
|
void |
doCancelUpdate(java.lang.Object arg)
|
void |
doClearAttributeCache(java.lang.Object arg)
|
void |
doClearUserColors(java.lang.Object arg)
|
void |
doConvertObject(java.lang.Object arg)
|
void |
doCopyObject(java.lang.Object arg)
|
void |
doCopyToClipboard(java.lang.Object arg)
|
void |
doCreateArc(java.lang.Object arg)
|
void |
doCreateBezier(java.lang.Object arg)
|
void |
doCreateCircle(java.lang.Object arg)
|
void |
doCreateClosedBezier(java.lang.Object arg)
|
void |
doCreateClosedSpline(java.lang.Object arg)
|
void |
doCreateCompound(java.lang.Object arg)
|
void |
doCreateEllipse(java.lang.Object arg)
|
void |
doCreateImage(java.lang.Object arg)
|
void |
doCreateLink(java.lang.Object arg)
|
void |
doCreatePolygon(java.lang.Object arg)
|
void |
doCreatePolyline(java.lang.Object arg)
|
void |
doCreateRectangle(java.lang.Object arg)
|
void |
doCreateRoundRectangle(java.lang.Object arg)
|
void |
doCreateSpline(java.lang.Object arg)
|
void |
doCreateText(java.lang.Object arg)
|
void |
doCutPoint(java.lang.Object arg)
|
void |
doCutToClipboard(java.lang.Object arg)
|
void |
doDeleteAll(java.lang.Object arg)
|
void |
doDeleteObject(java.lang.Object arg)
|
void |
doEditGlobalAttributes(java.lang.Object arg)
|
void |
doEditObject(java.lang.Object arg)
|
void |
doExportEPS(java.lang.Object arg)
|
void |
doExportNativeGIF(java.lang.Object arg)
|
void |
doExportNativePPM(java.lang.Object arg)
|
void |
doExportPrintPS(java.lang.Object arg)
|
void |
doExportPS(java.lang.Object arg)
|
void |
doExportSettings(java.lang.Object arg)
|
void |
doFlushUndoStack(java.lang.Object arg)
|
void |
doInsertPoint(java.lang.Object arg)
|
void |
doMergeFile(java.lang.Object arg)
|
void |
doMergeURL(java.lang.Object arg)
|
void |
doMirrorXObject(java.lang.Object arg)
|
void |
doMirrorYObject(java.lang.Object arg)
|
void |
doMoveObject(java.lang.Object arg)
|
void |
doMovePoint(java.lang.Object arg)
|
void |
doNextAttributeCache(java.lang.Object arg)
|
void |
doOpenCompound(java.lang.Object arg)
|
void |
doOpenRecentFile(java.lang.Object arg)
|
void |
doPanDown(java.lang.Object arg)
|
void |
doPanHome(java.lang.Object arg)
|
void |
doPanLeft(java.lang.Object arg)
|
void |
doPanRight(java.lang.Object arg)
|
void |
doPanUp(java.lang.Object arg)
|
void |
doParseFile(java.lang.String fname,
boolean merge)
|
void |
doParseResource(java.lang.String s)
|
void |
doParseURL(java.lang.String s,
boolean merge)
|
void |
doPasteFromClipboard(java.lang.Object arg)
|
void |
doPrintClipboard(java.lang.Object arg)
|
void |
doPrintObjects(java.lang.Object arg)
|
void |
doPrintUndoStack(java.lang.Object arg)
|
void |
doPrintViaAWT(java.lang.Object arg)
|
void |
doQuit(java.lang.Object dummy)
|
void |
doRedo(java.lang.Object arg)
redo the topmost command from the undo stack. |
void |
doRedraw()
perform a full redraw of the editor canvas. |
void |
doRedraw(java.lang.Object arg)
this method stub is provided to allow for a (hopefully) fast redraw of the given object argument. |
void |
doResizeText(java.lang.Object arg)
|
void |
doRotateCCWObject(java.lang.Object arg)
|
void |
doRotateCWObject(java.lang.Object arg)
|
void |
doSaveFile(java.lang.Object arg)
|
void |
doSaveFileAs(java.lang.Object arg)
|
void |
doSaveToConsole(java.lang.Object arg)
|
void |
doScaleObject(java.lang.Object arg)
|
void |
doSelectFile(java.lang.Object arg)
|
void |
doSelectLibraryObject(java.lang.Object arg)
|
void |
doSelectOutputFile()
|
void |
doSelectURL(java.lang.Object arg)
|
void |
doSetGridCoarse(java.lang.Object arg)
|
void |
doSetGridFine(java.lang.Object arg)
|
void |
doSetGridMedium(java.lang.Object arg)
|
void |
doSetGridNone(java.lang.Object arg)
|
void |
doSetGridTen(java.lang.Object arg)
|
void |
doSetNoSnap(java.lang.Object arg)
|
void |
doSetSnap110(java.lang.Object arg)
|
void |
doSetSnap12(java.lang.Object arg)
|
void |
doSetSnap14(java.lang.Object arg)
|
void |
doSetSnap18(java.lang.Object arg)
|
void |
doSetUnitsInches(java.lang.Object arg)
|
void |
doSetUnitsMillimeter(java.lang.Object arg)
|
void |
doSetUnitsXfigMillimeter(java.lang.Object arg)
|
void |
doShowAboutDialog(java.lang.Object arg)
|
void |
doShowChangesDialog(java.lang.Object arg)
|
void |
doShowDemo(java.lang.String resourcename)
|
void |
doShowDemoBiohazard(java.lang.Object arg)
|
void |
doShowDemoCircuit(java.lang.Object arg)
|
void |
doShowDemoFonts(java.lang.Object arg)
|
void |
doShowDemoGold(java.lang.Object arg)
|
void |
doShowDemoHouse(java.lang.Object arg)
|
void |
doShowDemoLayout(java.lang.Object arg)
|
void |
doShowDemoPictures(java.lang.Object arg)
|
void |
doShowDemoRotated(java.lang.Object arg)
|
void |
doShowDemoUnicode(java.lang.Object arg)
|
void |
doShowDemoWatch(java.lang.Object arg)
|
void |
doShowDemoWelcome(java.lang.Object arg)
|
void |
doShowEmbeddingJfigDialog(java.lang.Object arg)
|
void |
doShowExportFaqDialog(java.lang.Object arg)
|
void |
doShowFaqDialog(java.lang.Object arg)
|
void |
doShowHelpDialog(java.lang.Object arg)
|
void |
doShowJvmDialog(java.lang.Object arg)
|
void |
doShowLicenseDialog(java.lang.Object arg)
|
void |
doShowMessages(java.lang.Object arg)
|
void |
doShowMouseButtonDialog(java.lang.Object arg)
|
void |
doShowParticipateDialog(java.lang.Object arg)
|
void |
doShowProperties(java.lang.Object dummy)
|
void |
doShowRegistrationDialog(java.lang.Object arg)
|
void |
doShowReminderDialog(java.lang.Object dummy)
|
void |
doShowShortcutKeysDialog(java.lang.Object arg)
|
void |
doSnapAllObjectsToGrid(java.lang.Object arg)
|
void |
doSnapObjectToGrid(java.lang.Object arg)
|
void |
doStartNewDrawing(java.lang.Object arg)
|
void |
doUndo(java.lang.Object arg)
undo the topmost command from the undo stack. |
void |
doUpdateObject(java.lang.Object arg)
|
void |
doWriteHadesResource(java.lang.Object argt)
|
void |
doZoom11(java.lang.Object arg)
|
void |
doZoomFactor(double factor)
|
void |
doZoomFit(java.lang.Object arg)
|
void |
doZoomIn(java.lang.Object arg)
|
void |
doZoomOut(java.lang.Object arg)
|
void |
doZoomRegion(int xl,
int yt,
int xr,
int yb)
the 'callback' method from the ZoomRegionCommand object. |
void |
doZoomRegion(java.lang.Object arg)
|
void |
enableUpdateAll(java.lang.Object arg)
|
void |
enableUpdateInvert(java.lang.Object arg)
|
void |
enableUpdateNone(java.lang.Object arg)
|
FigObject[] |
findAllObjectsAt(java.awt.Point P)
|
FigObject |
findNextObjectAt(java.awt.Point P,
FigObject obj)
|
FigObject |
findObjectAt(java.awt.Point P)
findObjectAt: search the object list for an object near point P. |
protected FigObject |
findObjectNearOrOver(java.awt.Point P)
|
java.lang.String |
getBaseFileName()
|
java.util.Hashtable |
getCallbackTable()
|
FigAttribs |
getCurrentAttribs()
getCurrentAttribs: return a reference to the current editor global object attributes. |
Command |
getCurrentCommand()
|
java.util.Enumeration |
getDrawableObjects()
return an Enumeration of all drawable objects |
ModularEditorState |
getEditorState()
|
java.lang.String |
getFilename()
allow to query the current filename (if any) |
java.awt.Frame |
getFrame()
|
int |
getGeometryMode()
|
java.awt.MenuBar |
getMenuBar()
|
int |
getObjectAlignmentModeX()
|
int |
getObjectAlignmentModeY()
|
FigCanvas |
getObjectCanvas()
getObjectCanvas: return a reference to the FigCanvas responsible for displaying the grahics objects. |
java.util.Enumeration |
getObjects()
|
int |
getSmartLinksMode()
|
StatusMessage |
getStatusMessage()
utility method to allow other classes full access to our status line with push'ing and pop'ping messages instead of just set'ting them. |
FigDrawable |
getTmpObject()
return a reference to the current 'active' (temporary) object |
FigObject[] |
getTmpObjects()
|
UndoStack |
getUndoStack()
|
void |
getUserPreferences()
getUserPreferences: check for the user preferences for units, paper size, paper orientation and set these values in our global FigAttribs object. |
void |
handleCommandCallback(java.lang.Object arg)
handleCommandCallback: this mehtod is called by all Command objects, once they are finished. |
void |
handleParserCallback(java.lang.Object arg)
|
void |
handleParserMergeCallback(java.lang.Object arg)
|
void |
hideAllObjectCorners()
|
void |
hideAllTriggers()
|
void |
insertIntoObjectList(FigObject obj)
|
boolean |
isIdle()
|
boolean |
isInObjectList(FigObject obj)
|
void |
itemStateChanged(java.awt.event.ItemEvent evt)
currently, this method is only used to set the default output FIG version |
void |
keyPressed(java.awt.event.KeyEvent evt)
keyPressed: react to key-presses on the jfig editor frame and object canvas. |
void |
keyReleased(java.awt.event.KeyEvent evt)
|
void |
keyTyped(java.awt.event.KeyEvent evt)
|
static void |
main(java.lang.String[] argv)
|
void |
message(java.lang.String msg)
|
void |
mousePressed(FigCanvasEvent evt)
process a mouse event ME at world coordinates WP and screen coords SP |
void |
parse(java.io.InputStream IS,
boolean merge)
the central method to parse FIG objects from an input stream, called by doParseFile(), doParseURL(), doParseResource(). |
void |
setCurrentAttribs(FigAttribs newAttribs)
|
void |
setCurrentFigDirectory(java.awt.FileDialog fileDialog)
check whether the "jfig.gui.CurrentFigFileDirectory" property from SetupManager and set the FileDialog directory to the current value if the property is set. |
void |
setEditorState(ModularEditorState state)
|
void |
setFigVersion(int v)
|
void |
setInitialWindowSize()
|
void |
setZoomMessage()
|
void |
showAllObjectCorners()
|
void |
showAllTriggers()
|
void |
showObjectCorners(FigObject obj)
|
void |
statusMessage(java.lang.String msg)
|
void |
updateCurrentFigDirectory(java.lang.String pathname)
set the "jfig.gui.CurrentFigFileDirectory" property in SetupManager to the given "pathname", which should be a valid directory name. |
void |
writeFigObjects(java.io.OutputStream os)
write the current set of FIG objects to the specified output stream without modifying the editor state. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
java.lang.String versionString
FigAttribs attribs
FigObjectList objectList
FigObjectList tmpObjectList
FigObject tmpObject
FigParser parser
FigWriter writer
ExportOptionsDialog exportOptionsDialog
java.awt.Frame frame
FigCanvas objectCanvas
ModeButtonPanel modeButtonPanel
AttribsButtonPanel attribsButtonPanel
EditorMenuBar editorMenuBar
Console console
EditorStatusPanel statusPanel
StatusMessage statusField
AboutDialog aboutDialog
java.awt.FileDialog fileDialog
java.lang.String filename
java.lang.String tmpfilename
java.lang.String filetype
java.lang.String tmpfiletype
StringDialog getUrlDialog
KeyHandler keyHandler
RecentFileManager recentFileManager
ConfirmDialog okToQuit
java.awt.Font menuFont
Command command
UndoStack undoStack
boolean displayTriggerFlag
public final int FIG_31
public final int FIG_32
public final java.lang.String TypeFILE
public final java.lang.String TypeURL
public final java.lang.String TypeRESOURCE
protected static java.util.Hashtable _callbackTable
EditGlobalAttributesDialog globalAttributesDialog
static java.lang.String demoURL
Constructor Detail |
public ModularEditor()
Method Detail |
public void setFigVersion(int v)
public void getUserPreferences()
public UndoStack getUndoStack()
getUndoStack
in interface FigBasicEditor
public Command getCurrentCommand()
getCurrentCommand
in interface FigBasicEditor
public FigCanvas getObjectCanvas()
FigBasicEditor
getObjectCanvas
in interface FigBasicEditor
public FigAttribs getCurrentAttribs()
FigBasicEditor
getCurrentAttribs
in interface FigBasicEditor
public void setCurrentAttribs(FigAttribs newAttribs)
setCurrentAttribs
in interface FigBasicEditor
public void insertIntoObjectList(FigObject obj)
insertIntoObjectList
in interface FigBasicEditor
public void deleteFromObjectList(FigObject obj)
deleteFromObjectList
in interface FigBasicEditor
public boolean isInObjectList(FigObject obj)
isInObjectList
in interface FigBasicEditor
public FigObject findObjectAt(java.awt.Point P)
Currently, this method works in two passes as follows.
In the first pass, the method will search for an object with one
corner nearer than the cursor snap-distance from position P.
The first such object will be returned.
If no object is found during the first pass, the search is repeated
with less accuracy and will include all objects which are nearer
than two (2) snap-distances to one corner
and all objects which cover the position p.
findObjectAt
in interface FigBasicEditor
protected FigObject findObjectNearOrOver(java.awt.Point P)
public FigObject findNextObjectAt(java.awt.Point P, FigObject obj)
findNextObjectAt
in interface FigBasicEditor
public FigObject[] findAllObjectsAt(java.awt.Point P)
findAllObjectsAt
in interface FigBasicEditor
public java.util.Enumeration getObjects()
getObjects
in interface FigBasicEditor
public void showAllObjectCorners()
showAllObjectCorners
in interface FigBasicEditor
public void hideAllObjectCorners()
hideAllObjectCorners
in interface FigBasicEditor
public void showObjectCorners(FigObject obj)
showObjectCorners
in interface FigBasicEditor
public void addTmpObject(FigObject obj)
addTmpObject
in interface FigBasicEditor
public void deleteTmpObject(FigObject obj)
deleteTmpObject
in interface FigBasicEditor
public FigObject[] getTmpObjects()
getTmpObjects
in interface FigBasicEditor
public StatusMessage getStatusMessage()
public int getSmartLinksMode()
public int getGeometryMode()
public java.awt.Frame getFrame()
public java.util.Hashtable getCallbackTable()
public void addCallback(java.lang.String key, java.lang.String methodname)
For example, use something like the following:
Button mandala = new Button( "create mandala" );
mandala.addActionListener( editor );
editor.addCallback( "create mandala", "doCreateMandala" );
Naturally, instead of adding callbacks via reflection, you can also
create your own ModularEditor subclasses and override actionPerformed.
public void actionPerformed(java.awt.event.ActionEvent evt)
Except for special handling of the 'undo' and 'redo' commands, this method works as follows. First, we collect the action event's evt String argument (getActionCommand()) in our internal variable s. The resulting string is then searched for in the global callback table. If found, we retrieve the callback method name from the callback table and use Java 1.1 reflection to call that method, i.e. call( s, evt ). If no callback method is found, an error message is printed.
actionPerformed
in interface FigBasicEditor
public void call(java.lang.String s, java.lang.Object arg)
call
in interface FigBasicEditor
public void itemStateChanged(java.awt.event.ItemEvent evt)
itemStateChanged
in interface java.awt.event.ItemListener
public boolean isIdle()
public boolean checkIsIdle()
public boolean checkCanCancel()
public void doCancel(java.lang.Object arg)
public void doUndo(java.lang.Object arg)
public void doRedo(java.lang.Object arg)
public void doFlushUndoStack(java.lang.Object arg)
public void doDeleteAll(java.lang.Object arg)
public void doCopyToClipboard(java.lang.Object arg)
public void doCutToClipboard(java.lang.Object arg)
public void doPasteFromClipboard(java.lang.Object arg)
public void doExportSettings(java.lang.Object arg)
public void doExportPS(java.lang.Object arg)
public void doExportEPS(java.lang.Object arg)
public void doExportPrintPS(java.lang.Object arg)
public void doExportNativeGIF(java.lang.Object arg)
public void doExportNativePPM(java.lang.Object arg)
public void doCreateCircle(java.lang.Object arg)
public void doCreateEllipse(java.lang.Object arg)
public void doCreateRectangle(java.lang.Object arg)
public void doCreateRoundRectangle(java.lang.Object arg)
public void doCreatePolyline(java.lang.Object arg)
public void doCreatePolygon(java.lang.Object arg)
public void doCreateSpline(java.lang.Object arg)
public void doCreateClosedSpline(java.lang.Object arg)
public void doCreateBezier(java.lang.Object arg)
public void doCreateClosedBezier(java.lang.Object arg)
public void doCreateArc(java.lang.Object arg)
public void doCreateImage(java.lang.Object arg)
public void doCreateText(java.lang.Object arg)
public void doCreateLink(java.lang.Object arg)
public void doSelectLibraryObject(java.lang.Object arg)
public void doOpenCompound(java.lang.Object arg)
public void doCreateCompound(java.lang.Object arg)
public void doBreakCompound(java.lang.Object arg)
public void doMoveObject(java.lang.Object arg)
public void doCopyObject(java.lang.Object arg)
public void doDeleteObject(java.lang.Object arg)
public void doMovePoint(java.lang.Object arg)
public void doInsertPoint(java.lang.Object arg)
public void doCutPoint(java.lang.Object arg)
public void doMirrorXObject(java.lang.Object arg)
public void doMirrorYObject(java.lang.Object arg)
public void doRotateCWObject(java.lang.Object arg)
public void doRotateCCWObject(java.lang.Object arg)
public void doScaleObject(java.lang.Object arg)
public void doAlignObjects(java.lang.Object arg)
public int getObjectAlignmentModeX()
public int getObjectAlignmentModeY()
public void doSnapObjectToGrid(java.lang.Object arg)
public void doConvertObject(java.lang.Object arg)
public void doResizeText(java.lang.Object arg)
public void doUpdateObject(java.lang.Object arg)
public void doCancelUpdate(java.lang.Object arg)
public void enableUpdateAll(java.lang.Object arg)
public void enableUpdateNone(java.lang.Object arg)
public void enableUpdateInvert(java.lang.Object arg)
public void doEditObject(java.lang.Object arg)
public void doEditGlobalAttributes(java.lang.Object arg)
public void doZoomRegion(java.lang.Object arg)
public void doZoomRegion(int xl, int yt, int xr, int yb)
public void doZoomFactor(double factor)
public void doZoomFit(java.lang.Object arg)
public void doZoomIn(java.lang.Object arg)
public void doZoomOut(java.lang.Object arg)
public void doZoom11(java.lang.Object arg)
public void setZoomMessage()
public void doPanHome(java.lang.Object arg)
public void doPanLeft(java.lang.Object arg)
public void doPanRight(java.lang.Object arg)
public void doPanUp(java.lang.Object arg)
public void doPanDown(java.lang.Object arg)
public void doSetGridNone(java.lang.Object arg)
public void doSetGridCoarse(java.lang.Object arg)
public void doSetGridMedium(java.lang.Object arg)
public void doSetGridFine(java.lang.Object arg)
public void doSetGridTen(java.lang.Object arg)
public void doSetNoSnap(java.lang.Object arg)
public void doSetSnap12(java.lang.Object arg)
public void doSetSnap14(java.lang.Object arg)
public void doSetSnap18(java.lang.Object arg)
public void doSetSnap110(java.lang.Object arg)
public void doSetUnitsInches(java.lang.Object arg)
public void doSetUnitsMillimeter(java.lang.Object arg)
public void doSetUnitsXfigMillimeter(java.lang.Object arg)
public void doSnapAllObjectsToGrid(java.lang.Object arg)
public void doClearUserColors(java.lang.Object arg)
public void doAddUserColor(java.lang.Object arg)
public void doWriteHadesResource(java.lang.Object argt)
public void checkCreateAttributeCache()
public void doAddToAttributeCache(java.lang.Object arg)
public void doClearAttributeCache(java.lang.Object arg)
public void doNextAttributeCache(java.lang.Object arg)
public void doRedraw()
doRedraw
in interface FigBasicEditor
public void doRedraw(java.lang.Object arg)
public void doStartNewDrawing(java.lang.Object arg)
public void setCurrentFigDirectory(java.awt.FileDialog fileDialog)
public void updateCurrentFigDirectory(java.lang.String pathname)
public void doSelectFile(java.lang.Object arg)
public void doOpenRecentFile(java.lang.Object arg)
public void doMergeFile(java.lang.Object arg)
public void doBrowseOpenNextFile()
public void doBrowseOpenPreviousFile()
public void doSelectURL(java.lang.Object arg)
public void doMergeURL(java.lang.Object arg)
public void doParseURL(java.lang.String s, boolean merge)
public void doParseResource(java.lang.String s)
public void doParseFile(java.lang.String fname, boolean merge)
public void parse(java.io.InputStream IS, boolean merge)
public void handleParserCallback(java.lang.Object arg)
public void handleParserMergeCallback(java.lang.Object arg)
public void handleCommandCallback(java.lang.Object arg)
Note that some special handling is required for text and image objects.
public int checkUnsavedChanges()
public void doQuit(java.lang.Object dummy)
public void doSaveFile(java.lang.Object arg)
public void doSaveFileAs(java.lang.Object arg)
public void doSelectOutputFile()
public java.lang.String getFilename()
FigBasicEditor
getFilename
in interface FigBasicEditor
public void doSaveToConsole(java.lang.Object arg)
public void writeFigObjects(java.io.OutputStream os) throws java.io.IOException
java.io.IOException
public void doPrintViaAWT(java.lang.Object arg)
public java.lang.String getBaseFileName()
public void mousePressed(FigCanvasEvent evt)
FigCanvasListener
mousePressed
in interface FigCanvasListener
public void keyReleased(java.awt.event.KeyEvent evt)
keyReleased
in interface java.awt.event.KeyListener
public void keyPressed(java.awt.event.KeyEvent evt)
Currently, the following algorithm is used. We first check whether the user pressed the ESCAPE key. If so, the current command is canceled and replaced with the idle command.
Next, we check if the current command object is an instance of the CreateTextCommand. If so, the keypress is delivered to the 'keyPressed()' method of the CreateTextCommand. Please check the class documentation for details about this command class and possible subclasses.
Next, we check the keypress for Cursor-key events, which are used for object canvas panning operations. Note that panning via the keys is disabled during CreateTextCommands, because theses commands will intercept the corresponding cursor keys for their own purpose.
Finally, all other keypresses are silently ignored.
keyPressed
in interface java.awt.event.KeyListener
public void keyTyped(java.awt.event.KeyEvent evt)
keyTyped
in interface java.awt.event.KeyListener
public void statusMessage(java.lang.String msg)
statusMessage
in interface FigBasicEditor
public void setInitialWindowSize()
public java.awt.MenuBar getMenuBar()
public void hideAllTriggers()
public void showAllTriggers()
public java.util.Enumeration getDrawableObjects()
FigDrawableEnumerator
getDrawableObjects
in interface FigDrawableEnumerator
public FigDrawable getTmpObject()
FigDrawableEnumerator
getTmpObject
in interface FigDrawableEnumerator
public void message(java.lang.String msg)
message
in interface FigBasicEditor
public void dbg(java.lang.String msg)
public ModularEditorState getEditorState()
public void setEditorState(ModularEditorState state)
public void clearEditorState()
public void doPrintUndoStack(java.lang.Object arg)
public void doPrintClipboard(java.lang.Object arg)
public void doPrintObjects(java.lang.Object arg)
public void doShowMessages(java.lang.Object arg)
public void doShowProperties(java.lang.Object dummy)
public void doShowAboutDialog(java.lang.Object arg)
public void doShowLicenseDialog(java.lang.Object arg)
public void doShowRegistrationDialog(java.lang.Object arg)
public void doShowParticipateDialog(java.lang.Object arg)
public void doShowJvmDialog(java.lang.Object arg)
public void doShowChangesDialog(java.lang.Object arg)
public void doShowMouseButtonDialog(java.lang.Object arg)
public void doShowShortcutKeysDialog(java.lang.Object arg)
public void doShowEmbeddingJfigDialog(java.lang.Object arg)
public void doShowFaqDialog(java.lang.Object arg)
public void doShowExportFaqDialog(java.lang.Object arg)
public void doShowHelpDialog(java.lang.Object arg)
public void doShowDemo(java.lang.String resourcename)
public void doShowDemoGold(java.lang.Object arg)
public void doShowDemoHouse(java.lang.Object arg)
public void doShowDemoWatch(java.lang.Object arg)
public void doShowDemoCircuit(java.lang.Object arg)
public void doShowDemoBiohazard(java.lang.Object arg)
public void doShowDemoLayout(java.lang.Object arg)
public void doShowDemoPictures(java.lang.Object arg)
public void doShowDemoRotated(java.lang.Object arg)
public void doShowDemoFonts(java.lang.Object arg)
public void doShowDemoUnicode(java.lang.Object arg)
public void doShowDemoWelcome(java.lang.Object arg)
public void doShowReminderDialog(java.lang.Object dummy)
public static void main(java.lang.String[] argv)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |