org.globus.cog.gui.grapheditor.targets.swing.util
Class Anchor
java.lang.Object
java.awt.Component
org.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
|
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
|
| 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 |
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
Anchor
public Anchor(GraphComponentWrapper owner,
short type)
Anchor
public Anchor(GraphComponentWrapper owner)
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)