Class ChoroplethDataset

    • Constructor Detail

      • ChoroplethDataset

        public ChoroplethDataset()
        Creates a data set.
        It uses the global options has default.
      • ChoroplethDataset

        public ChoroplethDataset​(IsDefaultOptions defaultValues)
        Creates a data set setting the defaults value.
        Parameters:
        defaultValues - default options
    • Method Detail

      • getHandler

        public org.pepstock.charba.client.geo.GeoDatasetHandler<ChoroplethDataPoint> getHandler()
      • setData

        public void setData​(double... values)
        Throws an exception because not available.
        Overrides:
        setData in class Dataset
        Parameters:
        values - ignored because will throw an exception
      • setData

        public void setData​(List<Double> values)
        Throws an exception because not available.
        Overrides:
        setData in class Dataset
        Parameters:
        values - ignored because will throw an exception
      • getData

        public List<Double> getData​(boolean binding)
        Throws an exception because not available.
        Overrides:
        getData in class Dataset
        Parameters:
        binding - ignored because will throw an exception
        Returns:
        nothing because will throw an exception
      • setValues

        public default void setValues​(T[] values)
        Sets the data property of a data set for a chart is specified as an array of GeoDataPoint.
        Parameters:
        values - an array of GeoDataPoint
      • setValues

        public default void setValues​(List<T> values)
        Sets the data property of a data set for a chart is specified as an array of GeoDataPoint.
        Parameters:
        values - an array of GeoDataPoint
      • getValues

        public default List<T> getValues()
        Returns the data property of a data set for a chart is specified as an array of GeoDataPoint.
        Returns:
        list of GeoDataPoint.
      • getValues

        public default List<T> getValues​(boolean binding)
        Returns the data property of a data set for a chart is specified as an array of GeoDataPoint.
        Parameters:
        binding - if true binds the new array list in the container
        Returns:
        list of GeoDataPoint.
      • setOutline

        public default void setOutline​(Feature... outline)
        Sets the outline used to scale and centralize the projection in the chart area. By default a sphere is used.
        Parameters:
        outline - the outline used to scale and centralize the projection in the chart area
      • setOutline

        public default void setOutline​(List<Feature> outline)
        Sets the outline used to scale and centralize the projection in the chart area. By default a sphere is used.
        Parameters:
        outline - the outline used to scale and centralize the projection in the chart area
      • getOutline

        public default List<Feature> getOutline()
        Returns the outline used to scale and centralize the projection in the chart area. By default a sphere is used.
        Returns:
        the outline used to scale and centralize the projection in the chart area
      • setShowOutline

        public default void setShowOutline​(boolean showOutline)
        Sets true to render the outline in the background.
        Parameters:
        showOutline - true to render the outline in the background
      • isShowOutline

        public default boolean isShowOutline()
        Returns true to render the outline in the background.
        Returns:
        true to render the outline in the background
      • setShowGraticule

        public default void setShowGraticule​(boolean showGraticule)
        Sets true to render the lines in the background.
        Parameters:
        showGraticule - true to render the lines in the background
      • setShowGraticule

        public default void setShowGraticule​(Graticule showGraticule)
        Sets the graticule object to render the lines in the background.
        Parameters:
        showGraticule - the graticule to render the lines in the background
      • isShowGraticule

        public default boolean isShowGraticule()
        Returns true to render a graticule in the background.
        Returns:
        true to render a graticule in the background
      • getShowGraticule

        public default Graticule getShowGraticule()
        Returns the graticule to render the lines in the background.
        Returns:
        the graticule to render the lines in the background or null is any object has been set
      • setClipMap

        public default void setClipMap​(ClipMap clipMap)
        Sets whether to clip the rendering to the chart area of the graph.
        Parameters:
        clipMap - whether to clip the rendering to the chart area of the graph
      • getClipMap

        public default ClipMap getClipMap()
        Returns whether to clip the rendering to the chart area of the graph.
        Returns:
        whether to clip the rendering to the chart area of the graph
      • setClipMap

        public default void setClipMap​(boolean clipMap)
        Sets whether to clip the rendering to the chart area of the graph.
        Parameters:
        clipMap - whether to clip the rendering to the chart area of the graph
      • isClipMap

        public default boolean isClipMap()
        Returns whether to clip the rendering to the chart area of the graph.
        Returns:
        whether to clip the rendering to the chart area of the graph
      • setOrder

        public default void setOrder​(int order)
        Sets the drawing order of dataset.
        Also affects order for stacking, tooltip, and legend.
        Parameters:
        order - the drawing order of dataset.
      • getOrder

        public default int getOrder()
        Returns the drawing order of dataset.
        Also affects order for stacking, tooltip, and legend.
        Returns:
        the drawing order of dataset