se.umu.cs.SequenceDiagramEditor
Class Handle

java.lang.Object
  extended byse.umu.cs.SequenceDiagramEditor.Handle

public class Handle
extends java.lang.Object

This class represents a Handle.

Author:
Matilda Östling

Field Summary
private  java.awt.Point startPoint
          The startpoint of the handle.
 
Constructor Summary
Handle(java.awt.Point p)
          The constructor of the class.
 
Method Summary
 void draw(java.awt.Graphics g)
          This method is called to draw the object.
 boolean isClickedOn(java.awt.Point p)
          This method decides whether the object is clicked on or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

startPoint

private java.awt.Point startPoint
The startpoint of the handle.

Constructor Detail

Handle

public Handle(java.awt.Point p)
The constructor of the class.

Parameters:
p - The startpoint for the object.
Method Detail

draw

public void draw(java.awt.Graphics g)
This method is called to draw the object.

Parameters:
g - The graphics used to draw the object.

isClickedOn

public boolean isClickedOn(java.awt.Point p)
This method decides whether the object is clicked on or not.

Parameters:
p - The point where the user has clicked.
Returns:
True is returned if the object is clicked on, otherwise false is returned.