|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.unibi.techfak.misc.Marker
public class Marker
This class is the implementation of the Markable
interface.
| Field Summary | |
|---|---|
private int |
mark
The mark variable containing the markers set. |
| Fields inherited from interface de.unibi.techfak.misc.Markable |
|---|
MARK_BASIC, MARK_DELETED, MARK_EXP, MARK_MOVED, MARK_REPLACED, MARK_SELECTED, MARK_TOBEDELETED, MARK_TOBEMOVED, MARK_TOBEREPLACED |
| Constructor Summary | |
|---|---|
Marker()
|
|
| Method Summary | |
|---|---|
void |
clearMark()
The mark of the object is cleared, thus it is not marked anymore. |
void |
clearMark(int mark)
Clears a special mark. |
int |
getMark()
Gets the complete mark for the object. |
boolean |
isMarked()
Tests, whether any mark is set. |
boolean |
isMarked(int mark)
Tests a special mark, whether it is set. |
void |
setMark(int mark)
Sets a mark for the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int mark
| Constructor Detail |
|---|
public Marker()
| Method Detail |
|---|
public void setMark(int mark)
Markable
setMark in interface Markablemark - The mark to set.public int getMark()
Markable
getMark in interface Markablepublic void clearMark(int mark)
Markable
clearMark in interface Markablemark - The mark to be deleted.public void clearMark()
MarkableisMarked() and
isMarked(int) should return false.
clearMark in interface MarkableMarkable.isMarked(),
Markable.isMarked(int)public boolean isMarked()
Markable
isMarked in interface Markabletrue iff a mark is set, false
otherwise.public boolean isMarked(int mark)
Markable
isMarked in interface Markablemark - The mark to be tested.
true iff the mark is set, false
otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||