lt.monarch.chart.legend
Enum LegendLayout

java.lang.Object
  extended by java.lang.Enum<LegendLayout>
      extended by lt.monarch.chart.legend.LegendLayout
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<LegendLayout>

public enum LegendLayout
extends java.lang.Enum<LegendLayout>

Legend layout


Enum Constant Summary
Enum Constant and Description
COMPACT_LAYOUT
          Specifies legend entries table sizing type.
EXPANDED_LAYOUT
          Specifies legend entries table sizing style.
GRID_LAYOUT
          Specifies legend entries table sizing style.
 
Method Summary
Modifier and Type Method and Description
static LegendLayout valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static LegendLayout[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EXPANDED_LAYOUT

public static final LegendLayout EXPANDED_LAYOUT
Specifies legend entries table sizing style. If this style is used, the Legend is stretched so that it is of the same width or height as the chart itself. If the Legend alignment is LEFT or RIGHT, the Legend is stretched vertically, if the alignment is TOP or BOTTOM, the Legend is stretched horizontally.


GRID_LAYOUT

public static final LegendLayout GRID_LAYOUT
Specifies legend entries table sizing style. If this style is used, all cells have the same height and width as the largest cell in a Legend.


COMPACT_LAYOUT

public static final LegendLayout COMPACT_LAYOUT
Specifies legend entries table sizing type. Cell width is determined by the widest cell in the same column and cell height is determined by the highest cell in the same row.

Method Detail

values

public static LegendLayout[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (LegendLayout c : LegendLayout.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static LegendLayout valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null