public class Terrain extends ZoneTerrain
Constructor and Description |
---|
Terrain() |
Terrain(int width,
int height) |
Modifier and Type | Method and Description |
---|---|
void |
addZones(_Zone new_object)
Add a Zones object to the zonesVector List
|
_Zone |
getZone(java.awt.Point p)
Retourne la plus petite zone dans laquelle se trouve le point
|
java.util.ArrayList<_Zone> |
getZonesList()
Get the List of Zones objects held by zonesVector
|
void |
removeZones(_Zone new_object)
Remove a Zones object from zonesVector List
|
void |
sort()
Trier les zones par surface (simple tri par insertion)
|
void |
sortDec()
Inverser l'ordre du tri
|
java.lang.String |
toString()
Méthode toString
|
addEmbut, centreGavite, compareTo, contains, divisionNbrZones, getTypeZone, reductionPct, setTypeZone, surface
add, add, add, contains, contains, contains, contains, createIntersection, createUnion, equals, getBounds, getBounds2D, getHeight, getLocation, getSize, getWidth, getX, getY, grow, inside, intersection, intersects, isEmpty, move, outcode, reshape, resize, setBounds, setBounds, setLocation, setLocation, setRect, setSize, setSize, translate, union
add, add, add, contains, contains, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, union
public Terrain()
public Terrain(int width, int height)
width
- height
- public void addZones(_Zone new_object)
public void removeZones(_Zone new_object)
public java.util.ArrayList<_Zone> getZonesList()
public _Zone getZone(java.awt.Point p)
p
- Pointpublic void sort()
public void sortDec()
sort()
public java.lang.String toString()
_Zone
toString
in interface _Zone
toString
in class ZoneTerrain