OFC Charts 3.1


com.oxymel.ofc.charts
Class Legend

java.lang.Object
  |
  +--com.oxymel.ofc.charts.Legend
Direct Known Subclasses:
LegendInterval

public class Legend
extends java.lang.Object

The legend class contains an enumeration defining the different ways a legend can be placed on the graphic.


Field Summary
static int LEGEND_ALIGN_MODE_COLUMN
          The elements composing the legend are organized in columns.
static int LEGEND_ALIGN_MODE_COLUMN_STRICT
          The elements composing the legend are organized in columns.
static int LEGEND_ALIGN_MODE_NONE
          No alignement constraint defined for the element belonging to the legend
static int LEGEND_DISPLAY_MODE_BOTTOM
          The legend is located on the bottom of the graphic
static int LEGEND_DISPLAY_MODE_LEFT
          The legend is located on the left of the graphic
static int LEGEND_DISPLAY_MODE_NONE
          The legend is not written
static int LEGEND_DISPLAY_MODE_TABLE
          The legend is organized as a table.
static int LEGEND_DISPLAY_MODE_TOP
          The legend is located on the top of the graphic
 
Constructor Summary
Legend()
           
 
Method Summary
 void drawLegend(int xTopLeftLegend, int yTopLeftLegend, java.util.Vector allSeries, java.awt.Graphics2D graphics2D)
           
 int getLegendDisplayMode()
           
 void setBackgroundColor(java.awt.Color color)
           
 void setCadreColor(java.awt.Color color)
           
 void setDisplayAsBar(boolean isDisplayAsBar)
           
 void setFontSize(int size)
           
 void setIsLegendInTable(boolean isLegendInTable)
           
 void setLegendWidth(int legendWidth)
           
 void setNbPixelHeightOfLegendIndicator(int nbPixelHeightOfLegendIndicator)
           
 void setTextColor(java.awt.Color color)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LEGEND_DISPLAY_MODE_NONE

public static final int LEGEND_DISPLAY_MODE_NONE
The legend is not written

LEGEND_DISPLAY_MODE_LEFT

public static final int LEGEND_DISPLAY_MODE_LEFT
The legend is located on the left of the graphic

LEGEND_DISPLAY_MODE_BOTTOM

public static final int LEGEND_DISPLAY_MODE_BOTTOM
The legend is located on the bottom of the graphic

LEGEND_DISPLAY_MODE_TOP

public static final int LEGEND_DISPLAY_MODE_TOP
The legend is located on the top of the graphic

LEGEND_DISPLAY_MODE_TABLE

public static final int LEGEND_DISPLAY_MODE_TABLE
The legend is organized as a table. Usage restricted to bar chart graphics

LEGEND_ALIGN_MODE_NONE

public static final int LEGEND_ALIGN_MODE_NONE
No alignement constraint defined for the element belonging to the legend

LEGEND_ALIGN_MODE_COLUMN

public static final int LEGEND_ALIGN_MODE_COLUMN
The elements composing the legend are organized in columns. Column size is not strict to save space.

LEGEND_ALIGN_MODE_COLUMN_STRICT

public static final int LEGEND_ALIGN_MODE_COLUMN_STRICT
The elements composing the legend are organized in columns. Organization in columns must be strictly respected; Such an organization may consume more space
Constructor Detail

Legend

public Legend()
Method Detail

setBackgroundColor

public void setBackgroundColor(java.awt.Color color)

setTextColor

public void setTextColor(java.awt.Color color)

setCadreColor

public void setCadreColor(java.awt.Color color)

setNbPixelHeightOfLegendIndicator

public void setNbPixelHeightOfLegendIndicator(int nbPixelHeightOfLegendIndicator)

setIsLegendInTable

public void setIsLegendInTable(boolean isLegendInTable)

setLegendWidth

public void setLegendWidth(int legendWidth)

drawLegend

public void drawLegend(int xTopLeftLegend,
                       int yTopLeftLegend,
                       java.util.Vector allSeries,
                       java.awt.Graphics2D graphics2D)

setFontSize

public void setFontSize(int size)

getLegendDisplayMode

public int getLegendDisplayMode()

setDisplayAsBar

public void setDisplayAsBar(boolean isDisplayAsBar)

OFC Charts 3.1


Copyright © 2005 Oxymel SA All Rights Reserved.