mascoptLib.gui
Class GArc

java.lang.Object
  extended byjava.awt.Component
      extended bymascoptLib.gui.views.GObject
          extended bymascoptLib.gui.views.Link
              extended bymascoptLib.gui.views.ArrowedLink
                  extended bymascoptLib.gui.GArc
All Implemented Interfaces:
ImageObserver, MenuContainer, Selectable, Serializable

public class GArc
extends ArrowedLink
implements Selectable

Node description : ;

Version:
Thu Mar 21 18:38:16 2002
Author:
bbongiov@bing.inria.fr
See Also:
Serialized Form

Field Summary
 
Fields inherited from class mascoptLib.gui.views.Link
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
GArc(GVertex n0, GVertex n1, AbstractEdge arc, Color col)
           
GArc(GVertex n0, GVertex n1, AbstractEdge arc, Color col, int shift)
           
 
Method Summary
 void enter()
           
 void exit()
           
 AbstractEdge getAbstractEdge()
           
 Color getColor()
          Returns the color of the link.
 void select()
           
 void setColor(Color newColor)
          Change the color of the link.
 
Methods inherited from class mascoptLib.gui.views.ArrowedLink
contains, getCenterArrow, paint, setOffsetAxis, setOffsetNormal, setVisibleArrow
 
Methods inherited from class mascoptLib.gui.views.Link
getShift, getSource, getTarget, setLocation, setShift
 
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
 

Constructor Detail

GArc

public GArc(GVertex n0,
            GVertex n1,
            AbstractEdge arc,
            Color col)

GArc

public GArc(GVertex n0,
            GVertex n1,
            AbstractEdge arc,
            Color col,
            int shift)
Method Detail

getAbstractEdge

public AbstractEdge getAbstractEdge()

setColor

public void setColor(Color newColor)
Description copied from class: Link
Change the color of the link.

Overrides:
setColor in class Link
Parameters:
newColor - the color.

getColor

public Color getColor()
Description copied from class: Link
Returns the color of the link.

Overrides:
getColor in class Link
Returns:
the color.

select

public void select()
Specified by:
select in interface Selectable

enter

public void enter()
Specified by:
enter in interface Selectable

exit

public void exit()
Specified by:
exit in interface Selectable