|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectview.DataCard
public class DataCard
A card consits of an VectorG plus an optional id and an activated flag. The
key returned by getKey() is guaranteed to never be null, even if the
data card was constructed with a null key, in which cas the position vector
is used as the id. The activation flag is per default false, it can be used
during plotting in a JDataCanvas.
| Field Summary | |
|---|---|
private boolean |
active
If this data card is activated. |
private static int |
id
|
private Object |
key
The key associated to this card. |
private VectorG |
point
The data point in user space. |
static String |
TAGGING
A property named for data tagging with a data card's key. |
| Constructor Summary | |
|---|---|
DataCard(VectorG xy,
Object id)
Construct a new card. |
|
DataCard(VectorG xy,
Object id,
boolean highlight)
Construct a new card. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object that)
Equal, if both fields are equal. |
Object |
getKey()
Returns the object id. |
VectorG |
getPoint()
Returns the point location. |
int |
hashCode()
VectorG hash, if the key was unspecified in the beginning. |
boolean |
isActive()
Returns the active flag. |
static Object |
nextID()
|
boolean |
setActive(boolean nuac)
Sets the active flag. |
boolean |
toggleActive()
Toggles the active flag, returns the new state. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String TAGGING
private VectorG point
private Object key
private boolean active
private static int id
| Constructor Detail |
|---|
public DataCard(VectorG xy,
Object id)
public DataCard(VectorG xy,
Object id,
boolean highlight)
| Method Detail |
|---|
public static Object nextID()
public VectorG getPoint()
public Object getKey()
public boolean isActive()
public boolean setActive(boolean nuac)
public boolean toggleActive()
public boolean equals(Object that)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||