com.davisor.graphics
Class NullStroke

java.lang.Object
  extended bycom.davisor.graphics.NullStroke
All Implemented Interfaces:
java.lang.Comparable, java.awt.Stroke

public class NullStroke
extends java.lang.Object
implements java.lang.Comparable, java.awt.Stroke

NullStroke implements a stroke that only results in null paths.

Since:
JDK1.1
See Also:
createStrokedShape(java.awt.Shape), BetterStroke

Field Summary
static java.awt.geom.GeneralPath NULL
          An empty path.
 
Constructor Summary
NullStroke()
          Constructs a new null stroke.
 
Method Summary
 int compareTo(java.lang.Object o)
          Compares this stroke with other objects.
 java.awt.Shape createStrokedShape(java.awt.Shape shape)
          Returns an empty shape.
 boolean equals(java.lang.Object o)
          Test if this null stroke is equal to given other stroke.
 java.lang.String toString()
          Gets null stroke spesification string (0).
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NULL

public static final java.awt.geom.GeneralPath NULL
An empty path.

Constructor Detail

NullStroke

public NullStroke()
Constructs a new null stroke.

Method Detail

compareTo

public int compareTo(java.lang.Object o)
Compares this stroke with other objects.

Specified by:
compareTo in interface java.lang.Comparable
See Also:
equals(java.lang.Object)

equals

public boolean equals(java.lang.Object o)
Test if this null stroke is equal to given other stroke. Null strokes are equal to other null strokes, but nothing else.

See Also:
compareTo(java.lang.Object)

toString

public java.lang.String toString()
Gets null stroke spesification string (0).


createStrokedShape

public java.awt.Shape createStrokedShape(java.awt.Shape shape)
Returns an empty shape.

Specified by:
createStrokedShape in interface java.awt.Stroke
Parameters:
shape - the shape boundary to be stroked


Copyright © 2001-2004 Davisor Oy. All Rights Reserved.