Jedit 4.1

Class JEdit

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--java.applet.Applet
                          |
                          +--JEdit
All Implemented Interfaces:
Accessible, EventListener, ImageObserver, MenuContainer, MouseListener, MouseMotionListener, Serializable

public class JEdit
extends Applet
implements MouseListener, MouseMotionListener

An applet that consists of a clickable button for launching the JEdit program. When the button area receives a mousePressed event, a new JeditFrame is created. This is the main class for Jedit.

Since:
1 Jul 1998
Version:
24 May 2002
Author:
Aaron Nall
, Vellanki Kiran , Elizabeth VandenBerg
See Also:
Applet, MouseListener, MouseMotionListener, Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.applet.Applet
Applet.AccessibleApplet
 
Nested classes inherited from class java.awt.Panel
Panel.AccessibleAWTPanel
 
Nested classes inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
 
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
JEdit()
           
 
Method Summary
 String getAppletInfo()
          Returns Get Info text for Jedit.
 void init()
          Called by the browser to set up the applet to receive mouse events.
 void mouseClicked(MouseEvent e)
          Not implemented.
 void mouseDragged(MouseEvent e)
          Not implemented.
 void mouseEntered(MouseEvent e)
          Not implemented.
 void mouseExited(MouseEvent e)
          If the mouse is moved off of the button, repaints the window.
 void mouseMoved(MouseEvent e)
          Checks whether the mouse has moved onto the button.
 void mousePressed(MouseEvent e)
          If the event is on the button, creates a new JeditFrame.
 void mouseReleased(MouseEvent e)
          Not implemented.
 void paint(Graphics g)
          Paints the button and logo in the applet.
 void update(Graphics g)
          Overridden for double-buffered graphics.
 
Methods inherited from class java.applet.Applet
destroy, getAccessibleContext, getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop
 
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, 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
 

Constructor Detail

JEdit

public JEdit()
Method Detail

init

public void init()
Called by the browser to set up the applet to receive mouse events.

Overrides:
init in class Applet

mouseDragged

public void mouseDragged(MouseEvent e)
Not implemented.

Specified by:
mouseDragged in interface MouseMotionListener

mouseMoved

public void mouseMoved(MouseEvent e)
Checks whether the mouse has moved onto the button.

Specified by:
mouseMoved in interface MouseMotionListener
Parameters:
e - the mouse event
Throws:
oops
See Also:
MouseEvent

mouseExited

public void mouseExited(MouseEvent e)
If the mouse is moved off of the button, repaints the window.

Specified by:
mouseExited in interface MouseListener
Parameters:
e - the mouse event
See Also:
MouseEvent

mouseEntered

public void mouseEntered(MouseEvent e)
Not implemented.

Specified by:
mouseEntered in interface MouseListener

mouseReleased

public void mouseReleased(MouseEvent e)
Not implemented.

Specified by:
mouseReleased in interface MouseListener

mouseClicked

public void mouseClicked(MouseEvent e)
Not implemented.

Specified by:
mouseClicked in interface MouseListener

mousePressed

public void mousePressed(MouseEvent e)
If the event is on the button, creates a new JeditFrame.

Specified by:
mousePressed in interface MouseListener
Parameters:
e - the mouse event
See Also:
MouseEvent

update

public void update(Graphics g)
Overridden for double-buffered graphics.

Overrides:
update in class Container
Parameters:
g - the graphic to update

paint

public void paint(Graphics g)
Paints the button and logo in the applet. If the mouse is in the button area, the button will be painted in a "pushed-in" style.

Overrides:
paint in class Container
Parameters:
g - the graphic to paint

getAppletInfo

public String getAppletInfo()
Returns Get Info text for Jedit.

Overrides:
getAppletInfo in class Applet

Jedit 4.1