Class PolygonData
java.lang.Object
|
+----framework.ModuleData
|
+----PolygonData
- class PolygonData
- extends ModuleData
- implements Data
A class that can be used as super class by all classes that have Polygon
data.
-
polyPointNames
-
-
polyPoints
- Polygon points.
-
PolygonData()
-
-
copyPolyPoints()
- Make a copy of the polyPoints.
-
display(String, String)
- Display the polygon points in a display window.
-
getLoadTags()
- Define the valid extensions that files of this data type may use
when loading data from disk.
-
getNrOfPolygonElements()
-
-
getPolyPointNames()
- Get the polyPoint names array.
-
getPolyPoints()
- Get the polyPoints data array.
-
getSaveTags()
- Define the valid extensions that files of this data type may use
when saving data to disk.
-
load(String)
- Load the PolygonData points from disk.
-
load1DimIntegerArray(StreamTokenizer)
- Load a single dimensional polygon integer array from disk.
-
makePolyPoints(int)
- Create the polyPoints data array.
-
save(String)
- Save the PolygonData points to disk.
-
save1DimIntegerArray(DataOutputStream, int[])
- Save the size of the array and a single dimensional polygon integer
array to disk.
-
toString()
-
polyPoints
int polyPoints[]
- Polygon points.
polyPointNames
String polyPointNames[]
PolygonData
PolygonData()
getPolyPoints
public int[] getPolyPoints()
- Get the polyPoints data array.
getPolyPointNames
public String[] getPolyPointNames()
- Get the polyPoint names array.
makePolyPoints
public void makePolyPoints(int nr)
- Create the polyPoints data array.
getNrOfPolygonElements
public int getNrOfPolygonElements()
copyPolyPoints
public int[] copyPolyPoints()
- Make a copy of the polyPoints.
getLoadTags
protected String[] getLoadTags()
- Define the valid extensions that files of this data type may use
when loading data from disk.
- Overrides:
- getLoadTags in class ModuleData
getSaveTags
protected String[] getSaveTags()
- Define the valid extensions that files of this data type may use
when saving data to disk.
- Overrides:
- getSaveTags in class ModuleData
load1DimIntegerArray
protected int[] load1DimIntegerArray(StreamTokenizer st) throws IOException
- Load a single dimensional polygon integer array from disk.
- Returns:
- the polygon integer array that contains the data.
save1DimIntegerArray
protected void save1DimIntegerArray(DataOutputStream dos,
int data[]) throws IOException
- Save the size of the array and a single dimensional polygon integer
array to disk.
- Parameters:
- the - polygon integer array that must be saved to disk.
load
public void load(String filename) throws FileNotFoundException, IOException
- Load the PolygonData points from disk.
- Overrides:
- load in class ModuleData
save
public void save(String filename) throws FileNotFoundException, IOException
- Save the PolygonData points to disk.
- Overrides:
- save in class ModuleData
display
public DataVisualisation display(String title,
String filename)
- Display the polygon points in a display window.
- Overrides:
- display in class ModuleData
toString
public String toString()
- Overrides:
- toString in class Object