|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--net.sourceforge.chart2d.Properties
|
+--net.sourceforge.chart2d.LegendProperties
A data structure for holding the properties common to all legends. Pass this to any number of Chart2D objects.
| Field Summary | |
static java.awt.Color |
LEGEND_BACKGROUND_COLOR_DEFAULT
The default is Color.white. |
static boolean |
LEGEND_BACKGROUND_EXISTENCE_DEFAULT
The default is false. |
static boolean |
LEGEND_BETWEEN_LABELS_AND_BULLETS_GAP_EXISTENCE_DEFAULT
The default is true. |
static int |
LEGEND_BETWEEN_LABELS_AND_BULLETS_GAP_THICKNESS_MODEL_DEFAULT
The default is 3. |
static boolean |
LEGEND_BETWEEN_LABELS_OR_BULLETS_GAP_EXISTENCE_DEFAULT
The default is true. |
static int |
LEGEND_BETWEEN_LABELS_OR_BULLETS_GAP_THICKNESS_MODEL_DEFAULT
The default is 5. |
static java.awt.Color |
LEGEND_BORDER_COLOR_DEFAULT
The default is Color.gray. |
static boolean |
LEGEND_BORDER_EXISTENCE_DEFAULT
The default is true. |
static int |
LEGEND_BORDER_THICKNESS_MODEL_DEFAULT
The default is 2. |
static java.awt.Color |
LEGEND_BULLETS_OUTLINE_COLOR_DEFAULT
The default is Color.black. |
static boolean |
LEGEND_BULLETS_OUTLINE_EXISTENCE_DEFAULT
The default is true. |
static java.awt.Dimension |
LEGEND_BULLETS_SIZE_MODEL_DEFAULT
The default is the Dimension (9, 9). |
static boolean |
LEGEND_EXISTENCE_DEFAULT
The default is true. |
static boolean |
LEGEND_GAP_EXISTENCE_DEFAULT
The default is true. |
static int |
LEGEND_GAP_THICKNESS_MODEL_DEFAULT
The default is 3. |
static java.awt.Color |
LEGEND_LABELS_FONT_COLOR_DEFAULT
The default is Color.black. |
static java.lang.String |
LEGEND_LABELS_FONT_NAME_DEFAULT
The default is "SansSerif". |
static int |
LEGEND_LABELS_FONT_POINT_MODEL_DEFAULT
The default is 11. |
static int |
LEGEND_LABELS_FONT_STYLE_DEFAULT
The default is Font.PLAIN. |
static java.lang.String[] |
LEGEND_LABELS_TEXTS_DEFAULT
The default is String[0]. |
| Constructor Summary | |
LegendProperties()
Creates a LegendProperties object with the documented default values. |
|
LegendProperties(net.sourceforge.chart2d.LegendProperties legendProps)
Creates a LegendProperties object with property values copied from another object. |
|
| Method Summary | |
java.awt.Color |
getLegendBackgroundColor()
Gets the color of the legend's background. |
boolean |
getLegendBackgroundExistence()
Gets whether the legend will have a painted background or not. |
boolean |
getLegendBetweenLabelsAndBulletsGapExistence()
Gets whether the gap between the legend's bullets and labels exists in their horizontal placement. |
int |
getLegendBetweenLabelsAndBulletsGapThicknessModel()
Gets the thickness of the gap between the legend's bullets and labels in their horizontal placement, for the chart's model size. |
boolean |
getLegendBetweenLabelsOrBulletsGapExistence()
Gets whether a gap between the legend's bullets or labels exists in their vertical placement. |
int |
getLegendBetweenLabelsOrBulletsGapThicknessModel()
Gets the thickness of the gap between the legend's bullets or labels exists in their vertical placement, for the chart's model size. |
java.awt.Color |
getLegendBorderColor()
Gets the color of the border around the legend. |
boolean |
getLegendBorderExistence()
Gets whether there will exist a border around the legend. |
int |
getLegendBorderThicknessModel()
Gets the thickness of the border around the legend for the chart's model size. |
java.awt.Color |
getLegendBulletsOutlineColor()
Gets the color of the legend's bullets outline. |
boolean |
getLegendBulletsOutlineExistence()
Gets whether a thin line is painted around the legend's bullets. |
java.awt.Dimension |
getLegendBulletsSizeModel()
Gets the size of the legend's bullets for the chart's model size. |
boolean |
getLegendExistence()
Gets whether there will exist a legend on the chart. |
boolean |
getLegendGapExistence()
Gets whether a gap between the legend's border or edge and the legend's inner components exists. |
int |
getLegendGapThicknessModel()
Gets the thickness of the legend's gap for the chart's model size. |
java.awt.Color |
getLegendLabelsFontColor()
Gets the color of the font of the legend's labels. |
java.lang.String |
getLegendLabelsFontName()
Gets name of the font of the legend's labels. |
int |
getLegendLabelsFontPointModel()
Gets the point of the font of the legend's labels for the chart's model size. |
int |
getLegendLabelsFontStyle()
Gets the style of the font of the legend's labels. |
java.lang.String[] |
getLegendLabelsTexts()
Gets the texts of the legend labels. |
boolean |
isFontNameExists(java.lang.String name)
Returns true if the font name exists in the graphics enviornment. |
void |
setLegendBackgroundColor(java.awt.Color color)
Sets the color of the legend's background. |
void |
setLegendBackgroundExistence(boolean existence)
Sets whether the legend will have a painted background or not. |
void |
setLegendBetweenLabelsAndBulletsGapExistence(boolean existence)
Sets whether the gap between the legend's bullets and labels exists in their horizontal placement. |
void |
setLegendBetweenLabelsAndBulletsGapThicknessModel(int thickness)
Sets the thickness of the gap between the legend's bullets and labels in their horizontal placement, for the chart's model size. |
void |
setLegendBetweenLabelsOrBulletsGapExistence(boolean existence)
Sets whether a gap between the legend's bullets or labels exists in their vertical placement. |
void |
setLegendBetweenLabelsOrBulletsGapThicknessModel(int thickness)
Sets the thickness of the gap between the legend's bullets or labels exists in their vertical placement, for the chart's model size. |
void |
setLegendBorderColor(java.awt.Color color)
Sets the color of the border around the legend. |
void |
setLegendBorderExistence(boolean existence)
Sets whether there will exist a border around the legend. |
void |
setLegendBorderThicknessModel(int thickness)
Sets the thickness of the border around the legend for the chart's model size. |
void |
setLegendBulletsOutlineColor(java.awt.Color color)
Sets the color of the legend's bullets outline. |
void |
setLegendBulletsOutlineExistence(boolean existence)
Sets whether a thin line is painted around the legend's bullets. |
void |
setLegendBulletsSizeModel(java.awt.Dimension size)
Sets the size of the legend's bullets for the chart's model size. |
void |
setLegendExistence(boolean existence)
Sets whether there will exist a legend on the chart. |
void |
setLegendGapExistence(boolean existence)
Sets whether a gap between the legend's border or edge and the legend's inner components exists. |
void |
setLegendGapThicknessModel(int thickness)
Sets the thickness of the legend's gap for the chart's model size. |
void |
setLegendLabelsFontColor(java.awt.Color color)
Sets the color of the font of the legend's labels. |
void |
setLegendLabelsFontName(java.lang.String name)
Sets name of the font of the legend's labels. |
void |
setLegendLabelsFontPointModel(int point)
Sets the point of the font of the legend's labels for the chart's model size. |
void |
setLegendLabelsFontStyle(int style)
Sets the style of the font of the legend's labels. |
void |
setLegendLabelsTexts(java.lang.String[] texts)
Sets the texts of the legend labels. |
void |
setLegendProperties(net.sourceforge.chart2d.LegendProperties legendProps)
Sets all properties to be the values of another LegendProperties object. |
void |
setLegendPropertiesToDefaults()
Sets all properties to their default values. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final boolean LEGEND_EXISTENCE_DEFAULT
public static final java.lang.String[] LEGEND_LABELS_TEXTS_DEFAULT
public static final boolean LEGEND_BORDER_EXISTENCE_DEFAULT
public static final int LEGEND_BORDER_THICKNESS_MODEL_DEFAULT
public static final java.awt.Color LEGEND_BORDER_COLOR_DEFAULT
public static final boolean LEGEND_GAP_EXISTENCE_DEFAULT
public static final int LEGEND_GAP_THICKNESS_MODEL_DEFAULT
public static final boolean LEGEND_BACKGROUND_EXISTENCE_DEFAULT
public static final java.awt.Color LEGEND_BACKGROUND_COLOR_DEFAULT
public static final int LEGEND_LABELS_FONT_POINT_MODEL_DEFAULT
public static final java.lang.String LEGEND_LABELS_FONT_NAME_DEFAULT
public static final java.awt.Color LEGEND_LABELS_FONT_COLOR_DEFAULT
public static final int LEGEND_LABELS_FONT_STYLE_DEFAULT
public static final boolean LEGEND_BETWEEN_LABELS_OR_BULLETS_GAP_EXISTENCE_DEFAULT
public static final int LEGEND_BETWEEN_LABELS_OR_BULLETS_GAP_THICKNESS_MODEL_DEFAULT
public static final boolean LEGEND_BETWEEN_LABELS_AND_BULLETS_GAP_EXISTENCE_DEFAULT
public static final int LEGEND_BETWEEN_LABELS_AND_BULLETS_GAP_THICKNESS_MODEL_DEFAULT
public static final boolean LEGEND_BULLETS_OUTLINE_EXISTENCE_DEFAULT
public static final java.awt.Color LEGEND_BULLETS_OUTLINE_COLOR_DEFAULT
public static final java.awt.Dimension LEGEND_BULLETS_SIZE_MODEL_DEFAULT
| Constructor Detail |
public LegendProperties()
public LegendProperties(net.sourceforge.chart2d.LegendProperties legendProps)
legendProps - The properties to copy.| Method Detail |
public final void setLegendPropertiesToDefaults()
public final void setLegendProperties(net.sourceforge.chart2d.LegendProperties legendProps)
legendProps - The properties to copy.public final void setLegendExistence(boolean existence)
existence - If true, there will be a legend for the chart.public final void setLegendLabelsTexts(java.lang.String[] texts)
texts - The texts for the legend labels.public final void setLegendBorderExistence(boolean existence)
existence - If true, there will be a border around the legend.public final void setLegendBorderThicknessModel(int thickness)
thickness - The model thicknes for the chart.public final void setLegendBorderColor(java.awt.Color color)
color - The color of the legend's border.public final void setLegendGapExistence(boolean existence)
existence - If true, then a gap exists.public final void setLegendGapThicknessModel(int thickness)
thickness - The model thickness of the legend's gap.public final void setLegendBackgroundExistence(boolean existence)
existence - If true, the background of the legend will be painted.public final void setLegendBackgroundColor(java.awt.Color color)
color - The color of the legend's background.public final void setLegendLabelsFontPointModel(int point)
point - The model font point of the legend's labels.public final void setLegendLabelsFontName(java.lang.String name)
name - The name of the font for the legend's labels.public final void setLegendLabelsFontColor(java.awt.Color color)
color - The color of the font of the legend's labels.public final void setLegendLabelsFontStyle(int style)
style - The style of the font of the legend's labels.public final void setLegendBetweenLabelsOrBulletsGapExistence(boolean existence)
existence - If true, a gap exists.public final void setLegendBetweenLabelsOrBulletsGapThicknessModel(int thickness)
thickness - The model thickness of the gap.public final void setLegendBetweenLabelsAndBulletsGapExistence(boolean existence)
existence - If true, a gap exists.public final void setLegendBetweenLabelsAndBulletsGapThicknessModel(int thickness)
thickness - The model thickness of teh gap.public final void setLegendBulletsOutlineExistence(boolean existence)
existence - If true, the legend's bullets will be outlined.public final void setLegendBulletsOutlineColor(java.awt.Color color)
color - The color of the legend's bullets outline.public final void setLegendBulletsSizeModel(java.awt.Dimension size)
size - The size of the legend's bullets.public final boolean getLegendExistence()
public final java.lang.String[] getLegendLabelsTexts()
public final boolean getLegendBorderExistence()
public final int getLegendBorderThicknessModel()
public final java.awt.Color getLegendBorderColor()
public final boolean getLegendGapExistence()
public final int getLegendGapThicknessModel()
public final boolean getLegendBackgroundExistence()
public final java.awt.Color getLegendBackgroundColor()
public final int getLegendLabelsFontPointModel()
public final java.lang.String getLegendLabelsFontName()
public final java.awt.Color getLegendLabelsFontColor()
public final int getLegendLabelsFontStyle()
public final boolean getLegendBetweenLabelsOrBulletsGapExistence()
public final int getLegendBetweenLabelsOrBulletsGapThicknessModel()
public final boolean getLegendBetweenLabelsAndBulletsGapExistence()
public final int getLegendBetweenLabelsAndBulletsGapThicknessModel()
public final boolean getLegendBulletsOutlineExistence()
public final java.awt.Color getLegendBulletsOutlineColor()
public final java.awt.Dimension getLegendBulletsSizeModel()
public final boolean isFontNameExists(java.lang.String name)
name - The name of the font to determine the existence of.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||