Exemplo n.º 1
0
 public void release() {
   super.release();
   handleDisconnect(startFigure(), endFigure());
   if (getStartConnector() != null) {
     startFigure().removeFigureChangeListener(this);
   }
   if (getEndConnector() != null) {
     endFigure().removeFigureChangeListener(this);
   }
 }
Exemplo n.º 2
0
 public void read(StorableInput dr) throws IOException {
   super.read(dr);
   Connector start = (Connector) dr.readStorable();
   if (start != null) {
     connectStart(start);
   }
   Connector end = (Connector) dr.readStorable();
   if (end != null) {
     connectEnd(end);
   }
   if (start != null && end != null) {
     updateConnection();
   }
 }
Exemplo n.º 3
0
 public void write(StorableOutput dw) {
   super.write(dw);
   dw.writeStorable(getStartConnector());
   dw.writeStorable(getEndConnector());
 }
Exemplo n.º 4
0
 /** Removes the point and updates the connection. */
 public void removePointAt(int i) {
   super.removePointAt(i);
   layoutConnection();
 }
Exemplo n.º 5
0
 /** Inserts the point and updates the connection. */
 public void insertPointAt(Point p, int i) {
   super.insertPointAt(p, i);
   layoutConnection();
 }
Exemplo n.º 6
0
 /** Sets the point and updates the connection. */
 public void setPointAt(Point p, int i) {
   super.setPointAt(p, i);
   layoutConnection();
 }