// (c) Tuomas J. Lukka package org.nongnu.alph.impl; import org.nongnu.alph.*; import org.nongnu.alph.util.*; import org.nongnu.storm.*; public class StdTextSpan extends AbstractSpan1D implements TextSpan, java.io.Serializable { StdTextSpan(TextScrollBlock scrollBlock, int offs0, int offs1) { super(scrollBlock, offs0, offs1); } protected AbstractSpan1D createNew(int offs0, int offs1) { return new StdTextSpan((TextScrollBlock)scrollBlock, offs0, offs1); } public String getText() { TextScrollBlock scrollBlock = (TextScrollBlock)this.scrollBlock; return new String(scrollBlock.getCharArray(), offs0, offs1-offs0); } }