com.bonevich.erj.ui
Class ModeCreateAttribute

java.lang.Object
  |
  +--org.tigris.gef.base.ModeImpl
        |
        +--org.tigris.gef.base.FigModifyingModeImpl
              |
              +--com.bonevich.erj.ui.ModeCreateAttribute
All Implemented Interfaces:
java.util.EventListener, org.tigris.gef.base.FigModifyingMode, java.awt.event.KeyListener, org.tigris.gef.base.Mode, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.io.Serializable

public class ModeCreateAttribute
extends org.tigris.gef.base.FigModifyingModeImpl

Mode to add a new default Attribute to a Relation.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.tigris.gef.base.FigModifyingModeImpl
editor
 
Fields inherited from class org.tigris.gef.base.ModeImpl
_args
 
Constructor Summary
ModeCreateAttribute()
           
ModeCreateAttribute(org.tigris.gef.base.Editor editor)
           
 
Method Summary
 java.lang.String instructions()
           
 void mouseClicked(java.awt.event.MouseEvent me)
          On mouseClicked, find the relation node over which we are positioned and ask that node's owner relation to add a new default attribute.
 
Methods inherited from class org.tigris.gef.base.FigModifyingModeImpl
done, getEditor, getInitialCursor, isFigEnclosedIn, paint, print, setCursor, setEditor
 
Methods inherited from class org.tigris.gef.base.ModeImpl
canExit, getArg, getArgs, init, keyPressed, keyReleased, keyTyped, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, setArg, setArgs, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.tigris.gef.base.Mode
canExit, getArg, getArgs, init, setArg, setArgs, start
 

Constructor Detail

ModeCreateAttribute

public ModeCreateAttribute()

ModeCreateAttribute

public ModeCreateAttribute(org.tigris.gef.base.Editor editor)
Method Detail

instructions

public java.lang.String instructions()
Specified by:
instructions in interface org.tigris.gef.base.FigModifyingMode
Overrides:
instructions in class org.tigris.gef.base.FigModifyingModeImpl

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent me)
On mouseClicked, find the relation node over which we are positioned and ask that node's owner relation to add a new default attribute.

Specified by:
mouseClicked in interface java.awt.event.MouseListener
Overrides:
mouseClicked in class org.tigris.gef.base.ModeImpl


Copyright © 2001-2003 bonevich.com. All Rights Reserved.