All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class fundamentals.wrapItem

java.lang.Object
   |
   +----fundamentals.wrapItem

public class wrapItem
extends Object
implements constants

Variable Index

 o flag
A flag describing the status of the object.
 o number
A reference by number to the object as it is stored in a
 o subType
The subtype of the object.

Constructor Index

 o wrapItem(int, int, int)
Initialization

Method Index

 o checkMatch(wrapItem)
Throws various exceptions if the passed wrapItem is not the same as the present one
 o isFull()
 o toString()
Documents the contents of the wrapItem in the format exemplified by H3, A6!.
 o type()
Returns the type of the item, one of the constants RADIUS, POINT, LINE, CIRCLE from the
 o typeNumber()
Returns the number of the type of the item as follows: RADIUS=0, POINT=1, LINE=2, CIRCLE=3, or -1 if there is a problem.

Variables

 o number
 public int number
A reference by number to the object as it is stored in a @see EuLab

 o flag
 public int flag
A flag describing the status of the object. One of the constants NEW KNOWN KNOWN_ONLY_AS_TARGET UNKNOWN HIDDEN NORMAL HIGHLIGHTED OUT_OF_HIDING defined in the @see constants interface

 o subType
 public int subType
The subtype of the object. One of the constants A_RADIUS, A_POINT, A_LINE, AN_INTERVAL, A_HALF, A_CIRCLE, AN_ARC from the @see constants interface

Constructors

 o wrapItem
 public wrapItem(int n,
                 int f,
                 int s)
Initialization

Parameters:
n - the number
f - the flag
s - the subtype

Methods

 o checkMatch
 public void checkMatch(wrapItem other) throws LeaException
Throws various exceptions if the passed wrapItem is not the same as the present one

Parameters:
other - the wrapItem to be compared to the present one
 o type
 public int type()
Returns the type of the item, one of the constants RADIUS, POINT, LINE, CIRCLE from the @see constants interface

 o isFull
 public boolean isFull()
Returns:
true if the item is of subtype A_RADIUS, A_POINT, A_LINE, A_CIRCLE
 o typeNumber
 public int typeNumber()
Returns the number of the type of the item as follows: RADIUS=0, POINT=1, LINE=2, CIRCLE=3, or -1 if there is a problem.

 o toString
 public String toString()
Documents the contents of the wrapItem in the format exemplified by H3, A6!. The exclamamation point is used with and only with the NEW flag

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index