gistoolkit.server
Class LayerDefinition

java.lang.Object
  extended bygistoolkit.server.LayerDefinition

public class LayerDefinition
extends java.lang.Object

Holds information for a layer.


Constructor Summary
LayerDefinition()
          Creates new LayerDefinition
LayerDefinition(java.lang.String inName)
          Creates new LayerDefinition
 
Method Summary
 void addStyle(Style inStyle)
          Add a given style to the list of available styles.
 DataSource getDataSource()
          Get the data source to use with this layer definition.
 Projection getFromProjection()
           
 Envelope getLatLonEnvelope()
          Get the maximum Envelope of the map in Latitude and longitude.
 Layer getLayer()
          Returns the layer.
 Layer getLayer(java.lang.String inStyle)
          Returns the layer with the given definition and style.
 java.lang.String getLayerName()
          Get the name of the layer.
 java.lang.String getLayerTitle()
          Get the name of the layer.
 double getMaxDisplayDistance()
          This layer will only be drawn if the width of the view is less than this distance.
 double getMaxLabelDistance()
          This label will only be drawn if the width of the view is less than this distance.
 double getMinDisplayDistance()
          This layer will only be drawn if the width of the view is greater than this distance.
 double getMinLabelDistance()
          This label will only be drawn if the width of the view is greater than this distance.
 Style getStyle(java.lang.String inStyleName)
          Retrieve the style with this name from the list of available styles.
 Style[] getStyles()
          Retrieve a list of the available styles for this layer.
 void removeStyle(Style inStyle)
          Remove a given style from the list of available styles.
 void setDataSource(DataSource inDataSource)
          Set the data source to use with this layer definition.
 void setFromProjection(Projection inProjection)
          Set the from projection to use for this layer.
 void setLatLonEnvelope(Envelope inEnvelope)
          Set the maximum extends of the map in latitude and logitude.
 void setLayerName(java.lang.String inLayerName)
          Set the name of the layer.
 void setLayerTitle(java.lang.String inLayerTitle)
          Set the name of the layer.
 void setMaxDisplayDistance(double inMaxDisplayDistance)
          This layer will only be drawn if the width of the view is less than this distance.
 void setMaxLabelDistance(double inMaxLabelDistance)
          This label will only be drawn if the width of the view is less than this distance.
 void setMinDisplayDistance(double inMinDisplayDistance)
          This layer will only be drawn if the width of the view is greater than this distance.
 void setMinLabelDistance(double inMinLabelDistance)
          This label will only be drawn if the width of the view is greater than this distance.
protected  void setProjection(Projection inProjection)
          Set the projection to use for this layer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayerDefinition

public LayerDefinition()
Creates new LayerDefinition


LayerDefinition

public LayerDefinition(java.lang.String inName)
Creates new LayerDefinition

Method Detail

setLayerName

public void setLayerName(java.lang.String inLayerName)
Set the name of the layer.


getLayerName

public java.lang.String getLayerName()
Get the name of the layer.


setLayerTitle

public void setLayerTitle(java.lang.String inLayerTitle)
Set the name of the layer.


getLayerTitle

public java.lang.String getLayerTitle()
Get the name of the layer.


setMaxDisplayDistance

public void setMaxDisplayDistance(double inMaxDisplayDistance)
This layer will only be drawn if the width of the view is less than this distance.


getMaxDisplayDistance

public double getMaxDisplayDistance()
This layer will only be drawn if the width of the view is less than this distance.


setMinDisplayDistance

public void setMinDisplayDistance(double inMinDisplayDistance)
This layer will only be drawn if the width of the view is greater than this distance.


getMinDisplayDistance

public double getMinDisplayDistance()
This layer will only be drawn if the width of the view is greater than this distance.


setMaxLabelDistance

public void setMaxLabelDistance(double inMaxLabelDistance)
This label will only be drawn if the width of the view is less than this distance.


getMaxLabelDistance

public double getMaxLabelDistance()
This label will only be drawn if the width of the view is less than this distance.


setMinLabelDistance

public void setMinLabelDistance(double inMinLabelDistance)
This label will only be drawn if the width of the view is greater than this distance.


getMinLabelDistance

public double getMinLabelDistance()
This label will only be drawn if the width of the view is greater than this distance.


setLatLonEnvelope

public void setLatLonEnvelope(Envelope inEnvelope)
Set the maximum extends of the map in latitude and logitude.


getLatLonEnvelope

public Envelope getLatLonEnvelope()
Get the maximum Envelope of the map in Latitude and longitude.


setDataSource

public void setDataSource(DataSource inDataSource)
Set the data source to use with this layer definition.


getDataSource

public DataSource getDataSource()
Get the data source to use with this layer definition.


setFromProjection

public void setFromProjection(Projection inProjection)
                       throws java.lang.Exception
Set the from projection to use for this layer.

Throws:
java.lang.Exception

getFromProjection

public Projection getFromProjection()

addStyle

public void addStyle(Style inStyle)
Add a given style to the list of available styles.


removeStyle

public void removeStyle(Style inStyle)
Remove a given style from the list of available styles.


getStyles

public Style[] getStyles()
Retrieve a list of the available styles for this layer.


getStyle

public Style getStyle(java.lang.String inStyleName)
Retrieve the style with this name from the list of available styles. Returns null if style is not found.


setProjection

protected void setProjection(Projection inProjection)
                      throws java.lang.Exception
Set the projection to use for this layer.

Throws:
java.lang.Exception

getLayer

public Layer getLayer()
               throws java.lang.Exception
Returns the layer.

Throws:
java.lang.Exception

getLayer

public Layer getLayer(java.lang.String inStyle)
               throws java.lang.Exception
Returns the layer with the given definition and style.

Throws:
java.lang.Exception