|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector
org.kaboum.util.KaboumList
org.kaboum.geom.KaboumGGDIndex
public class KaboumGGDIndex
This class define an indexed KaboumList of KaboumGeometryGlobalDescriptor.
| Field Summary | |
|---|---|
static int |
onTopID
The geometry with identificator unpaintID is not paint |
static int |
RESERVED_ID
CONSTANT : RESERVED ID |
| Fields inherited from class java.util.Vector |
|---|
capacityIncrement, elementCount, elementData |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
KaboumGGDIndex(Kaboum parent)
Default Constructor |
|
KaboumGGDIndex(Kaboum parent,
KaboumExtent extent)
Default Constructor |
|
| Method Summary | |
|---|---|
KaboumGeometryGlobalDescriptor |
addGeometry(int id,
KaboumGeometry geometry,
KaboumGeometryDisplayDescriptor dd,
KaboumGeometryPropertiesDescriptor pd,
java.awt.Color color)
Add a geometry object |
KaboumGeometryGlobalDescriptor |
getGGD(int id)
Return the position of geometry with identifier id |
int |
getGGDIndex(int id)
Return the position of geometry with identifier id |
KaboumGeometryGlobalDescriptor[] |
getVisibleGeometries()
Return the array of visible objects within the current extent |
void |
paint(java.awt.Graphics g)
This method only paint objects that lie into the current extent. |
void |
paintTooltip(java.awt.Graphics g,
java.awt.Point mp)
This method paint tooltip box corresponding to geometry lying under the mouse cursor. |
void |
reconstructVisibleGeometries()
Reconstruct the visible KaboumList according to the current extent |
void |
removeAllGeometries()
Remove all the elements from this geoObject |
void |
removeAllGeometries(KaboumGeometryPropertiesDescriptor tmpPD)
Remove all the elements from this geoObject linked with input Properties Descriptor |
boolean |
removeGeometry(int id)
Remove an element from this Array. |
void |
setExtent(KaboumExtent extent)
Set the new extent |
void |
shiftDown(int id)
Shift one unit down geometry with identifier id |
void |
shiftOnBottom(int id)
Move geometry with identifier id on bottom of the KaboumList. |
void |
shiftOnTop(int id)
Move geometry with identifier id on top of the KaboumList. |
void |
shiftUp(int id)
Shift one unit up geometry with identifier id |
| Methods inherited from class org.kaboum.util.KaboumList |
|---|
toCoordinateArray, toGeometryArray, toKaboumList, toLinearRingArray, toLineStringArray, toMultiLineStringArray, toMultiPointArray, toMultiPolygonArray, toPointArray, toPolygonArray |
| Methods inherited from class java.util.Vector |
|---|
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
iterator, listIterator, listIterator |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
iterator, listIterator, listIterator |
| Field Detail |
|---|
public static final int RESERVED_ID
public static int onTopID
| Constructor Detail |
|---|
public KaboumGGDIndex(Kaboum parent,
KaboumExtent extent)
extent - Current extent viewpublic KaboumGGDIndex(Kaboum parent)
| Method Detail |
|---|
public void setExtent(KaboumExtent extent)
public void reconstructVisibleGeometries()
public KaboumGeometryGlobalDescriptor[] getVisibleGeometries()
public boolean removeGeometry(int id)
id - Id of the element to removepublic void removeAllGeometries()
public void removeAllGeometries(KaboumGeometryPropertiesDescriptor tmpPD)
public KaboumGeometryGlobalDescriptor addGeometry(int id,
KaboumGeometry geometry,
KaboumGeometryDisplayDescriptor dd,
KaboumGeometryPropertiesDescriptor pd,
java.awt.Color color)
id - Unique idpublic KaboumGeometryGlobalDescriptor getGGD(int id)
id - Identifierpublic int getGGDIndex(int id)
id - Identifierpublic void shiftUp(int id)
id - identifier of the geometrypublic void shiftDown(int id)
id - identifier of the geometrypublic void shiftOnTop(int id)
id - identifier of the geometrypublic void shiftOnBottom(int id)
id - identifier of the geometry
public void paintTooltip(java.awt.Graphics g,
java.awt.Point mp)
g - Graphical contextmp - Mouse positionpublic void paint(java.awt.Graphics g)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||