edu.umd.cs.piccolox.nodes
Class PStyledText.RunInfo

java.lang.Object
  extended by edu.umd.cs.piccolox.nodes.PStyledText.RunInfo
Enclosing class:
PStyledText

protected static class PStyledText.RunInfo
extends Object

Simple class to represent an range within the document.


Constructor Summary
PStyledText.RunInfo(int runStart, int runLimit)
          Constructs a RunInfo representing the range within the document from runStart to runLimit.
 
Method Summary
 boolean isEmpty()
          Returns whether the run is empty.
 int length()
          Returns the length of the run.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PStyledText.RunInfo

public PStyledText.RunInfo(int runStart,
                           int runLimit)
Constructs a RunInfo representing the range within the document from runStart to runLimit.

Parameters:
runStart - starting index of the range
runLimit - ending index of the range
Method Detail

isEmpty

public boolean isEmpty()
Returns whether the run is empty.

Returns:
true is run is empty

length

public int length()
Returns the length of the run.

Returns:
length of run


Copyright © 1995-2010 Piccolo2D. All Rights Reserved.