mascoptLib.gui.views
Class Link

java.lang.Object
  |
  +--java.awt.Component
        |
        +--mascoptLib.gui.views.GObject
              |
              +--mascoptLib.gui.views.Link
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable
Direct Known Subclasses:
ArrowedLink

public class Link
extends GObject

Link description : ;

See Also:
Serialized Form

Field Summary
 Color color
           
 
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
Link(GObject source, GObject target, Color color)
           
Link(GObject source, GObject target, Color color, int shift)
           
Link(GObject source, GObject target, int offSetSourceX, int offSetSourceY, int offSetTargetX, int offSetTargetY, Color color)
           
Link(GObject source, GObject target, int offSetSourceX, int offSetSourceY, int offSetTargetX, int offSetTargetY, Color color, int shift)
           
 
Method Summary
 boolean contains(int x, int y)
           
 Color getColor()
           
 int getShift()
           
 GObject getSource()
           
 GObject getTarget()
           
 void paint(Graphics g)
           
 void setColor(Color c)
           
 void setLocation(int x, int y)
           
 void setShift(int s)
           
 
Methods inherited from class mascoptLib.gui.views.GObject
repaint, translate
 
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, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, 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, getPreferredSize, 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, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

color

public Color color
Constructor Detail

Link

public Link(GObject source,
            GObject target,
            Color color)

Link

public Link(GObject source,
            GObject target,
            Color color,
            int shift)

Link

public Link(GObject source,
            GObject target,
            int offSetSourceX,
            int offSetSourceY,
            int offSetTargetX,
            int offSetTargetY,
            Color color)

Link

public Link(GObject source,
            GObject target,
            int offSetSourceX,
            int offSetSourceY,
            int offSetTargetX,
            int offSetTargetY,
            Color color,
            int shift)
Method Detail

setLocation

public void setLocation(int x,
                        int y)
Overrides:
setLocation in class Component

getSource

public GObject getSource()

getTarget

public GObject getTarget()

contains

public boolean contains(int x,
                        int y)
Overrides:
contains in class Component

setColor

public void setColor(Color c)

getColor

public Color getColor()

setShift

public void setShift(int s)

getShift

public int getShift()

paint

public void paint(Graphics g)
Overrides:
paint in class Component