gzz.view
Class Mark

java.lang.Object
  |
  +--gzz.view.Mark

public class Mark
extends java.lang.Object

An object representing a marked cell. This is used in the fallback client to represent one marked cell or marked part of a cell (= enfilade of spans). A mark set is represented as a Set of Mark objects.


Field Summary
 Cell cell
           
 Enfilade1D spans
          The marked span(s).
 
Constructor Summary
Mark(Cell cell)
           
Mark(Cell cell, Enfilade1D spans)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 Enfilade1D getEnfilade()
          Get the enfilade represented by this mark.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cell

public final Cell cell

spans

public final Enfilade1D spans
The marked span(s). This is null if no part of the cell's content has been marked specifically. If any part of the content has been marked, it is contained in this enfilade.

Constructor Detail

Mark

public Mark(Cell cell,
            Enfilade1D spans)

Mark

public Mark(Cell cell)
Method Detail

getEnfilade

public Enfilade1D getEnfilade()
Get the enfilade represented by this mark. If spans is not null, this is simply spans. If spans is null, this is the contents of the marked cell.


hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object