|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gzz.impl.SimpleVStreamTexter
A simple referential CellTexter.
Field Summary | |
protected java.util.Map |
contents
|
Constructor Summary | |
SimpleVStreamTexter(SpanMaker spanMaker,
Enfilade1D.Maker enfMaker)
Create a new object with given new span maker. |
|
SimpleVStreamTexter(SpanMaker spanMaker,
Enfilade1D.Maker enfMaker,
EnfiladeAligner enfAligner)
Deprecated. EnfiladeAligner should not be provided by Space: it's too complicated and ill-defined for that. |
Method Summary | |
void |
copyText(Cell to,
int ind,
Cell from,
int begin,
int end)
Copy some text from one cell to another. |
void |
deleteText(Cell c,
int begin,
int end)
Delete a piece of text from a cell. |
java.util.Set |
getCellsWithContent()
The innermost routine that uses the actual map. |
Enfilade1D |
getEnfilade(Cell c,
Obs o)
Get the vstream in this cell. |
Index |
getEnfiladeOverlap()
Get an Index that, passed an enfilade or span,
returns all cells whose span content overlaps with the
passed enfilade or span. |
protected Enfilade1D |
getFromMap(Cell c)
The innermost routine that uses the actual map. |
StringSearcher |
getStringSearcher()
Get a StringSearcher that maps cells' texts to cells. |
java.lang.String |
getText(Cell c,
Obs o)
Return the vstream in this cell, merged into a single String. |
XuIndexer |
getXuIndexer()
XXX WRONG IMPLEMENTATION!!!!!!! |
void |
insertText(Cell c,
int ind,
java.lang.String s)
Insert the given string into the text in the cell C. |
void |
moveText(Cell to,
int ind,
Cell from,
int begin,
int end)
Move some text from one cell to another. |
void |
setEnfilade(Cell c,
Enfilade1D vstream)
Set the vstream in this cell. |
protected void |
setMap(Cell c,
Enfilade1D enf)
The innermost routine that uses the actual map. |
void |
setSpace(ModularSpace space)
Set the modularspace that this celltexter is part of. |
void |
setText(Cell c,
java.lang.String s)
Create a new text span and make it the vstream of this Cell . |
EnfiladeAligner.Instance |
startEnfiladeAligner(Cell c)
Create an enfilade aligner instance for the enfilade in a given cell. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Map contents
Constructor Detail |
public SimpleVStreamTexter(SpanMaker spanMaker, Enfilade1D.Maker enfMaker, EnfiladeAligner enfAligner)
spanMaker
- In order to perform setText() and insertText(),
this object needs to create new spans.
The spanMaker interface allows us to polymorphize that.public SimpleVStreamTexter(SpanMaker spanMaker, Enfilade1D.Maker enfMaker)
spanMaker
- In order to perform setText() and insertText(),
this object needs to create new spans.
The spanMaker interface allows us to polymorphize that.Method Detail |
public void setSpace(ModularSpace space)
ModularCellTexter
setSpace
in interface ModularCellTexter
protected Enfilade1D getFromMap(Cell c)
protected void setMap(Cell c, Enfilade1D enf)
public java.util.Set getCellsWithContent()
getCellsWithContent
in interface CellTexter
public final Enfilade1D getEnfilade(Cell c, Obs o)
VStreamCellTexter
null
.
getEnfilade
in interface VStreamCellTexter
public final void setEnfilade(Cell c, Enfilade1D vstream)
VStreamCellTexter
setEnfilade
in interface VStreamCellTexter
public EnfiladeAligner.Instance startEnfiladeAligner(Cell c)
VStreamCellTexter
startEnfiladeAligner
in interface VStreamCellTexter
public Index getEnfiladeOverlap()
IndexedVStreamCellTexter
Index
that, passed an enfilade or span,
returns all cells whose span content overlaps with the
passed enfilade or span.
getEnfiladeOverlap
in interface IndexedVStreamCellTexter
public XuIndexer getXuIndexer()
getXuIndexer
in interface IndexedVStreamCellTexter
public java.lang.String getText(Cell c, Obs o)
VStreamCellTexter
TextSpan
s in this
cell, in order. Cell
s and Span1D
s
that are not TextSpan
s are ignored.
getText
in interface VStreamCellTexter
public void setText(Cell c, java.lang.String s)
VStreamCellTexter
Cell
.
setText
in interface VStreamCellTexter
public void insertText(Cell c, int ind, java.lang.String s)
CellTexter
insertText
in interface CellTexter
public void deleteText(Cell c, int begin, int end)
CellTexter
deleteText
in interface CellTexter
Cell.deleteText
public void copyText(Cell to, int ind, Cell from, int begin, int end)
CellTexter
copyText
in interface CellTexter
public void moveText(Cell to, int ind, Cell from, int begin, int end)
CellTexter
moveText
in interface CellTexter
public StringSearcher getStringSearcher()
SearchableCellTexter
getStringSearcher
in interface SearchableCellTexter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |