|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgistoolkit.display.Layer
Represents a layer of the rendered map.
Constructor Summary | |
Layer()
Creates a new layer without a datasource. |
|
Layer(DataSource inDataSource)
Create the layer with a new datasource. |
Method Summary | |
void |
addLayerListener(LayerListener inListener)
Add a Layer Listener to the vector of listeners. |
void |
commit()
Commit any changes to this layer. |
void |
delete(Record inRecord)
Deletes the data in the data source. |
void |
drawHighlight(Record inRecord,
java.awt.Graphics inGraphics,
Converter inConverter)
Draw the layer on the map with the given bounds |
void |
drawLayer(java.awt.Graphics g,
Converter inConverter)
Draw the layer on the map with the given bounds |
java.lang.String[] |
getAttributeNames()
Retrieve the array of attribute names |
AttributeType[] |
getAttributeTypes()
Retrieve the array of attribute types |
GISDataset |
getDataset()
Return the currently displayed dataset. |
DataSource |
getDataSource()
Retrieve the data source from the layer |
Envelope |
getEnvelope()
Returns the bounding rectangle of the layer |
Filter |
getFilter()
Gets the filter in use with this datasource. |
Projection |
getFromProjection()
Retrieve the from projection in use with this layer |
java.lang.String |
getLayerName()
Returns the name of this layer. |
java.awt.image.BufferedImage |
getLegend()
Retrieve the legend from the style |
double |
getMaxDistance()
Gets the maximum distance this at which this layer is drawn. |
double |
getMaxLabelDistance()
Get the maximum distance at which this layer should allow labeling. |
double |
getMinDistance()
Gets the minimum distance at which this layer is drawn. |
double |
getMinLabelDistance()
Get the minimum distance at which this layer should allow labeling. |
Node |
getNode()
Retrieve the configuration information for this layer. |
Record |
getObjectContaining(Shape inShape)
Returns the record of the shape containing this shape. |
Projection |
getProjection()
Retrieve the projection in use with this layer |
Record[] |
getRecords()
Returns all the currently displayed records |
Style |
getStyle()
Insert the method's description here. |
void |
insert(Record inRecord)
Inserts the data in the data source. |
boolean |
isDirty()
Returns true if the layer has been updated and not committed or rolled back. |
boolean |
isUpdateable()
Determines if this layer is currently updateable or not. |
boolean |
isVisible()
returns true if the layer is currently visible. |
void |
labelLayer(java.awt.Graphics g,
Converter inConverter)
Draw the label on the map with the given bounds |
void |
removeLayerListener(LayerListener inListener)
removes a Layer Listener from the vector of Lisetners. |
void |
rollback()
Rollback any changes to this layer. |
void |
setDataSource(DataSource inDataSource)
Set the data source for the layer |
void |
setFilter(Filter inFilter)
Sets the filter to use with this dataset. |
void |
setFromProjection(Projection inProjection)
Sets the projection to use when rendering this particular layer. |
void |
setLayerName(java.lang.String newLayerName)
Sets the name of this layer. |
void |
setMaxDistance(double inMaxDistance)
Sets the maximum distance at which this layer is drawn. |
void |
setMaxLabelDistance(double inMaxLabelDistance)
Set the maximum distance at which this layer should allow labeling. |
void |
setMinDistance(double inMinDistance)
Sets the minimum distance at which this layer is drawn. |
void |
setMinLabelDistance(double inMinLabelDistance)
Set the minimum distance at which this layer should allow labeling. |
void |
setNode(Node inNode)
Set the configuraiton information for this layer. |
void |
setProjection(Projection inProjection,
boolean inCacheProjected)
Sets the projection to use when rendering this particular layer. |
void |
setStyle(Style newStyle)
Sets the style for this layer to use. |
void |
setUpdateable(boolean inUpdateable)
Sets the flag to indicate that this layer is not updateable. |
void |
setVisible(boolean inVisible)
Sets the value of the layer is visible flag. |
java.lang.String |
toString()
Insert the method's description here. |
void |
update(Record inRecord)
Updates the data in the data source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Layer()
public Layer(DataSource inDataSource)
Method Detail |
public boolean isDirty()
public void addLayerListener(LayerListener inListener)
public void removeLayerListener(LayerListener inListener)
public DataSource getDataSource()
public void setDataSource(DataSource inDataSource)
public boolean isVisible()
public void setVisible(boolean inVisible)
public void setMaxDistance(double inMaxDistance)
public double getMaxDistance()
public void setMinDistance(double inMinDistance)
public double getMinDistance()
public double getMaxLabelDistance()
public void setMaxLabelDistance(double inMaxLabelDistance)
public double getMinLabelDistance()
public void setMinLabelDistance(double inMinLabelDistance)
public void delete(Record inRecord) throws java.lang.Exception
java.lang.Exception
public void drawHighlight(Record inRecord, java.awt.Graphics inGraphics, Converter inConverter)
public void drawLayer(java.awt.Graphics g, Converter inConverter)
public void labelLayer(java.awt.Graphics g, Converter inConverter)
public Envelope getEnvelope() throws java.lang.Exception
java.lang.Exception
public java.lang.String getLayerName()
public Record getObjectContaining(Shape inShape) throws java.lang.Exception
java.lang.Exception
public Style getStyle()
public void insert(Record inRecord) throws java.lang.Exception
java.lang.Exception
public void setLayerName(java.lang.String newLayerName)
public void setStyle(Style newStyle)
public java.lang.String toString()
public void update(Record inRecord) throws java.lang.Exception
java.lang.Exception
public void commit() throws java.lang.Exception
java.lang.Exception
public void rollback() throws java.lang.Exception
java.lang.Exception
public boolean isUpdateable()
public void setUpdateable(boolean inUpdateable)
public void setProjection(Projection inProjection, boolean inCacheProjected) throws java.lang.Exception
java.lang.Exception
public void setFromProjection(Projection inProjection) throws java.lang.Exception
java.lang.Exception
public Projection getProjection()
public Projection getFromProjection()
public java.lang.String[] getAttributeNames()
public AttributeType[] getAttributeTypes()
public java.awt.image.BufferedImage getLegend()
public Node getNode()
public void setNode(Node inNode) throws java.lang.Exception
java.lang.Exception
public GISDataset getDataset()
public void setFilter(Filter inFilter)
public Filter getFilter()
public Record[] getRecords()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |