daily pastebin goal
39%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  * To change this template, choose Tools | Templates
  3.  * and open the template in the editor.
  4.  */
  5. package nz.ac.aut.ada.hsv5433.graphartist.gui;
  6.  
  7. /**
  8.  *
  9.  * @author Kostya
  10.  * @version 1
  11.  *
  12.  * A GUI support class, designed to represent the 'back-end' of edges.
  13.  *
  14.  * Maintenance history
  15.  *
  16.  * 12/10/12 - Created
  17.  * 13/10/12 - Removed directional marker (all edges now directed).
  18.  */
  19. public class Edge
  20. {
  21.     private Node start;
  22.     private Node end;
  23.    
  24.     /**
  25.      * Constructor
  26.      * @param start the node from which the edge begins.
  27.      * @param end the node to which the edge leads.
  28.      */
  29.     public Edge (Node start, Node end)
  30.     {
  31.         this.start = start;
  32.         this.end = end;
  33.     }
  34.    
  35.     /*
  36.      * Accessor methods
  37.      */
  38.    
  39.     /**
  40.      * @return the starting point.
  41.      */
  42.     public Node getStart()
  43.     {
  44.         return start;
  45.     }
  46.    
  47.     /**
  48.      * @return the ending point.
  49.      */
  50.     public Node getEnd()
  51.     {
  52.         return end;
  53.     }
  54. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top