Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- package nz.ac.aut.ada.hsv5433.graphartist.gui;
- /**
- *
- * @author Kostya
- * @version 1
- *
- * A GUI support class, designed to represent the 'back-end' of edges.
- *
- * Maintenance history
- *
- * 12/10/12 - Created
- * 13/10/12 - Removed directional marker (all edges now directed).
- */
- public class Edge
- {
- private Node start;
- private Node end;
- /**
- * Constructor
- * @param start the node from which the edge begins.
- * @param end the node to which the edge leads.
- */
- public Edge (Node start, Node end)
- {
- this.start = start;
- this.end = end;
- }
- /*
- * Accessor methods
- */
- /**
- * @return the starting point.
- */
- public Node getStart()
- {
- return start;
- }
- /**
- * @return the ending point.
- */
- public Node getEnd()
- {
- return end;
- }
- }
Add Comment
Please, Sign In to add comment