Class LayerAppearance
- java.lang.Object
-
- de.terrestris.shoguncore.model.PersistentObject
-
- de.terrestris.shoguncore.model.layer.appearance.LayerAppearance
-
- All Implemented Interfaces:
java.io.Serializable
@Entity public class LayerAppearance extends PersistentObject
This class holds the appearance properties of a layerLayerObject- Author:
- Andre Henn, terrestris GmbH & Co. KG
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LayerAppearance()LayerAppearance(java.lang.String attribution, java.lang.String name, java.lang.Double maxResolution, java.lang.Double minResolution, java.lang.Double opacity, java.lang.Boolean visible)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetAttribution()java.lang.BooleangetHoverable()java.lang.StringgetHoverTemplate()java.lang.DoublegetMaxResolution()java.lang.DoublegetMinResolution()java.lang.StringgetName()java.lang.DoublegetOpacity()java.util.Map<java.lang.String,java.lang.Object>getProperties()java.lang.BooleangetVisible()inthashCode()voidsetAttribution(java.lang.String attribution)voidsetHoverable(java.lang.Boolean hoverable)voidsetHoverTemplate(java.lang.String hoverTemplate)voidsetMaxResolution(java.lang.Double maxResolution)voidsetMinResolution(java.lang.Double minResolution)voidsetName(java.lang.String name)voidsetOpacity(java.lang.Double opacity)voidsetProperties(java.util.Map<java.lang.String,java.lang.Object> properties)voidsetVisible(java.lang.Boolean visible)-
Methods inherited from class de.terrestris.shoguncore.model.PersistentObject
getCreated, getGroupPermissions, getId, getModified, getUserPermissions, setGroupPermissions, setModified, setUserPermissions, toString
-
-
-
-
Constructor Detail
-
LayerAppearance
public LayerAppearance()
-
LayerAppearance
public LayerAppearance(java.lang.String attribution, java.lang.String name, java.lang.Double maxResolution, java.lang.Double minResolution, java.lang.Double opacity, java.lang.Boolean visible)- Parameters:
attribution-name-maxResolution-minResolution-opacity-visible-
-
-
Method Detail
-
getAttribution
public java.lang.String getAttribution()
- Returns:
- the attribution
-
setAttribution
public void setAttribution(java.lang.String attribution)
- Parameters:
attribution- the attribution to set
-
getHoverable
public java.lang.Boolean getHoverable()
- Returns:
- the hoverable
-
setHoverable
public void setHoverable(java.lang.Boolean hoverable)
- Parameters:
hoverable- the hoverable to set
-
getHoverTemplate
public java.lang.String getHoverTemplate()
- Returns:
- the hoverTemplate
-
setHoverTemplate
public void setHoverTemplate(java.lang.String hoverTemplate)
- Parameters:
hoverTemplate- the hoverTemplate to set
-
getProperties
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
- Returns:
- the properties
-
setProperties
public void setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
- Parameters:
properties- the properties to set
-
getName
public java.lang.String getName()
- Returns:
- the name
-
setName
public void setName(java.lang.String name)
- Parameters:
name- the name to set
-
getMaxResolution
public java.lang.Double getMaxResolution()
- Returns:
- the maxResolution
-
setMaxResolution
public void setMaxResolution(java.lang.Double maxResolution)
- Parameters:
maxResolution- the maxResolution to set
-
getMinResolution
public java.lang.Double getMinResolution()
- Returns:
- the minResolution
-
setMinResolution
public void setMinResolution(java.lang.Double minResolution)
- Parameters:
minResolution- the minResolution to set
-
getOpacity
public java.lang.Double getOpacity()
- Returns:
- the opacity
-
setOpacity
public void setOpacity(java.lang.Double opacity)
- Parameters:
opacity- the opacity to set
-
getVisible
public java.lang.Boolean getVisible()
- Returns:
- the visible
-
setVisible
public void setVisible(java.lang.Boolean visible)
- Parameters:
visible- the visible to set
-
hashCode
public int hashCode()
- Overrides:
hashCodein classPersistentObject- See Also:
According to http://stackoverflow.com/questions/27581/overriding-equals -and-hashcode-in-java it is recommended only to use getter-methods when using ORM like Hibernate
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classPersistentObject- See Also:
According to http://stackoverflow.com/questions/27581/overriding-equals -and-hashcode-in-java it is recommended only to use getter-methods when using ORM like Hibernate
-
-