Class JMapServerVectorLayer

All Implemented Interfaces:
LayerConstants, LayerNode, Serializable, Cloneable
Direct Known Subclasses:
RemoteServerVectorLayer, RemoteServerVectorLayerClone

public class JMapServerVectorLayer extends JMapServerLayer
See Also:
  • Field Details

    • precision

      protected int precision
    • boundAttributes

      protected Attribute[] boundAttributes
    • thematics

      protected Thematic[] thematics
    • mouseOverConfiguration

      protected MouseOverConfiguration mouseOverConfiguration
    • labelsConfig

      protected LabelsConfiguration labelsConfig
    • form

      protected Form form
    • forms

      protected List<IForm> forms
    • subForms

      protected List<ISubForm> subForms
    • hasEmptyUnivTile

      protected boolean hasEmptyUnivTile
    • requestMode

      protected int requestMode
    • tilingMode

      protected int tilingMode
    • enabledCaching

      protected boolean enabledCaching
    • fillCache

      protected boolean fillCache
    • sqlAttributeFilter

      protected SQLQueryFilter sqlAttributeFilter
    • transformations

      protected Transformation[] transformations
    • angleAttributeIx

      protected int angleAttributeIx
    • angleDirection

      protected short angleDirection
    • angleUnit

      protected short angleUnit
    • rotationOrigin

      protected GeometryUtil.RotationOrigin rotationOrigin
    • elementFactory

      protected K2DElementFactory elementFactory
    • tileSet

      protected transient TileSet tileSet
    • tileRows

      protected int tileRows
    • tileCols

      protected int tileCols
    • attributeQueries

      protected List<AttributeQueryInfo> attributeQueries
  • Constructor Details

    • JMapServerVectorLayer

      protected JMapServerVectorLayer(int dataSourceId)
    • JMapServerVectorLayer

      public JMapServerVectorLayer(VectorDataSourceInfo dataSourceInfo)
    • JMapServerVectorLayer

      public JMapServerVectorLayer(String name, VectorDataSourceInfo dataSourceInfo, Style style, Attribute[] boundAttributes)
  • Method Details

    • getElementFactory

      public K2DElementFactory getElementFactory()
    • setElementFactory

      public void setElementFactory(K2DElementFactory elementFactory)
    • setThematics

      public void setThematics(Thematic[] thematics)
    • getThematics

      public Thematic[] getThematics()
    • getThematic

      public Thematic getThematic(int id)
    • getTransformations

      public Transformation[] getTransformations()
    • setTransformations

      public void setTransformations(Transformation[] transformations)
    • getHyperlinks

      public Hyperlink[] getHyperlinks()
    • setHyperlinks

      public void setHyperlinks(Hyperlink[] hyperlinks)
    • addHyperlink

      public void addHyperlink(Hyperlink hyperlink)
    • removeHyperlink

      public void removeHyperlink(Hyperlink hyperlink)
    • addTransformation

      public void addTransformation(Transformation tranformation)
    • removeTransformation

      public void removeTransformation(Transformation tranformation)
    • addThematic

      public void addThematic(Thematic thematic)
    • removeThematic

      public void removeThematic(Thematic thematic)
    • getUseClientCache

      public boolean getUseClientCache()
      Gets the useClientCache boolean flag
      Returns:
      true if the use of cache on the client is enabled, false otherwise
    • setUseClientCache

      public void setUseClientCache(boolean flag)
      Sets useClientCache boolean flag
      Parameters:
      flag - the boolean value to be set.
    • getBoundAttributes

      public Attribute[] getBoundAttributes()
    • setBoundAttributes

      public void setBoundAttributes(Attribute[] newBoundAttributes)
    • getBoundAttribute

      public Attribute getBoundAttribute(String attribName)
    • getBoundAttributeIndex

      public int getBoundAttributeIndex(String attribName)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getRequestMode

      public int getRequestMode()
      Returns:
      Returns the requestMode.
    • setRequestMode

      public void setRequestMode(int requestMode)
      Parameters:
      requestMode - The requestMode to set.
    • getTileSet

      public TileSet getTileSet()
    • setElementType

      public void setElementType(int elementType)
      Overrides:
      setElementType in class JMapServerLayer
      Parameters:
      elementType - The elementType to set.
    • hasEmptyUnivTile

      public boolean hasEmptyUnivTile()
    • setHasEmptyUnivTile

      public void setHasEmptyUnivTile(boolean hasEmptyUniverseTile)
    • getPrecision

      @Deprecated public int getPrecision()
      Deprecated.
    • setPrecision

      @Deprecated public void setPrecision(int precision)
      Deprecated.
    • isFillCache

      public boolean isFillCache()
    • setFillCache

      public void setFillCache(boolean fillCache)
    • getSqlAttributeFilter

      public SQLQueryFilter getSqlAttributeFilter()
      Returns:
      Returns the sqlAttributeFilter.
    • setSqlAttributeFilter

      public void setSqlAttributeFilter(SQLQueryFilter sqlAttributeFilter)
      Parameters:
      sqlAttributeFilter - The sqlAttributeFilter to set.
    • toLayerInfo

      public VectorLayerInfo toLayerInfo()
      Specified by:
      toLayerInfo in class JMapServerLayer
    • getTileRows

      public int getTileRows()
    • setTileRows

      public void setTileRows(int tileRows)
    • getTileCols

      public int getTileCols()
    • setTileCols

      public void setTileCols(int tileCols)
    • clone

      public JMapServerVectorLayer clone()
      Specified by:
      clone in interface LayerNode
      Specified by:
      clone in class JMapServerLayer
    • clone

      protected void clone(JMapServerLayer layerInfo)
      Clones all properties from this server layer into the specified JMapServerLayer instance.
      Overrides:
      clone in class JMapServerLayer
      Parameters:
      layerInfo - the instance that will receive cloned properties.
    • toLayerInfo

      protected void toLayerInfo(LayerInfo layerInfo)
      Copies all properties from this server layer to the specified layer info.
      Overrides:
      toLayerInfo in class JMapServerLayer
      Parameters:
      layerInfo - the layer info to copy properties into.
    • getVectorDataSourceInfo

      public final VectorDataSourceInfo getVectorDataSourceInfo()
    • update

      public void update(Projection projectProjection)
      Specified by:
      update in class JMapServerLayer
    • getLabelsConfig

      public LabelsConfiguration getLabelsConfig()
    • setLabelsConfig

      public void setLabelsConfig(LabelsConfiguration labelsConfig)
    • getMouseOverConfiguration

      public MouseOverConfiguration getMouseOverConfiguration()
    • setMouseOverConfiguration

      public void setMouseOverConfiguration(MouseOverConfiguration mouseOverConfiguration)
    • getForm

      @Deprecated public Form getForm()
      Deprecated.
      As of JMap 6.0, replaced by getForms()
    • setForm

      @Deprecated public void setForm(Form form)
      Deprecated.
      As of JMap 6.0, replaced by getForms()
    • getForms

      public List<IForm> getForms()
      Since:
      6.0
    • addForm

      public void addForm(IAbstractForm form)
      Since:
      6.0
    • addForm

      protected void addForm(IAbstractForm form, boolean assignNewId)
    • getForm

      public IAbstractForm getForm(int id)
      Since:
      6.0
    • getSubForms

      public List<ISubForm> getSubForms()
      Since:
      6.0
    • setAttributeQueries

      public void setAttributeQueries(List<AttributeQueryInfo> attributeQueries)
    • getAttributeQueries

      public List<AttributeQueryInfo> getAttributeQueries()
    • addAttributeQuery

      public void addAttributeQuery(AttributeQueryInfo attributeQuery)
    • setAttributeQuery

      public boolean setAttributeQuery(AttributeQueryInfo attributeQuery)
    • removeAttributeQuery

      public boolean removeAttributeQuery(AttributeQueryInfo attributeQuery)
    • getAttributeQuery

      public AttributeQueryInfo getAttributeQuery(int attributeQueryId)
    • setDataSourceInfo

      public void setDataSourceInfo(SpatialDataSourceInfo dataSourceInfo)
      Overrides:
      setDataSourceInfo in class JMapServerLayer
      Parameters:
      dataSourceInfo - The dataSourceInfo to set.
    • validateObjectImpl

      protected void validateObjectImpl()
      Overrides:
      validateObjectImpl in class JMapServerLayer
    • removeTranslationsOtherThan

      public void removeTranslationsOtherThan(Locale[] locales)
      Description copied from class: LocalizedObject
      Removes any Locale from this object that are not in the specified locales. locales[0] should be the default language
      Overrides:
      removeTranslationsOtherThan in class JMapServerLayer
      Parameters:
      locales -
    • isDataStructureDifferent

      protected boolean isDataStructureDifferent(JMapServerLayer oldLayer)
      Description copied from class: JMapServerLayer
      Compare with database-persisted layer to determine if some properties have changed. If any data-sensible property has changed, we need to update last update time to notify remote servers that layer data needs to be updated.
      Overrides:
      isDataStructureDifferent in class JMapServerLayer
      Returns:
      true if we need to update property lastUpdateTime, false otherwise.