com.seisw.util.geom.demo
Class CanvasState

java.lang.Object
  extended bycom.seisw.util.geom.demo.CanvasState

public class CanvasState
extends java.lang.Object

CanvasState is an "enum" type object that has fixed objects for each state of the PolyCanvas. These objects are used with the StateChangedListener so that users of PolyCanvas can get information on the state that the canvas has changed too.

Author:
Daniel Bridenbecker, Solution Engineering, Inc.
See Also:
StateChangedListener, PolyCanvas

Field Summary
static CanvasState DONE_ENTERING
          Points are not being accepted for either polygon and expecting the user to select an operation or clear.
static CanvasState ENTERING_POLY_1
          The canvas is accepting points for the first polygon.
static CanvasState ENTERING_POLY_2
          The canvas is accepting points for the second polygon.
static CanvasState INTERSECTION
          Indicates that the current set operation is intersection.
static CanvasState UNION
          Indicates that the current set operation is union.
static CanvasState XOR
          Indicates that the current set operation is xor.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Return true if the input object is equal to this object, else false
 int hashCode()
          Return the hashCode of the object.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ENTERING_POLY_1

public static final CanvasState ENTERING_POLY_1
The canvas is accepting points for the first polygon.


ENTERING_POLY_2

public static final CanvasState ENTERING_POLY_2
The canvas is accepting points for the second polygon.


DONE_ENTERING

public static final CanvasState DONE_ENTERING
Points are not being accepted for either polygon and expecting the user to select an operation or clear.


INTERSECTION

public static final CanvasState INTERSECTION
Indicates that the current set operation is intersection.


UNION

public static final CanvasState UNION
Indicates that the current set operation is union.


XOR

public static final CanvasState XOR
Indicates that the current set operation is xor.

Method Detail

equals

public boolean equals(java.lang.Object obj)
Return true if the input object is equal to this object, else false


hashCode

public int hashCode()
Return the hashCode of the object.

Returns:
an integer value that is the same for two objects whenever their internal representation is the same (equals() is true)

toString

public java.lang.String toString()


Copyright © 2004 Solution Engineering, Inc. All Rights Reserved.