public class RoverBlock<T extends RoverShape> extends java.lang.Object implements Immutable, java.lang.Iterable<T>
In Rover binary formats, shapes are generally grouped into blocks with the same class and drawId and similar parameters. This class models those blocks.
Copyright 2009 Partner Software, Inc.
| Constructor and Description |
|---|
RoverBlock(int dataId,
T... shapes)
Creates a block from the given dataId and shapes.
|
RoverBlock(RoverBlockHeader header,
java.util.List<T> shapes)
Creates a block from the given header and shapes.
|
RoverBlock(RoverBlockHeader header,
T... shapes)
Creates a block from the given header and shapes.
|
RoverBlock(T shape)
Creates a block from the given shape, setting up the header correctly based on shape parameters.
|
| Modifier and Type | Method and Description |
|---|---|
RoverBlockHeader |
getHeader() |
java.util.Iterator<T> |
iterator() |
java.util.List<T> |
listShapes() |
public RoverBlock(int dataId,
T... shapes)
public RoverBlock(T shape)
shape - public RoverBlock(RoverBlockHeader header, T... shapes)
header - shapes - public RoverBlock(RoverBlockHeader header, java.util.List<T> shapes)
header - shapes - public RoverBlockHeader getHeader()
public java.util.List<T> listShapes()
public java.util.Iterator<T> iterator()
iterator in interface java.lang.Iterable<T extends RoverShape>