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.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Legend
public Legend()
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)
Copyright © 2005 Oxymel SA All Rights Reserved.