|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jfig.gui.Viewer
the standalone jfig viewer.
A viewer for FIG 3.1 and (planned) FIG 3.2 files built on top of the jfig class library. The user interface consists of the main 'object canvas' and some buttons (open file, open http, zooming, etc.). This class is intended to display a single FIG file. Use the presentation viewer to view and browse jfig presentations.
To integrate the viewer with your own applications, use the following example code:
... jfig.gui.Viewer viewer = new jfig.gui.Viewer(); viewer.doParseFile( "myfile.fig" ); ... viewer.doParseURL( "http://myserver/mypath/myfile.fig" ); ...
Editor
,
PresentationViewer
Nested Class Summary | |
(package private) class |
Viewer.UrlDialogListener
|
Field Summary | |
(package private) FigAttribs |
attribs
|
(package private) Command |
command
|
(package private) java.awt.FileDialog |
fileDialog
|
(package private) java.lang.String |
filename
|
(package private) java.util.Vector |
filenameStack
|
(package private) java.lang.String |
filetype
|
(package private) java.util.Vector |
filetypeStack
|
(package private) java.awt.Frame |
frame
|
(package private) StringDialog |
getUrlDialog
|
(package private) java.lang.String |
helpfilename
|
(package private) ViewerCanvas |
objectCanvas
|
(package private) FigObjectList |
objectList
|
(package private) java.util.Vector |
objectListStack
|
(package private) FigParser |
parser
|
(package private) ConsoleMessage |
printer
|
(package private) StatusMessage |
statusField
|
(package private) java.lang.String |
tmpfilename
|
(package private) java.lang.String |
tmpfiletype
|
(package private) FigObject |
tmpObject
|
(package private) FigObjectList |
tmpObjectList
|
(package private) FigObjectList |
triggerList
|
java.lang.String |
TypeFILE
|
java.lang.String |
TypeRESOURCE
|
java.lang.String |
TypeURL
|
(package private) UndoStack |
undoStack
|
(package private) static java.lang.String |
versionString
|
(package private) ViewerButtonPanel |
viewerButtonPanel
|
(package private) ViewerStatusPanel |
viewerStatusPanel
|
Constructor Summary | |
Viewer()
|
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent evt)
|
void |
addTmpObject(FigObject obj)
|
void |
call(java.lang.String methodName,
java.lang.Object arg)
|
boolean |
checkIsIdle()
|
void |
deleteFromObjectList(FigObject obj)
|
void |
deleteTmpObject(FigObject obj)
|
void |
doPanHome()
|
void |
doParseFile(java.lang.String fname)
|
void |
doParseResource(java.lang.String s)
|
void |
doParseURL(java.lang.String s)
|
void |
doPrint()
|
void |
doRedraw()
|
void |
doSelectFile()
|
void |
doSelectURL()
|
void |
doShowHelp()
|
void |
doShowNext()
|
void |
doShowPrevious()
|
void |
doToggleDisplayLinks()
|
void |
doZoom11()
|
void |
doZoomIn()
|
void |
doZoomOut()
|
void |
doZoomRegion()
|
void |
doZoomRegion(int xl,
int yt,
int xr,
int yb)
|
FigObject[] |
findAllObjectsAt(java.awt.Point P)
|
FigObject |
findNextObjectAt(java.awt.Point P,
FigObject obj)
|
FigObject |
findObjectAt(java.awt.Point P)
|
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 |
java.lang.String |
getFilename()
allow to query the current filename (if any) |
java.awt.Frame |
getFrame()
|
FigCanvas |
getObjectCanvas()
getObjectCanvas: return a reference to the FigCanvas responsible for displaying the grahics objects. |
java.util.Enumeration |
getObjects()
|
FigDrawable |
getTmpObject()
return a reference to the current 'active' (temporary) object |
FigObject[] |
getTmpObjects()
|
UndoStack |
getUndoStack()
|
void |
handleCommandCallback()
|
void |
handleParserCallback()
|
void |
hideAllObjectCorners()
|
void |
insertIntoObjectList(FigObject obj)
|
boolean |
isIdle()
|
boolean |
isInObjectList(FigObject obj)
|
void |
keyPressed(java.awt.event.KeyEvent evt)
|
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)
|
void |
printStacks()
|
void |
setConsole(ConsoleMessage printer)
|
void |
setCurrentAttribs(FigAttribs newAttribs)
|
void |
setInitialWindowSize()
|
void |
setZoomMessage()
|
void |
showAllObjectCorners()
|
void |
showObjectCorners(FigObject obj)
|
void |
statusMessage(java.lang.String msg)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static java.lang.String versionString
FigAttribs attribs
FigObjectList objectList
FigObjectList tmpObjectList
FigObjectList triggerList
FigObject tmpObject
FigParser parser
java.lang.String helpfilename
java.lang.String filename
java.lang.String tmpfilename
java.lang.String filetype
java.lang.String tmpfiletype
public final java.lang.String TypeFILE
public final java.lang.String TypeURL
public final java.lang.String TypeRESOURCE
ConsoleMessage printer
StatusMessage statusField
java.awt.Frame frame
ViewerCanvas objectCanvas
ViewerStatusPanel viewerStatusPanel
ViewerButtonPanel viewerButtonPanel
java.awt.FileDialog fileDialog
StringDialog getUrlDialog
Command command
UndoStack undoStack
java.util.Vector filenameStack
java.util.Vector filetypeStack
java.util.Vector objectListStack
Constructor Detail |
public Viewer()
Method Detail |
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 boolean isInObjectList(FigObject obj)
isInObjectList
in interface FigBasicEditor
public void insertIntoObjectList(FigObject obj)
insertIntoObjectList
in interface FigBasicEditor
public void deleteFromObjectList(FigObject obj)
deleteFromObjectList
in interface FigBasicEditor
public FigObject findObjectAt(java.awt.Point P)
findObjectAt
in interface FigBasicEditor
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 void call(java.lang.String methodName, java.lang.Object arg)
call
in interface FigBasicEditor
public java.awt.Frame getFrame()
public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed
in interface FigBasicEditor
public boolean isIdle()
public boolean checkIsIdle()
public void doSelectFile()
public void doSelectURL()
public void doParseURL(java.lang.String s)
public void doParseResource(java.lang.String s)
public void doParseFile(java.lang.String fname)
public void parse(java.io.InputStream IS)
public void handleParserCallback()
public void handleCommandCallback()
public void printStacks()
public void doShowHelp()
public void doShowPrevious()
public void doShowNext()
public void doPrint()
public void doToggleDisplayLinks()
public void doZoomRegion()
public void doZoomRegion(int xl, int yt, int xr, int yb)
public void doZoomIn()
public void doZoomOut()
public void doZoom11()
public void doPanHome()
public void doRedraw()
doRedraw
in interface FigBasicEditor
public void setZoomMessage()
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 keyTyped(java.awt.event.KeyEvent evt)
keyTyped
in interface java.awt.event.KeyListener
public void keyPressed(java.awt.event.KeyEvent evt)
keyPressed
in interface java.awt.event.KeyListener
public void statusMessage(java.lang.String msg)
statusMessage
in interface FigBasicEditor
public void setInitialWindowSize()
public java.util.Enumeration getDrawableObjects()
FigDrawableEnumerator
getDrawableObjects
in interface FigDrawableEnumerator
public FigDrawable getTmpObject()
FigDrawableEnumerator
getTmpObject
in interface FigDrawableEnumerator
public java.lang.String getFilename()
FigBasicEditor
getFilename
in interface FigBasicEditor
public void setConsole(ConsoleMessage printer)
public void message(java.lang.String msg)
message
in interface FigBasicEditor
public static void main(java.lang.String[] argv)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |