nl.cloudfarming.client.area.field.shape
Class ShapeLayerObject

java.lang.Object
  extended by nl.cloudfarming.client.area.field.shape.ShapeLayerObject
All Implemented Interfaces:
LayerObject<com.vividsolutions.jts.geom.Geometry,Shape>

public class ShapeLayerObject
extends Object
implements LayerObject<com.vividsolutions.jts.geom.Geometry,Shape>

Author:
Timon Veenstra

Nested Class Summary
 
Nested classes/interfaces inherited from interface nl.cloudfarming.client.geoviewer.LayerObject
LayerObject.Actions
 
Constructor Summary
ShapeLayerObject(Shape shape)
           
 
Method Summary
 LayerObjectAction[] getActions()
           
 com.vividsolutions.jts.geom.Geometry getGeometry()
           
 Long getId()
           
 String getKey()
           
 Object getKeyAttributeValue()
           
 Shape getObject()
           
 String getTooltipText()
           
 void save()
          Shapes should not be persisted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShapeLayerObject

public ShapeLayerObject(Shape shape)
Method Detail

getObject

public Shape getObject()
Specified by:
getObject in interface LayerObject<com.vividsolutions.jts.geom.Geometry,Shape>

getGeometry

public com.vividsolutions.jts.geom.Geometry getGeometry()
Specified by:
getGeometry in interface LayerObject<com.vividsolutions.jts.geom.Geometry,Shape>

getKey

public String getKey()
Specified by:
getKey in interface LayerObject<com.vividsolutions.jts.geom.Geometry,Shape>

getKeyAttributeValue

public Object getKeyAttributeValue()
Specified by:
getKeyAttributeValue in interface LayerObject<com.vividsolutions.jts.geom.Geometry,Shape>

getTooltipText

public String getTooltipText()
Specified by:
getTooltipText in interface LayerObject<com.vividsolutions.jts.geom.Geometry,Shape>

getId

public Long getId()
Specified by:
getId in interface LayerObject<com.vividsolutions.jts.geom.Geometry,Shape>

getActions

public LayerObjectAction[] getActions()
Specified by:
getActions in interface LayerObject<com.vividsolutions.jts.geom.Geometry,Shape>

save

public void save()
Shapes should not be persisted. Therefore Shape.java does not implement persistable and LayerObjectNode will not add the savecookie to the explorerDataProvider. This save method should never be actually called.

Specified by:
save in interface LayerObject<com.vividsolutions.jts.geom.Geometry,Shape>


Copyright © 2011. All Rights Reserved.