twaver.gis
Interface GeographyLayer


public interface GeographyLayer

The interface defines a layer object.

A layer stores a lot of features which have the same type of default geometry. GeographyLayer controls all the properties which determine how to display a layer.

For example, if you want to hide the layer, you can use setLayerVisible(false). If you want to change the style of the layer, you should use setLayerComplexStyle(...) to set new style.

A layer is an aggregation of a collection of features, a Style. Through a layer object, you can access the attributes' names, features, and event the specific property of the layer style.


Field Summary
static java.lang.String IMAGELAYER_NAME
           
 
Method Summary
 java.awt.geom.Rectangle2D getLayerBounds()
          Gets the geographical bounds of the layer
 java.lang.String getTitle()
          Gets the title of the GeographyLayer.
 boolean isVisible()
          Indicates whether the layer is visible.
 void setLayerBounds(double minLongitude, double minLatitude, double maxLongitude, double maxLatitude)
          Sets the geographical bounds of the layer
 void setVisible(boolean value)
          Decides whether the layer is visible.
 

Field Detail

IMAGELAYER_NAME

public static final java.lang.String IMAGELAYER_NAME
See Also:
Constant Field Values
Method Detail

getLayerBounds

public java.awt.geom.Rectangle2D getLayerBounds()
Gets the geographical bounds of the layer

Returns:
the bounds of the layer

getTitle

public java.lang.String getTitle()
Gets the title of the GeographyLayer.

Returns:
the title of the GeographyLayer.

isVisible

public boolean isVisible()
Indicates whether the layer is visible.

Returns:
true if the layer is visible, false otherwise.
See Also:
setVisible(boolean)

setLayerBounds

public void setLayerBounds(double minLongitude,
                           double minLatitude,
                           double maxLongitude,
                           double maxLatitude)
Sets the geographical bounds of the layer

Parameters:
minLongitude - the minimum longitude of the bounds
minLatitude - the minimum latitude of the bounds
maxLongitude - the maximal longitude of the bounds
maxLatitude - the maximal latitude of the bounds

setVisible

public void setVisible(boolean value)
Decides whether the layer is visible.

Parameters:
value - true if you want to set the layer visible, false otherwise.
See Also:
isVisible()