All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class macrolanguage.FreeFormEdit

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----macrolanguage.FreeFormEdit

public class FreeFormEdit
extends Frame
implements KeyListener, WindowListener
the FreeFormEdit class is a class which contains Components on a Frame surface which allows dragging & droping and possible manipulation of components. This class is without actual inteligence and only exposes functionality to be used by other classes. The internal componets are all wrapped with instances of the class Component wrapper to allow easier editing.


Variable Index

 o mouseManager
 o selection

Constructor Index

 o FreeFormEdit()
The constructor creates the listeners with the correct layout for the free form design.

Method Index

 o add(Component, int, int)
add a component to an x and y location.
 o keyPressed(KeyEvent)
this method is a part of the keylistener interface used to listen to keyboard events.
 o keyReleased(KeyEvent)
this method is a part of the keylistener interface used to listen to keyboard events.
 o keyTyped(KeyEvent)
this method is a part of the keylistener interface used to listen to keyboard events.
 o placeComponentOnNextClick(Component)
places the component comp on the next click on the free form edit surface.
 o removeSelection()
removes the currently selected object from the free form edit.
 o setSelection(Component)
set the selection Component to be the selected Component.
 o windowActivated(WindowEvent)
this method is a part of the Windowlistener interface used to listen to window events.
 o windowClosed(WindowEvent)
this method is a part of the Windowlistener interface used to listen to window events.
 o windowClosing(WindowEvent)
this method is a part of the Windowlistener interface used to listen to window events.
 o windowDeactivated(WindowEvent)
this method is a part of the Windowlistener interface used to listen to window events.
 o windowDeiconified(WindowEvent)
this method is a part of the Windowlistener interface used to listen to window events.
 o windowIconified(WindowEvent)
this method is a part of the Windowlistener interface used to listen to window events.
 o windowOpened(WindowEvent)
this method is a part of the Windowlistener interface used to listen to window events.

Variables

 o selection
 private Component selection
 o mouseManager
 private MouseManager mouseManager

Constructors

 o FreeFormEdit
 public FreeFormEdit()
The constructor creates the listeners with the correct layout for the free form design.

Methods

 o add
 public void add(Component c,
                 int x,
                 int y) throws NotAContainerException
add a component to an x and y location. This method will be called by the user putting a component on the form or an embeded conainer. This method throws a NotAContainerException when the x and y location points at a component, since components cannot be placed on other components in Java (this is untrue with regarding lightweight components).

 o keyPressed
 public void keyPressed(KeyEvent ev)
this method is a part of the keylistener interface used to listen to keyboard events.

 o keyReleased
 public void keyReleased(KeyEvent ev)
this method is a part of the keylistener interface used to listen to keyboard events.

 o keyTyped
 public void keyTyped(KeyEvent ev)
this method is a part of the keylistener interface used to listen to keyboard events.

 o placeComponentOnNextClick
 public void placeComponentOnNextClick(Component comp)
places the component comp on the next click on the free form edit surface.

 o removeSelection
 public void removeSelection()
removes the currently selected object from the free form edit.

 o setSelection
 public void setSelection(Component selection)
set the selection Component to be the selected Component. This method is used to mark a component as selected.

 o windowActivated
 public void windowActivated(WindowEvent ev)
this method is a part of the Windowlistener interface used to listen to window events.

 o windowClosed
 public void windowClosed(WindowEvent ev)
this method is a part of the Windowlistener interface used to listen to window events.

 o windowClosing
 public void windowClosing(WindowEvent ev)
this method is a part of the Windowlistener interface used to listen to window events. this event quit's the application

 o windowDeactivated
 public void windowDeactivated(WindowEvent ev)
this method is a part of the Windowlistener interface used to listen to window events.

 o windowDeiconified
 public void windowDeiconified(WindowEvent ev)
this method is a part of the Windowlistener interface used to listen to window events.

 o windowIconified
 public void windowIconified(WindowEvent ev)
this method is a part of the Windowlistener interface used to listen to window events.

 o windowOpened
 public void windowOpened(WindowEvent ev)
this method is a part of the Windowlistener interface used to listen to window events.


All Packages  Class Hierarchy  This Package  Previous  Next  Index