com.aleax.gui.gesture
Class Stroke

java.lang.Object
  extended bycom.aleax.gui.gesture.Stroke
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public final class Stroke
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

This class provides low-level stroke manipulation/comparison routines.

A stroke is the series of Points recorded as a drag with a single, continuous movement of the pointing device.

Version:
1.0 28 Apr 2001
Author:
Yiannis Paschalidis
See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Constructor Summary
Stroke(java.awt.Point[] points)
          Constructs a stroke defined by the given points
Stroke(java.util.Vector points)
          Constructs a stroke defined by the given Vector of java.awt.Point
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object o)
           
 boolean equivalentTo(Stroke other)
           
 int hashCode()
           
 void paint(java.awt.Graphics g)
           
 void recalculate()
          Re-calculates the stroke data with the current filter settings.
 java.lang.String toString()
          For debugging
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

Stroke

public Stroke(java.util.Vector points)
Constructs a stroke defined by the given Vector of java.awt.Point


Stroke

public Stroke(java.awt.Point[] points)
Constructs a stroke defined by the given points

Method Detail

clone

public java.lang.Object clone()

hashCode

public int hashCode()

equals

public boolean equals(java.lang.Object o)

equivalentTo

public boolean equivalentTo(Stroke other)

paint

public void paint(java.awt.Graphics g)

toString

public java.lang.String toString()
For debugging


recalculate

public void recalculate()
Re-calculates the stroke data with the current filter settings.