Klasse Legend
java.lang.Object
com.inet.report.chart.Legend
- Alle implementierten Schnittstellen:
Serializable
The class responsible for the settings of the charts legend.
- Seit:
- 8.0
- Siehe auch:
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifikator und TypMethodeBeschreibungintReturns the ABGR value representing the background color.intReturns the ABGR value representing the legend color.Returns the font for all labels in this legend.Returns the placement of the legend in the chart.intReturns the ABGR value representing the legend's outline's color.intReturns the legend's outline's style.intReturns the width of the legend's outline in twips.booleanReturns whether or not to draw the outline of legend.voidreadProperties(Element element) Loads the properties of a chart legend from an XML element.voidsaveProperties(PrintWriter out, int depth) Writes the properties of this legend toPrintWriteras XML.voidsetBackColor(int backgroundColor) Sets the ABGR value representing the legend's background color.voidsetDrawOutline(boolean drawOutline) Sets whether or not to draw the outline of legend.voidsetLegendColor(int legendColor) Sets the ABGR value representing the legend color.voidsetLegendFont(Font legendFont) Sets the font for all labels in this legend.voidsetLegendPlacement(LegendPlacement legendPlacement) Sets a placement of the legend in the chart.voidsetOutlineColor(int outlineColor) Sets the ABGR components of the legend's outline's color.voidsetOutlineStyle(int outlineStyle) Sets the style of the legend's outline.voidsetOutlineWidth(int outlineWidth) Sets the width of the legend's outline in twips.
-
Felddetails
-
DEFAULT_FONT
Default legend font. -
DEFAULT_LABEL_COLOR
public static final int DEFAULT_LABEL_COLORDefault legend color.- Siehe auch:
-
DEFAULT_LEGEND_OUTLINE_COLOR
public static final int DEFAULT_LEGEND_OUTLINE_COLORDefault legend outline color.- Siehe auch:
-
TOKEN_LEGEND
-
-
Konstruktordetails
-
Legend
public Legend()Creates a legend with default properties.- Seit:
- 8.0
-
-
Methodendetails
-
isDrawOutline
public boolean isDrawOutline()Returns whether or not to draw the outline of legend.- Gibt zurück:
truethe outline is to be drawn.- Seit:
- 8.0
-
setDrawOutline
public void setDrawOutline(boolean drawOutline) Sets whether or not to draw the outline of legend.- Parameter:
drawOutline-trueif outline is to be drawn.- Seit:
- 8.0
-
getLegendPlacement
Returns the placement of the legend in the chart.- Gibt zurück:
- the legend placement
- Seit:
- 8.0
- Siehe auch:
-
setLegendPlacement
Sets a placement of the legend in the chart. To hide the legend, useLegendPlacement.NONE.- Parameter:
legendPlacement- the placement object (nullnot permitted)- Löst aus:
IllegalArgumentException- if the legend placement isnull.- Seit:
- 8.0
-
getLegendFont
Returns the font for all labels in this legend.- Gibt zurück:
- the legend font.
- Seit:
- 8.0
- Siehe auch:
-
setLegendFont
Sets the font for all labels in this legend.- Parameter:
legendFont- the legend font (nullnot permitted)- Seit:
- 8.0
- Siehe auch:
-
getLegendColor
public int getLegendColor()Returns the ABGR value representing the legend color.- Gibt zurück:
- the ABGR value representing the legend color.
- Seit:
- 8.0
- Siehe auch:
-
setLegendColor
public void setLegendColor(int legendColor) Sets the ABGR value representing the legend color.- Parameter:
legendColor- ABGR components of the legend color - may not beRDC.COLOR_NO_COLOR- Löst aus:
IllegalArgumentException- if the color isRDC.COLOR_NO_COLOR.- Seit:
- 8.0
- Siehe auch:
-
getBackColor
public int getBackColor()Returns the ABGR value representing the background color.- Gibt zurück:
- the background color
- Seit:
- 8.0
- Siehe auch:
-
setBackColor
public void setBackColor(int backgroundColor) Sets the ABGR value representing the legend's background color.- Parameter:
backgroundColor- a background color- Seit:
- 8.0
- Siehe auch:
-
getOutlineColor
public int getOutlineColor()Returns the ABGR value representing the legend's outline's color.- Gibt zurück:
- the legend's outline's color
- Seit:
- 8.0
- Siehe auch:
-
setOutlineColor
public void setOutlineColor(int outlineColor) Sets the ABGR components of the legend's outline's color.- Parameter:
outlineColor- the color of the legend's outline, may not beRDC.COLOR_NO_COLOR- Löst aus:
IllegalArgumentException- if the color isRDC.COLOR_NO_COLOR.- Seit:
- 8.0
- Siehe auch:
-
getOutlineStyle
public int getOutlineStyle()Returns the legend's outline's style.- Gibt zurück:
- the style of the legend's outline
- Seit:
- 8.0
- Siehe auch:
-
setOutlineStyle
public void setOutlineStyle(int outlineStyle) Sets the style of the legend's outline.- Parameter:
outlineStyle- the legend's outline's style- Löst aus:
IllegalArgumentException- if an unsupported line style is passed.- Seit:
- 8.0
- Siehe auch:
-
getOutlineWidth
public int getOutlineWidth()Returns the width of the legend's outline in twips.- Gibt zurück:
- the width
- Seit:
- 8.0
- Siehe auch:
-
setOutlineWidth
public void setOutlineWidth(int outlineWidth) Sets the width of the legend's outline in twips.- Parameter:
outlineWidth- the width of the legend's outline- Löst aus:
IllegalArgumentException- if the width is less than 1.- Seit:
- 8.0
- Siehe auch:
-
saveProperties
Writes the properties of this legend toPrintWriteras XML.- Parameter:
out- the output stream to write todepth- the depth of XML indent to prefix each line with- Seit:
- 8.0
-
readProperties
Loads the properties of a chart legend from an XML element.- Parameter:
element- DOM element- Seit:
- 8.0
-