|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgistoolkit.datasources.GISDataset
Container for shapes and associated attribute data.
This class contains a collection of records.
Field Summary | |
protected java.lang.String[] |
myAttributeNames
Collection of names for attribute data. |
protected Envelope |
myEnvelope
Bounds of the data in the geo dataset. |
protected java.util.Vector |
myVectRecords
Vector of object arrays for the attributes. |
Constructor Summary | |
GISDataset()
Layer constructor comment. |
|
GISDataset(Record[] inRecords)
Create a new Dataset with the given records. |
|
GISDataset(java.lang.String[] inAttributeNames)
Create a new layer with the given number of attributes. |
|
GISDataset(java.lang.String[] inAttributeNames,
AttributeType[] inAttributeTypes)
Create a new Dataset with the given number and type of attributes. |
Method Summary | |
void |
add(java.lang.Object[] inAttributeValues,
Shape inShape)
Add a data item to the list . |
void |
add(Record inRecord)
Add a data item to the list . |
java.lang.Object |
clone()
Make a deep copy of this data set. |
int |
getAttributeCount()
Return the number of attributes. |
java.lang.String |
getAttributeName(int inIndex)
Return the attribute name at the given index. |
java.lang.String[] |
getAttributeNames()
Return the attribute names. |
AttributeType |
getAttributeType(int inIndex)
Return the attribute type at the given index. |
AttributeType[] |
getAttributeTypes()
Return teh attribute types. |
java.lang.Object |
getAttributeValue(int inRow,
int inCol)
Return the attribute at the given offset. |
java.lang.Object[] |
getAttributeValues(int inRow)
Return the attributes at the given offset. |
Envelope |
getEnvelope()
Return the Envelope of the data in the dataset. |
int |
getIndex(Shape inShape)
If the shape is contained within the data set, this returns the index of the first instance of that shape. |
int |
getNumShapes()
Deprecated. This method is being deprecated in vavor of size(); |
Record |
getRecord(int inIndex)
Returns the record for the current selected dataset. |
int |
getRecordCount()
Return the number of recordsd in this layer. |
Record[] |
getRecords()
Returns the records within this dataset |
Shape |
getShape(int index)
Return the shape at the given index. |
Point |
getSnappedPoint(double worldX,
double worldY,
Converter tempConverter)
Return the snapped Point to this dataset |
protected void |
resetEnvelope()
Used to recalculate the envelope when the dataset is reprojected. |
int |
size()
Return the number of recordsd in this layer. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String[] myAttributeNames
protected java.util.Vector myVectRecords
protected Envelope myEnvelope
Constructor Detail |
public GISDataset()
public GISDataset(java.lang.String[] inAttributeNames)
public GISDataset(java.lang.String[] inAttributeNames, AttributeType[] inAttributeTypes)
public GISDataset(Record[] inRecords)
Method Detail |
public java.lang.Object clone()
public void add(java.lang.Object[] inAttributeValues, Shape inShape)
public void add(Record inRecord)
public int getAttributeCount()
public java.lang.String getAttributeName(int inIndex)
public AttributeType getAttributeType(int inIndex)
public java.lang.String[] getAttributeNames()
public AttributeType[] getAttributeTypes()
public java.lang.Object getAttributeValue(int inRow, int inCol)
public java.lang.Object[] getAttributeValues(int inRow)
public Envelope getEnvelope()
protected void resetEnvelope()
public int getNumShapes()
public int getRecordCount()
public int size()
public Record getRecord(int inIndex)
public Record[] getRecords()
public Shape getShape(int index)
public int getIndex(Shape inShape)
public Point getSnappedPoint(double worldX, double worldY, Converter tempConverter)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |