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.
-
mouseManager
-
-
selection
-
-
FreeFormEdit()
- The constructor creates the listeners with the correct layout
for the free form design.
-
add(Component, int, int)
- add a component to an x and y location.
-
keyPressed(KeyEvent)
- this method is a part of the keylistener interface used
to listen to keyboard events.
-
keyReleased(KeyEvent)
- this method is a part of the keylistener interface used
to listen to keyboard events.
-
keyTyped(KeyEvent)
- this method is a part of the keylistener interface used
to listen to keyboard events.
-
placeComponentOnNextClick(Component)
- places the component comp on the next click on the free form
edit surface.
-
removeSelection()
- removes the currently selected object from the free form edit.
-
setSelection(Component)
- set the selection Component to be the selected Component.
-
windowActivated(WindowEvent)
- this method is a part of the Windowlistener interface used
to listen to window events.
-
windowClosed(WindowEvent)
- this method is a part of the Windowlistener interface used
to listen to window events.
-
windowClosing(WindowEvent)
- this method is a part of the Windowlistener interface used
to listen to window events.
-
windowDeactivated(WindowEvent)
- this method is a part of the Windowlistener interface used
to listen to window events.
-
windowDeiconified(WindowEvent)
- this method is a part of the Windowlistener interface used
to listen to window events.
-
windowIconified(WindowEvent)
- this method is a part of the Windowlistener interface used
to listen to window events.
-
windowOpened(WindowEvent)
- this method is a part of the Windowlistener interface used
to listen to window events.
selection
private Component selection
mouseManager
private MouseManager mouseManager
FreeFormEdit
public FreeFormEdit()
- The constructor creates the listeners with the correct layout
for the free form design.
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).
keyPressed
public void keyPressed(KeyEvent ev)
- this method is a part of the keylistener interface used
to listen to keyboard events.
keyReleased
public void keyReleased(KeyEvent ev)
- this method is a part of the keylistener interface used
to listen to keyboard events.
keyTyped
public void keyTyped(KeyEvent ev)
- this method is a part of the keylistener interface used
to listen to keyboard events.
placeComponentOnNextClick
public void placeComponentOnNextClick(Component comp)
- places the component comp on the next click on the free form
edit surface.
removeSelection
public void removeSelection()
- removes the currently selected object from the free form edit.
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.
windowActivated
public void windowActivated(WindowEvent ev)
- this method is a part of the Windowlistener interface used
to listen to window events.
windowClosed
public void windowClosed(WindowEvent ev)
- this method is a part of the Windowlistener interface used
to listen to window events.
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
windowDeactivated
public void windowDeactivated(WindowEvent ev)
- this method is a part of the Windowlistener interface used
to listen to window events.
windowDeiconified
public void windowDeiconified(WindowEvent ev)
- this method is a part of the Windowlistener interface used
to listen to window events.
windowIconified
public void windowIconified(WindowEvent ev)
- this method is a part of the Windowlistener interface used
to listen to window events.
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