|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.ui.graphics.ShapeSortList
public final class ShapeSortList
Provides a sortable list to hold shapes.
Constructor Summary | |
---|---|
ShapeSortList()
|
Method Summary | |
---|---|
void |
add(IShape shape)
Add the given shape. |
protected void |
checkSort()
Make sure the data is sorted. |
void |
clear()
Clear all shapes. |
void |
computeScreenPoints(Quaternion q,
Vector v,
double magnify,
int offsetX,
int offsetY,
double d)
Compute the screen points for all shapes. |
IShape |
get(int index)
Return the shape at the given index. |
boolean |
isEmpty()
Return true if this is empty. |
Iterator |
iterator()
Return an iterator over the shapes. |
void |
remove(IShape shape)
Remove the given shape. |
void |
setSorted(boolean flag)
Set the sorted flag. |
int |
size()
Return the size. |
Iterator |
sortedIterator()
Return an iterator over the shapes in sorted order. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShapeSortList()
Method Detail |
---|
public void add(IShape shape)
public void clear()
public void computeScreenPoints(Quaternion q, Vector v, double magnify, int offsetX, int offsetY, double d)
q
- The parent quaternion.magnify
- The magnification.offsetX
- The offset X coordinate.offsetY
- The offset Y coordinate.d
- Perspective constant.public IShape get(int index)
public boolean isEmpty()
public Iterator iterator()
sortedIterator
.
sortedIterator()
public void remove(IShape shape)
public void setSorted(boolean flag)
public int size()
public Iterator sortedIterator()
protected void checkSort()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |