nl.cloudfarming.client.area.field
Class FieldLayerObject

java.lang.Object
  extended by nl.cloudfarming.client.area.field.FieldLayerObject
All Implemented Interfaces:
Geographical<com.vividsolutions.jts.geom.MultiPolygon>, Geometrical<com.vividsolutions.jts.geom.MultiPolygon,Field>

public class FieldLayerObject
extends Object
implements Geometrical<com.vividsolutions.jts.geom.MultiPolygon,Field>

LayerObject representing a plot

Author:
Timon Veenstra

Nested Class Summary
 
Nested classes/interfaces inherited from interface nl.cloudfarming.client.geoviewer.Geographical
Geographical.Actions
 
Constructor Summary
FieldLayerObject(Field field)
           
 
Method Summary
 GeographicalAction[] getActions()
           
 com.vividsolutions.jts.geom.Point getCentroid()
           
 com.vividsolutions.jts.geom.MultiPolygon getGeometry()
           
 long getId()
           
 String getKey()
           
 Long getKeyAttributeValue()
           
 Field getObject()
           
protected  AreaService getPlotAreaService()
          Returns the service this class is using.
 com.vividsolutions.jts.geom.MultiPolygon getRenderObject(com.vividsolutions.jts.geom.Envelope envelope)
           
 String getTooltipText()
           
protected  void setPlotAreaService(AreaService service)
          Returns the service this class is using.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldLayerObject

public FieldLayerObject(Field field)
                 throws IntrospectionException
Throws:
IntrospectionException
Method Detail

getGeometry

public com.vividsolutions.jts.geom.MultiPolygon getGeometry()
Specified by:
getGeometry in interface Geometrical<com.vividsolutions.jts.geom.MultiPolygon,Field>
Returns:
The Geometry of type MultiPolygon
See Also:
LayerObject

getObject

public Field getObject()
Specified by:
getObject in interface Geometrical<com.vividsolutions.jts.geom.MultiPolygon,Field>
Returns:
The Object of type Field this LayerObject is representing
See Also:
LayerObject

getKey

public String getKey()
Specified by:
getKey in interface Geometrical<com.vividsolutions.jts.geom.MultiPolygon,Field>
Returns:
Key as String
See Also:
LayerObject

getKeyAttributeValue

public Long getKeyAttributeValue()
Specified by:
getKeyAttributeValue in interface Geometrical<com.vividsolutions.jts.geom.MultiPolygon,Field>

getTooltipText

public String getTooltipText()
Specified by:
getTooltipText in interface Geographical<com.vividsolutions.jts.geom.MultiPolygon>
Returns:
TooltipText as String
See Also:
LayerObject

getId

public long getId()
Specified by:
getId in interface Geographical<com.vividsolutions.jts.geom.MultiPolygon>
Returns:
The Id of the wrapped object
See Also:
LayerObject

getActions

public GeographicalAction[] getActions()
Specified by:
getActions in interface Geographical<com.vividsolutions.jts.geom.MultiPolygon>
Returns:
Array with actions for this LayerObject
See Also:
LayerObject

getPlotAreaService

protected final AreaService getPlotAreaService()
Returns the service this class is using. Primarily used for unittesting.

Returns:
(PlotArea) Service this class is using

setPlotAreaService

protected void setPlotAreaService(AreaService service)
Returns the service this class is using. Primarily used for unittesting.

Parameters:
service - (PlotArea) Service this class should be using

getRenderObject

public com.vividsolutions.jts.geom.MultiPolygon getRenderObject(com.vividsolutions.jts.geom.Envelope envelope)
Specified by:
getRenderObject in interface Geographical<com.vividsolutions.jts.geom.MultiPolygon>

getCentroid

public com.vividsolutions.jts.geom.Point getCentroid()
Specified by:
getCentroid in interface Geographical<com.vividsolutions.jts.geom.MultiPolygon>


Copyright © 2011. All Rights Reserved.