Class LegendAreaProperties

All Implemented Interfaces:
Serializable, HTMLTestable
Direct Known Subclasses:
LegendProperties

public abstract class LegendAreaProperties extends AreaProperties implements HTMLTestable
See Also:
  • Field Details

    • COLUMNS_AS_MANY_AS_NEEDED

      public static final int COLUMNS_AS_MANY_AS_NEEDED
      See Also:
    • COLUMNS_FIT_TO_IMAGE

      public static final int COLUMNS_FIT_TO_IMAGE
      See Also:
    • BOTTOM

      public static final int BOTTOM
      See Also:
    • LEFT

      public static final int LEFT
      See Also:
    • TOP

      public static final int TOP
      See Also:
    • 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 Details

    • 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 Details

    • 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 -
    • toHTML

      public void toHTML(HTMLGenerator htmlGenerator)
      Enables the testing routines to display the contents of this Object.
      Specified by:
      toHTML in interface HTMLTestable
      Overrides:
      toHTML in class AreaProperties
      Parameters:
      htmlGenerator -