org.globus.cog.gui.grapheditor.targets.swing.util
Class Anchor

java.lang.Object
  extended byjava.awt.Component
      extended byorg.globus.cog.gui.grapheditor.targets.swing.util.Anchor
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable
Direct Known Subclasses:
SquareAnchor

public class Anchor
extends Component

An anchor is a component used as visual guides for manipulating the dimensions of other components.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
static short BEGIN
           
static short E
           
static short END
           
static short N
           
static short NE
           
static short NONE
           
static short NW
           
static short S
           
static short SE
           
static short SW
           
static short W
           
 
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
Anchor(GraphComponentWrapper owner)
           
Anchor(GraphComponentWrapper owner, short type)
           
 
Method Summary
 void addAnchorListener(AnchorListener l)
           
 void dispatchAnchorEvent(AnchorEvent e)
           
 void dispatchAnchorEvent(AnchorEvent e, Object exclude)
           
 Point getHSLocation()
           
 GraphComponentWrapper getOwner()
           
 Dimension getPreferredSize()
           
 int getType()
           
 void mouseClicked(MouseEvent e)
           
 void mouseDragged(MouseEvent e)
           
 void mouseEntered(MouseEvent e)
           
 void mouseExited(MouseEvent e)
           
 void mouseMoved(MouseEvent e)
           
 void mousePressed(MouseEvent e)
           
 void mouseReleased(MouseEvent e)
           
protected  void processMouseEvent(MouseEvent e)
           
protected  void processMouseMotionEvent(MouseEvent e)
           
 void removeAnchorListener(AnchorListener l)
           
 void setHSLocation(int x, int y)
           
 void setHSLocation(Point p)
           
 void setMovable(boolean movable)
           
 void setSize(int w, int h)
           
 void setType(short type)
           
 void translate(int dx, int dy)
           
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static short NONE

N

public static short N

S

public static short S

E

public static short E

W

public static short W

NW

public static short NW

NE

public static short NE

SW

public static short SW

SE

public static short SE

BEGIN

public static short BEGIN

END

public static short END
Constructor Detail

Anchor

public Anchor(GraphComponentWrapper owner,
              short type)

Anchor

public Anchor(GraphComponentWrapper owner)
Method Detail

setMovable

public void setMovable(boolean movable)

addAnchorListener

public void addAnchorListener(AnchorListener l)

removeAnchorListener

public void removeAnchorListener(AnchorListener l)

dispatchAnchorEvent

public void dispatchAnchorEvent(AnchorEvent e)

dispatchAnchorEvent

public void dispatchAnchorEvent(AnchorEvent e,
                                Object exclude)

getPreferredSize

public Dimension getPreferredSize()

setHSLocation

public void setHSLocation(Point p)

setHSLocation

public void setHSLocation(int x,
                          int y)

getHSLocation

public Point getHSLocation()

setSize

public void setSize(int w,
                    int h)

mouseClicked

public void mouseClicked(MouseEvent e)

mouseEntered

public void mouseEntered(MouseEvent e)

mouseExited

public void mouseExited(MouseEvent e)

mousePressed

public void mousePressed(MouseEvent e)

mouseReleased

public void mouseReleased(MouseEvent e)

mouseMoved

public void mouseMoved(MouseEvent e)

mouseDragged

public void mouseDragged(MouseEvent e)

processMouseMotionEvent

protected void processMouseMotionEvent(MouseEvent e)

processMouseEvent

protected void processMouseEvent(MouseEvent e)

setType

public void setType(short type)

getType

public int getType()

getOwner

public GraphComponentWrapper getOwner()

translate

public void translate(int dx,
                      int dy)