Class LegendAreaProperties

    • Field Detail

      • COLUMNS_AS_MANY_AS_NEEDED

        public static final int COLUMNS_AS_MANY_AS_NEEDED
        See Also:
        Constant Field Values
      • numColumns

        private int numColumns
      • rowPadding

        private int rowPadding
      • columnPadding

        private int columnPadding
      • iconPadding

        private int iconPadding
      • chartPadding

        private int chartPadding
      • placement

        private int placement
    • Constructor Detail

      • LegendAreaProperties

        public LegendAreaProperties()
        Constructor for those desiring auto-calculation of the Legend width based on the number of columns. All Labels are on a single row as default number of rows is: COLUMNS_AS_MANY_AS_NEEDED
    • Method Detail

      • getPlacement

        public int getPlacement()
        Returns where the Legend should be drawn in relation to the Chart.
        Returns:
        int
      • setPlacement

        public void setPlacement​(int placementConstant)
        Sets where the Legend should be drawn in relation to the Chart.
        Parameters:
        placementConstant -
      • getChartPadding

        public int getChartPadding()
        Returns the padding between chart plot and the Legend.
        Returns:
        int
      • setChartPadding

        public void setChartPadding​(int chartPadding)
        Sets the padding between chart plot and the Legend.
        Parameters:
        chartPadding -
      • getColumnPadding

        public int getColumnPadding()
        Returns the padding between label columns.
        Returns:
        int
      • getRowPadding

        public int getRowPadding()
        Returns the padding between labels in each row.
        Returns:
        int
      • setNumColumns

        public void setNumColumns​(int numColumns)
        Sets the number of text columns the legend should display.
        Parameters:
        numColumns -
      • getNumColumns

        public int getNumColumns()
        Gets the number of text columns the legend should display.
        Returns:
        int
      • getIconPadding

        public int getIconPadding()
        Returns the padding between the icon and the Label
        Returns:
        int
      • setRowPadding

        public void setRowPadding​(int rowPadding)
        Sets the padding between labels in each row, in pixels.
        Parameters:
        rowPadding -
      • setColumnPadding

        public void setColumnPadding​(int columnPadding)
        Sets the padding between label columns, in pixels.
        Parameters:
        columnPadding -
      • setIconPadding

        public void setIconPadding​(int iconPadding)
        Sets the padding between the icon and the Label, in pixels.
        Parameters:
        iconPadding -