jfig.gui
Class SimpleFigApplet

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended byjava.applet.Applet
                  extended byjfig.gui.SimpleFigApplet
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, FigDrawableEnumerator, java.awt.image.ImageObserver, java.awt.event.ItemListener, java.awt.event.KeyListener, java.awt.MenuContainer, java.awt.event.MouseListener, java.io.Serializable

public class SimpleFigApplet
extends java.applet.Applet
implements java.awt.event.ActionListener, java.awt.event.MouseListener, java.awt.event.KeyListener, java.awt.event.ItemListener, FigDrawableEnumerator

minimal FIG viewer applet: one static file, no GUI

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.applet.Applet
java.applet.Applet.AccessibleApplet
 
Nested classes inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
(package private)  java.awt.CheckboxMenuItem antiAliasMI
           
(package private)  FigAttribs attribs
           
(package private)  boolean debug
           
(package private)  boolean enablePrinting
           
(package private)  java.awt.Frame helpFrame
           
(package private)  java.awt.Button helpOKButton
           
(package private)  java.awt.TextArea helpTextArea
           
(package private)  java.io.InputStream inputStream
           
(package private)  PresentationViewerCanvas objectCanvas
           
(package private)  FigObjectList objectList
           
(package private)  FigParser parser
           
(package private)  java.awt.CheckboxMenuItem popupConsoleMI
           
(package private)  java.awt.PopupMenu popupMenu
           
(package private)  java.awt.Button redrawButton
           
(package private)  java.awt.CheckboxMenuItem renderQualityMI
           
(package private)  java.net.URL url
           
(package private)  java.awt.Button zoomInButton
           
(package private)  java.awt.Button zoomOutButton
           
(package private)  boolean zoomRegionMode
           
 
Fields inherited from class java.applet.Applet
 
Fields inherited from class java.awt.Container
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
SimpleFigApplet()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void buildPopup()
           
 void doCancel()
           
 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 doPrint()
           
 void doQuit()
           
 void doRedraw()
           
 void doSetGridMedium(java.lang.Object arg)
           
 void doSetGridNone(java.lang.Object arg)
           
 void doShowHelp()
           
 void doShowMessages()
           
 void doUpdateAntiAlias()
           
 void doUpdateRenderQuality()
           
 void doZoom11()
           
 void doZoomFactor(double factor)
           
 void doZoomFit()
           
 void doZoomFitWidth()
           
 void doZoomIn11()
           
 void doZoomIn14()
           
 void doZoomOut07()
           
 void doZoomOut09()
           
 void doZoomRegion()
           
 java.lang.String getAppletInfo()
           
 java.util.Enumeration getDrawableObjects()
          ** ObjectEnumerator stuff ** ** **
 java.lang.String[][] getParameterInfo()
           
 FigDrawable getTmpObject()
          return a reference to the current 'active' (temporary) object
 void handleMousePressedZoomRegion(java.awt.event.MouseEvent e)
           
 void init()
           
 void itemStateChanged(java.awt.event.ItemEvent e)
           
 void keyPressed(java.awt.event.KeyEvent evt)
           
 void keyReleased(java.awt.event.KeyEvent evt)
           
 void keyTyped(java.awt.event.KeyEvent evt)
           
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void msg(java.lang.String s)
           
 void paint(java.awt.Graphics g)
           
 void setZoomFactor(double factor)
           
 void setZoomMessage()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.applet.Applet
destroy, getAccessibleContext, getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

redrawButton

java.awt.Button redrawButton

zoomInButton

java.awt.Button zoomInButton

zoomOutButton

java.awt.Button zoomOutButton

objectCanvas

PresentationViewerCanvas objectCanvas

popupMenu

java.awt.PopupMenu popupMenu

attribs

FigAttribs attribs

parser

FigParser parser

objectList

FigObjectList objectList

inputStream

java.io.InputStream inputStream

url

java.net.URL url

debug

boolean debug

enablePrinting

boolean enablePrinting

zoomRegionMode

boolean zoomRegionMode

helpFrame

java.awt.Frame helpFrame

helpTextArea

java.awt.TextArea helpTextArea

helpOKButton

java.awt.Button helpOKButton

popupConsoleMI

java.awt.CheckboxMenuItem popupConsoleMI

antiAliasMI

java.awt.CheckboxMenuItem antiAliasMI

renderQualityMI

java.awt.CheckboxMenuItem renderQualityMI
Constructor Detail

SimpleFigApplet

public SimpleFigApplet()
Method Detail

getAppletInfo

public java.lang.String getAppletInfo()

getParameterInfo

public java.lang.String[][] getParameterInfo()

init

public void init()

start

public void start()

stop

public void stop()

paint

public void paint(java.awt.Graphics g)

buildPopup

public void buildPopup()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
Specified by:
itemStateChanged in interface java.awt.event.ItemListener

doCancel

public void doCancel()

doQuit

public void doQuit()

doShowMessages

public void doShowMessages()

doShowHelp

public void doShowHelp()

doPrint

public void doPrint()

doRedraw

public void doRedraw()

setZoomMessage

public void setZoomMessage()

doZoomIn14

public void doZoomIn14()

doZoomIn11

public void doZoomIn11()

doZoomOut09

public void doZoomOut09()

doZoomFactor

public void doZoomFactor(double factor)

doZoomOut07

public void doZoomOut07()

doZoom11

public void doZoom11()

setZoomFactor

public void setZoomFactor(double factor)

doZoomRegion

public void doZoomRegion()

handleMousePressedZoomRegion

public void handleMousePressedZoomRegion(java.awt.event.MouseEvent e)

doZoomFit

public void doZoomFit()

doZoomFitWidth

public void doZoomFitWidth()

doPanHome

public void doPanHome(java.lang.Object arg)

doPanLeft

public void doPanLeft(java.lang.Object arg)

doPanRight

public void doPanRight(java.lang.Object arg)

doPanUp

public void doPanUp(java.lang.Object arg)

doPanDown

public void doPanDown(java.lang.Object arg)

doSetGridNone

public void doSetGridNone(java.lang.Object arg)

doSetGridMedium

public void doSetGridMedium(java.lang.Object arg)

doUpdateAntiAlias

public void doUpdateAntiAlias()

doUpdateRenderQuality

public void doUpdateRenderQuality()

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener

keyReleased

public void keyReleased(java.awt.event.KeyEvent evt)
Specified by:
keyReleased in interface java.awt.event.KeyListener

keyTyped

public void keyTyped(java.awt.event.KeyEvent evt)
Specified by:
keyTyped in interface java.awt.event.KeyListener

keyPressed

public void keyPressed(java.awt.event.KeyEvent evt)
Specified by:
keyPressed in interface java.awt.event.KeyListener

msg

public void msg(java.lang.String s)

getDrawableObjects

public java.util.Enumeration getDrawableObjects()
** ObjectEnumerator stuff ** ** **

Specified by:
getDrawableObjects in interface FigDrawableEnumerator

getTmpObject

public FigDrawable getTmpObject()
Description copied from interface: FigDrawableEnumerator
return a reference to the current 'active' (temporary) object

Specified by:
getTmpObject in interface FigDrawableEnumerator