Class ChoroplethDataPoint


  • public final class ChoroplethDataPoint
    extends AbstractDataPoint
    Used for GEO data sets to set the data to render.
    A GEO data has to have a feature property containing the feature to render and a value property containing the value for the coloring.
    Author:
    Andrea "Stock" Stocchero
    • Constructor Detail

      • ChoroplethDataPoint

        public ChoroplethDataPoint()
        Creates the object with an empty native object.
      • ChoroplethDataPoint

        public ChoroplethDataPoint​(Feature feature)
        Creates the object with the assigned feature.
        Parameters:
        feature - the feature object to identify the region.
      • ChoroplethDataPoint

        public ChoroplethDataPoint​(Feature feature,
                                   double value)
        Creates the object with the assigned feature and value.
        Parameters:
        feature - the feature object to identify the region.
        value - the value for the coloring
    • Method Detail

      • setFeature

        public void setFeature​(Feature feature)
        Sets the feature object to identify the region.
        Parameters:
        feature - the feature object to identify the region
      • getFeature

        public Feature getFeature()
        Returns the feature object to identify the region.
        Returns:
        the feature object to identify the region
      • setValue

        public final void setValue​(double value)
        Sets the value for the coloring.
        Parameters:
        value - the value for the coloring
      • getValue

        public final double getValue()
        Returns the value for the coloring.
        Returns:
        the value for the coloring