Class FlatRenderer.EdgeBucket
java.lang.Object
|
+--FlatRenderer.EdgeBucket
- Enclosing class:
- FlatRenderer
- protected static class FlatRenderer.EdgeBucket
- extends Object
The Edge table bucket for the EdgeTable.
- See Also:
FlatRenderer.EdgeTable
|
Field Summary |
protected List |
entries
The edges in this bucket. |
|
Method Summary |
void |
add(FlatRenderer.EdgeEntry newEdge)
Adds an entry into the bucket. |
List |
removeYMin(int y)
Removes entries from the bucket whose ymin == y. |
int |
size()
Returns the number of entries in the bucket. |
String |
toString()
Creates a human-readable String that displays the contents of this
object, for debugging purposes. |
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
entries
protected List entries
- The edges in this bucket. Contains instances of
EdgeEntry.
FlatRenderer.EdgeBucket
public FlatRenderer.EdgeBucket()
size
public int size()
- Returns the number of entries in the bucket.
add
public void add(FlatRenderer.EdgeEntry newEdge)
- Adds an entry into the bucket.
- Parameters:
newEdge - the new edge.
removeYMin
public List removeYMin(int y)
- Removes entries from the bucket whose ymin == y.
- Parameters:
y - the ymin values of the entries to be removed.- Returns:
- the entries removed, instances of BucketEntry.
toString
public String toString()
- Creates a human-readable String that displays the contents of this
object, for debugging purposes. It returns a string in the
following format:
B [ EdgeEntry values ... ]
- Overrides:
- toString in class Object