public class Vector_Rectangle extends GUIVector_Rectangle implements Serializable
Much faster because not synchronized and no cast Does not double in size each time
checkPoint, current_item, increment_size, max_size| Constructor and Description |
|---|
Vector_Rectangle() |
Vector_Rectangle(int number) |
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(Rectangle value)
add an item
|
void |
clear()
clear the array
|
Rectangle[] |
get()
extract underlying data
|
void |
restoreFromStream(ByteArrayInputStream bis)
restore the shapes from the input stream into this collections
|
void |
trim() |
void |
writeToStream(ByteArrayOutputStream bos)
writes out the shapes in this collection to the ByteArrayOutputStream
|
incrementSize, resetToCheckpoint, setCheckpoint, sizepublic Vector_Rectangle(int number)
public Vector_Rectangle()
public void writeToStream(ByteArrayOutputStream bos) throws IOException
NOT PART OF API and subject to change (DO NOT USE)
bos - - the ByteArrayOutputStream to write out toIOExceptionpublic void restoreFromStream(ByteArrayInputStream bis) throws IOException, ClassNotFoundException
NOT PART OF API and subject to change (DO NOT USE)
bis - - ByteArrayInputStream to read fromIOExceptionClassNotFoundExceptionpublic void addElement(Rectangle value)
public final void clear()
public final Rectangle[] get()
public void trim()
Copyright © 2017. All rights reserved.