JHotDraw 7.0.6

org.jhotdraw.draw
Class ChangeConnectionEndHandle

java.lang.Object
  extended by org.jhotdraw.draw.AbstractHandle
      extended by org.jhotdraw.draw.ChangeConnectionHandle
          extended by org.jhotdraw.draw.ChangeConnectionEndHandle
All Implemented Interfaces:
java.awt.event.KeyListener, java.util.EventListener, FigureListener, Handle

public class ChangeConnectionEndHandle
extends ChangeConnectionHandle

Handle to reconnect the end of a connection to another figure.


Field Summary
 
Fields inherited from class org.jhotdraw.draw.AbstractHandle
listenerList, view
 
Constructor Summary
ChangeConnectionEndHandle(Figure owner)
          Constructs the connection handle for the given start figure.
 
Method Summary
protected  boolean canConnect(Figure existingEnd, Figure targetEnd)
           
protected  void connect(Connector c)
          Sets the start of the connection.
protected  void disconnect()
          Disconnects the start figure.
protected  java.awt.geom.Point2D.Double getLocation()
          Returns the start point of the connection.
protected  Connector getTarget()
          Returns the target connector of the change.
protected  void setLocation(java.awt.geom.Point2D.Double p)
          Sets the start point of the connection.
 
Methods inherited from class org.jhotdraw.draw.ChangeConnectionHandle
basicGetBounds, draw, findConnector, getConnection, getSource, getTargetFigure, isCombinableWith, setConnection, setTargetFigure, trackEnd, trackStart, trackStep
 
Methods inherited from class org.jhotdraw.draw.AbstractHandle
addHandleListener, contains, createSecondaryHandles, dispose, drawCircle, drawDiamond, drawRectangle, figureAdded, figureAreaInvalidated, figureAttributeChanged, figureChanged, figureRemoved, figureRequestRemove, fireAreaInvalidated, fireHandleRequestRemove, fireHandleRequestSecondaryHandles, fireUndoableEditHappened, getBounds, getCursor, getDrawBounds, getHandlesize, getOwner, invalidate, keyPressed, keyReleased, keyTyped, removeHandleListener, setView, trackDoubleClick, updateBounds, viewTransformChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeConnectionEndHandle

public ChangeConnectionEndHandle(Figure owner)
Constructs the connection handle for the given start figure.

Method Detail

connect

protected void connect(Connector c)
Sets the start of the connection.

Specified by:
connect in class ChangeConnectionHandle

disconnect

protected void disconnect()
Disconnects the start figure.

Specified by:
disconnect in class ChangeConnectionHandle

getTarget

protected Connector getTarget()
Description copied from class: ChangeConnectionHandle
Returns the target connector of the change.

Specified by:
getTarget in class ChangeConnectionHandle

setLocation

protected void setLocation(java.awt.geom.Point2D.Double p)
Sets the start point of the connection.

Specified by:
setLocation in class ChangeConnectionHandle

getLocation

protected java.awt.geom.Point2D.Double getLocation()
Returns the start point of the connection.

Specified by:
getLocation in class ChangeConnectionHandle

canConnect

protected boolean canConnect(Figure existingEnd,
                             Figure targetEnd)
Specified by:
canConnect in class ChangeConnectionHandle

Copyright 1996-2006 © JHotDraw.org