Package net.sourceforge.chart2d
Class GraphChart2DProperties
java.lang.Object
net.sourceforge.chart2d.GraphChart2DProperties
A data structure for holding the properties common to all GraphChart2D objects.
A GraphChart2D objects has axes and one or more overlaid graphs.
Pass this to any number of GraphChart2D objects.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIndicates the ticks of an axis should be centered between the labels of the axis.static final intIndicates the ticks of an axis should be centered on each label of the axis.static final floatThe default is 0.static final floatThe default is 0.static final booleanThe default is false.static final booleanThe default is false.static final floatThe default is .95f.static final booleanThe default is false.static final MultiColorsPropertiesThe default is null.static final booleanThe default is true.static final intThe default is 3.static final booleanThe default is true.static final intThe default is 3.static final booleanThe default is true.static final ColorThe default is Color.black.static final StringThe default is "SansSerif".static final intThe default is 10.static final intThe default is Font.PLAIN.static final String[]The default is String[0].static final intThe default is BETWEEN.static final ColorThe default is Color.black.static final booleanThe default is true.static final ColorThe default is Color.black.static final booleanThe default is false.static final DimensionThe default is Dimension (3, 3).static final booleanThe default is true.static final intThe default is 3.static final booleanThe default is true.static final ColorThe default is Color.black.static final StringThe default is "SansSerif".static final intThe default is 11.static final intThe default is Font.PLAIN.static final StringThe default is "".static final booleanThe default is true.static final intThe default is 3.static final booleanThe default is true.static final intThe default is 3.static final ColorThe default is Color.black.static final StringThe default is "SansSerif".static final intThe default is 10.static final intThe default is Font.PLAIN.static final intThe default is 7.static final ColorThe default is Color.black.static final booleanThe default is true.static final ColorThe default is Color.black.static final booleanThe default is false.static final DimensionThe default is Dimension (3, 3).static final booleanThe default is true.static final intThe default is 3.static final booleanThe default is true.static final ColorThe default is Color.black.static final StringThe default is "SansSerif".static final intThe default is 11.static final intThe default is Font.PLAIN.static final StringThe default is "". -
Constructor Summary
ConstructorsConstructorDescriptionCreates a GraphChart2DProperties object with the documented default values.GraphChart2DProperties(GraphChart2DProperties graphChart2DProps) Creates a GraphChart2DProperties object with property values copied from another object. -
Method Summary
Modifier and TypeMethodDescriptionfinal floatGets the custom greatest value of the data sets.final booleanGets whether the true greatest value in the data sets will be substituted by the custom value.final booleanGets whether the true least value in the data sets will be substituted by the custom value.final floatGets the custom least value of the data sets.floatGets how much of the chart's graph is used by the graph's components.final booleanGets whether the graph components have different colors across sets (or across cats).final MultiColorsPropertiesSets the color properties for the colors by cat coloring.final booleanGets whether a gap between the labels and ticks exists, vertically.final intGets the thickness of the gap between the labels and ticks, vertically, for the chart's model size.final booleanGets whether a gap between the labels or ticks exists, horizontally.final intGets the thickness of the gap between the labels or ticks, horizontally, for the chart's model size.final booleanGets the existence of the labels axis.final ColorGets the color of the font of the labels of the labels axis.final StringGets the name of the font of the labels of the labels axis.final intGets the point of the font of the labels axis labels for the chart's model size.final intGets the style of the font of the labels axis labels.final String[]Gets the text of each labels axis label.final intGets the placement of the ticks on the labels axis.final ColorGets the color of the labels axis ticks.final booleanGets whether there exists ticks along the labels axis.final ColorGets the color of the thin line that outlines the labels axis ticks.final booleanGets whether a thin line outlines the labels axis ticks.final DimensionGets the size of the labels axis ticks for the chart's model size.final booleanGets whether the gap above the labels axis title exists.final intGets the thickness of the gap above the labels axis title for the chart's model size.final booleanGets whether the title of the labels axis exists.final ColorGets the color of the font of the labels axis title.final StringGets the name of the font of the labels axis title.final intGets the font point of the labels axis title for the chart's model size.final intGets the style of teh font of the labels axis title.final StringGets the text of the title of the labels axis.final booleanGets whether a gap between the labels and ticks exists, horizontally.final intGets the thickness of the gap between the labels and ticks, horizontally, for the chart's model size.final booleanGets whether a gap between the labels or ticks exists, vertically.final intGets the thickness of the gap between the labels or ticks, vertically, for the chart's model size.final ColorGets the color of the font of the labels of the numbers axis.final StringGets the name of the font of the labels of the numbers axis.final intGets the point of the font of the numbers axis labels for the chart's model size.final intGets the style of the font of the numbers axis labels.final intGets the number of labels in the numbers axis.final ColorGets the color of the numbers axis ticks.final booleanGets whether there exists ticks along the numbers axis.final ColorGets the color of the thin line that outlines the numbers axis ticks.final booleanGets whether a thin line outlines the numbers axis ticks.final DimensionGets the size of the numbers axis ticks for the chart's model size.final booleanGets whether the gap right of the numbers axis title exists.final intGets the thickness of the gap right of the numbers axis title for the chart's model size.final booleanGets whether the title of the numbers axis exists.final ColorGets the color of the font of the numbers axis title.final StringGets the name of the font of the numbers axis title.final intGets the font point of the numbers axis title for the chart's model size.final intGets the style of teh font of the numbers axis title.final StringGets the text of the title of the numbers axis.final booleanisFontNameExists(String name) Returns true if the font name exists in the graphics enviornment.final voidsetChartDatasetCustomGreatestValue(float value) Sets the custom greatest value of the data sets.final voidsetChartDatasetCustomizeGreatestValue(boolean customize) Sets whether the true greatest value in the data sets will be substituted by the custom value.final voidsetChartDatasetCustomizeLeastValue(boolean customize) Sets whether the true least value in the data sets will be substituted by the custom value.final voidsetChartDatasetCustomLeastValue(float value) Sets the custom least value of the data sets.final voidsetChartGraphableToAvailableRatio(float ratio) Sets how much of the chart's graph is used by the graph's components.final voidsetGraphChart2DProperties(GraphChart2DProperties graphChart2DProps) Sets all properties to be the values of another GraphChart2DProperties object.final voidSets all properties to their default values.final voidsetGraphComponentsColoringByCat(boolean b) Sets whether the graph components have different colors across sets (or across cats).final voidSets the color properties for the colors by cat coloring.final voidsetLabelsAxisBetweenLabelsAndTicksGapExistence(boolean existence) Sets whether a gap between the labels and ticks exists, between.final voidsetLabelsAxisBetweenLabelsAndTicksGapThicknessModel(int thickness) Sets the thickness of the gap between the labels and ticks, between, for the chart's model size.final voidsetLabelsAxisBetweenLabelsOrTicksGapExistence(boolean existence) Sets whether a gap between the labels or ticks exists, across.final voidsetLabelsAxisBetweenLabelsOrTicksGapThicknessModel(int thickness) Sets the thickness of the gap between the labels or ticks, across, for the chart's model size.final voidsetLabelsAxisExistence(boolean existence) Sets the existence of the labels axis.final voidSets the color of the font of the labels of the labels axis.final voidSets the name of the font of the labels of the labels axis.final voidsetLabelsAxisLabelsFontPointModel(int point) Sets the point of the font of the labels axis labels for the chart's model size.final voidsetLabelsAxisLabelsFontStyle(int style) Sets the style of the font of the labels axis labels.final voidsetLabelsAxisLabelsTexts(String[] texts) Sets the text of each labels axis label.final voidsetLabelsAxisTicksAlignment(int alignment) Sets the placement of the ticks on the labels axis.final voidsetLabelsAxisTicksColor(Color color) Sets the color of the labels axis ticks.final voidsetLabelsAxisTicksExistence(boolean existence) Sets whether there exists ticks along the labels axis.final voidSets the color of the thin line that outlines the labels axis ticks.final voidsetLabelsAxisTicksOutlineExistence(boolean existence) Sets whether a thin line outlines the labels axis ticks.final voidSets the size of the labels axis ticks for the chart's model size.final voidsetLabelsAxisTitleBetweenRestGapExistence(boolean existence) Sets whether the gap above the labels axis title exists.final voidsetLabelsAxisTitleBetweenRestGapThicknessModel(int thickness) Sets the thickness of the gap above the labels axis title for the chart's model size.final voidsetLabelsAxisTitleExistence(boolean existence) Sets whether the title of the labels axis exists.final voidsetLabelsAxisTitleFontColor(Color color) Sets the color of the font of the labels axis title.final voidSets the name of the font of the labels axis title.final voidsetLabelsAxisTitleFontPointModel(int point) Sets the font point of the labels axis title for the chart's model size.final voidsetLabelsAxisTitleFontStyle(int style) Sets the style of teh font of the labels axis title.final voidsetLabelsAxisTitleText(String text) Sets the text of the title of the labels axis.final voidsetNumbersAxisBetweenLabelsAndTicksGapExistence(boolean existence) Sets whether a gap between the labels and ticks exists, horizontally.final voidsetNumbersAxisBetweenLabelsAndTicksGapThicknessModel(int thickness) Sets the thickness of the gap between the labels and ticks, horizontally, for the chart's model size.final voidsetNumbersAxisBetweenLabelsOrTicksGapExistence(boolean existence) Sets whether a gap between the labels or ticks exists, vertically.final voidsetNumbersAxisBetweenLabelsOrTicksGapThicknessModel(int thickness) Sets the thickness of the gap between the labels or ticks, vertically, for the chart's model size.final voidSets the color of the font of the labels of the numbers axis.final voidSets the name of the font of the labels of the numbers axis.final voidsetNumbersAxisLabelsFontPointModel(int point) Sets the point of the font of the numbers axis labels for the chart's model size.final voidsetNumbersAxisLabelsFontStyle(int style) Sets the style of the font of the numbers axis labels.final voidsetNumbersAxisNumLabels(int num) Sets the number of labels in the numbers axis.final voidsetNumbersAxisTicksColor(Color color) Sets the color of the numbers axis ticks.final voidsetNumbersAxisTicksExistence(boolean existence) Sets whether there exists ticks along the numbers axis.final voidSets the color of the thin line that outlines the numbers axis ticks.final voidsetNumbersAxisTicksOutlineExistence(boolean existence) Sets whether a thin line outlines the numbers axis ticks.final voidSets the size of the numbers axis ticks for the chart's model size.final voidsetNumbersAxisTitleBetweenRestGapExistence(boolean existence) Sets whether the gap right of the numbers axis title exists.final voidsetNumbersAxisTitleBetweenRestGapThicknessModel(int thickness) Sets the thickness of the gap right of the numbers axis title for the chart's model size.final voidsetNumbersAxisTitleExistence(boolean existence) Sets whether the title of the numbers axis exists.final voidSets the color of the font of the numbers axis title.final voidSets the name of the font of the numbers axis title.final voidsetNumbersAxisTitleFontPointModel(int point) Sets the font point of the numbers axis title for the chart's model size.final voidsetNumbersAxisTitleFontStyle(int style) Sets the style of teh font of the numbers axis title.final voidSets the text of the title of the numbers axis.
-
Field Details
-
CENTERED
public static final int CENTEREDIndicates the ticks of an axis should be centered on each label of the axis. Used by setLabelsAxisTicksAlignment (int).- See Also:
-
BETWEEN
public static final int BETWEENIndicates the ticks of an axis should be centered between the labels of the axis. Used by setLabelsAxisTicksAlignment (int).- See Also:
-
CHART_DATASET_CUSTOMIZE_GREATEST_VALUE_DEFAULT
public static final boolean CHART_DATASET_CUSTOMIZE_GREATEST_VALUE_DEFAULTThe default is false.- See Also:
-
CHART_DATASET_CUSTOM_GREATEST_VALUE_DEFAULT
public static final float CHART_DATASET_CUSTOM_GREATEST_VALUE_DEFAULTThe default is 0.- See Also:
-
CHART_DATASET_CUSTOMIZE_LEAST_VALUE_DEFAULT
public static final boolean CHART_DATASET_CUSTOMIZE_LEAST_VALUE_DEFAULTThe default is false.- See Also:
-
CHART_DATASET_CUSTOM_LEAST_VALUE_DEFAULT
public static final float CHART_DATASET_CUSTOM_LEAST_VALUE_DEFAULTThe default is 0.- See Also:
-
CHART_GRAPHABLE_TO_AVAILABLE_RATIO_DEFAULT
public static final float CHART_GRAPHABLE_TO_AVAILABLE_RATIO_DEFAULTThe default is .95f.- See Also:
-
NUMBERS_AXIS_NUM_LABELS_DEFAULT
public static final int NUMBERS_AXIS_NUM_LABELS_DEFAULTThe default is 7.- See Also:
-
LABELS_AXIS_EXISTENCE_DEFAULT
public static final boolean LABELS_AXIS_EXISTENCE_DEFAULTThe default is true.- See Also:
-
LABELS_AXIS_TICKS_ALIGNMENT_DEFAULT
public static final int LABELS_AXIS_TICKS_ALIGNMENT_DEFAULTThe default is BETWEEN.- See Also:
-
LABELS_AXIS_LABELS_TEXTS_DEFAULT
The default is String[0]. -
LABELS_AXIS_TITLE_EXISTENCE_DEFAULT
public static final boolean LABELS_AXIS_TITLE_EXISTENCE_DEFAULTThe default is true.- See Also:
-
LABELS_AXIS_TITLE_TEXT_DEFAULT
The default is "".- See Also:
-
LABELS_AXIS_TITLE_FONT_POINT_MODEL_DEFAULT
public static final int LABELS_AXIS_TITLE_FONT_POINT_MODEL_DEFAULTThe default is 11.- See Also:
-
LABELS_AXIS_TITLE_FONT_NAME_DEFAULT
The default is "SansSerif".- See Also:
-
LABELS_AXIS_TITLE_FONT_COLOR_DEFAULT
The default is Color.black. -
LABELS_AXIS_TITLE_FONT_STYLE_DEFAULT
public static final int LABELS_AXIS_TITLE_FONT_STYLE_DEFAULTThe default is Font.PLAIN.- See Also:
-
LABELS_AXIS_TITLE_BETWEEN_REST_GAP_EXISTENCE_DEFAULT
public static final boolean LABELS_AXIS_TITLE_BETWEEN_REST_GAP_EXISTENCE_DEFAULTThe default is true.- See Also:
-
LABELS_AXIS_TITLE_BETWEEN_REST_GAP_THICKNESS_MODEL_DEFAULT
public static final int LABELS_AXIS_TITLE_BETWEEN_REST_GAP_THICKNESS_MODEL_DEFAULTThe default is 3.- See Also:
-
LABELS_AXIS_TICKS_EXISTENCE_DEFAULT
public static final boolean LABELS_AXIS_TICKS_EXISTENCE_DEFAULTThe default is true.- See Also:
-
LABELS_AXIS_TICKS_SIZE_MODEL_DEFAULT
The default is Dimension (3, 3). -
LABELS_AXIS_TICKS_COLOR_DEFAULT
The default is Color.black. -
LABELS_AXIS_TICKS_OUTLINE_EXISTENCE_DEFAULT
public static final boolean LABELS_AXIS_TICKS_OUTLINE_EXISTENCE_DEFAULTThe default is false.- See Also:
-
LABELS_AXIS_TICKS_OUTLINE_COLOR_DEFAULT
The default is Color.black. -
LABELS_AXIS_LABELS_FONT_POINT_MODEL_DEFAULT
public static final int LABELS_AXIS_LABELS_FONT_POINT_MODEL_DEFAULTThe default is 10.- See Also:
-
LABELS_AXIS_LABELS_FONT_NAME_DEFAULT
The default is "SansSerif".- See Also:
-
LABELS_AXIS_LABELS_FONT_COLOR_DEFAULT
The default is Color.black. -
LABELS_AXIS_LABELS_FONT_STYLE_DEFAULT
public static final int LABELS_AXIS_LABELS_FONT_STYLE_DEFAULTThe default is Font.PLAIN.- See Also:
-
LABELS_AXIS_BETWEEN_LABELS_OR_TICKS_GAP_EXISTENCE_DEFAULT
public static final boolean LABELS_AXIS_BETWEEN_LABELS_OR_TICKS_GAP_EXISTENCE_DEFAULTThe default is true.- See Also:
-
LABELS_AXIS_BETWEEN_LABELS_OR_TICKS_GAP_THICKNESS_MODEL_DEFAULT
public static final int LABELS_AXIS_BETWEEN_LABELS_OR_TICKS_GAP_THICKNESS_MODEL_DEFAULTThe default is 3.- See Also:
-
LABELS_AXIS_BETWEEN_LABELS_AND_TICKS_GAP_EXISTENCE_DEFAULT
public static final boolean LABELS_AXIS_BETWEEN_LABELS_AND_TICKS_GAP_EXISTENCE_DEFAULTThe default is true.- See Also:
-
LABELS_AXIS_BETWEEN_LABELS_AND_TICKS_GAP_THICKNESS_MODEL_DEFAULT
public static final int LABELS_AXIS_BETWEEN_LABELS_AND_TICKS_GAP_THICKNESS_MODEL_DEFAULTThe default is 3.- See Also:
-
NUMBERS_AXIS_TITLE_EXISTENCE_DEFAULT
public static final boolean NUMBERS_AXIS_TITLE_EXISTENCE_DEFAULTThe default is true.- See Also:
-
NUMBERS_AXIS_TITLE_TEXT_DEFAULT
The default is "".- See Also:
-
NUMBERS_AXIS_TITLE_FONT_POINT_MODEL_DEFAULT
public static final int NUMBERS_AXIS_TITLE_FONT_POINT_MODEL_DEFAULTThe default is 11.- See Also:
-
NUMBERS_AXIS_TITLE_FONT_NAME_DEFAULT
The default is "SansSerif".- See Also:
-
NUMBERS_AXIS_TITLE_FONT_COLOR_DEFAULT
The default is Color.black. -
NUMBERS_AXIS_TITLE_FONT_STYLE_DEFAULT
public static final int NUMBERS_AXIS_TITLE_FONT_STYLE_DEFAULTThe default is Font.PLAIN.- See Also:
-
NUMBERS_AXIS_TITLE_BETWEEN_REST_GAP_EXISTENCE_DEFAULT
public static final boolean NUMBERS_AXIS_TITLE_BETWEEN_REST_GAP_EXISTENCE_DEFAULTThe default is true.- See Also:
-
NUMBERS_AXIS_TITLE_BETWEEN_REST_GAP_THICKNESS_MODEL_DEFAULT
public static final int NUMBERS_AXIS_TITLE_BETWEEN_REST_GAP_THICKNESS_MODEL_DEFAULTThe default is 3.- See Also:
-
NUMBERS_AXIS_TICKS_EXISTENCE_DEFAULT
public static final boolean NUMBERS_AXIS_TICKS_EXISTENCE_DEFAULTThe default is true.- See Also:
-
NUMBERS_AXIS_TICKS_SIZE_MODEL_DEFAULT
The default is Dimension (3, 3). -
NUMBERS_AXIS_TICKS_COLOR_DEFAULT
The default is Color.black. -
NUMBERS_AXIS_TICKS_OUTLINE_EXISTENCE_DEFAULT
public static final boolean NUMBERS_AXIS_TICKS_OUTLINE_EXISTENCE_DEFAULTThe default is false.- See Also:
-
NUMBERS_AXIS_TICKS_OUTLINE_COLOR_DEFAULT
The default is Color.black. -
NUMBERS_AXIS_LABELS_FONT_POINT_MODEL_DEFAULT
public static final int NUMBERS_AXIS_LABELS_FONT_POINT_MODEL_DEFAULTThe default is 10.- See Also:
-
NUMBERS_AXIS_LABELS_FONT_NAME_DEFAULT
The default is "SansSerif".- See Also:
-
NUMBERS_AXIS_LABELS_FONT_COLOR_DEFAULT
The default is Color.black. -
NUMBERS_AXIS_LABELS_FONT_STYLE_DEFAULT
public static final int NUMBERS_AXIS_LABELS_FONT_STYLE_DEFAULTThe default is Font.PLAIN.- See Also:
-
NUMBERS_AXIS_BETWEEN_LABELS_OR_TICKS_GAP_EXISTENCE_DEFAULT
public static final boolean NUMBERS_AXIS_BETWEEN_LABELS_OR_TICKS_GAP_EXISTENCE_DEFAULTThe default is true.- See Also:
-
NUMBERS_AXIS_BETWEEN_LABELS_OR_TICKS_GAP_THICKNESS_MODEL_DEFAULT
public static final int NUMBERS_AXIS_BETWEEN_LABELS_OR_TICKS_GAP_THICKNESS_MODEL_DEFAULTThe default is 3.- See Also:
-
NUMBERS_AXIS_BETWEEN_LABELS_AND_TICKS_GAP_EXISTENCE_DEFAULT
public static final boolean NUMBERS_AXIS_BETWEEN_LABELS_AND_TICKS_GAP_EXISTENCE_DEFAULTThe default is true.- See Also:
-
NUMBERS_AXIS_BETWEEN_LABELS_AND_TICKS_GAP_THICKNESS_MODEL_DEFAULT
public static final int NUMBERS_AXIS_BETWEEN_LABELS_AND_TICKS_GAP_THICKNESS_MODEL_DEFAULTThe default is 3.- See Also:
-
GRAPH_COMPONENTS_COLORING_BY_CAT_DEFAULT
public static final boolean GRAPH_COMPONENTS_COLORING_BY_CAT_DEFAULTThe default is false.- See Also:
-
GRAPH_COMPONENTS_COLORS_BY_CAT_DEFAULT
The default is null.
-
-
Constructor Details
-
GraphChart2DProperties
public GraphChart2DProperties()Creates a GraphChart2DProperties object with the documented default values. -
GraphChart2DProperties
Creates a GraphChart2DProperties object with property values copied from another object. The copying is a deep copy.- Parameters:
graphChart2DProps- The properties to copy.
-
-
Method Details
-
setGraphChart2DPropertiesToDefaults
public final void setGraphChart2DPropertiesToDefaults()Sets all properties to their default values. -
setGraphChart2DProperties
Sets all properties to be the values of another GraphChart2DProperties object. The copying is a deep copy.- Parameters:
graphChart2DProps- The GraphChart2DProperties to copy.
-
setChartDatasetCustomizeGreatestValue
public final void setChartDatasetCustomizeGreatestValue(boolean customize) Sets whether the true greatest value in the data sets will be substituted by the custom value. This effects the range of the labels of the numbers axis.- Parameters:
customize- If true, the greatest value of the data will be customized.
-
setChartDatasetCustomGreatestValue
public final void setChartDatasetCustomGreatestValue(float value) Sets the custom greatest value of the data sets. This value must be greater than or equal to the true greatest value of the data sets for it to be used. This effects the scale of the labels of the numbers axis.- Parameters:
value- The custom greatest value of the data sets.
-
setChartDatasetCustomizeLeastValue
public final void setChartDatasetCustomizeLeastValue(boolean customize) Sets whether the true least value in the data sets will be substituted by the custom value. This effects the range of the labels of the numbers axis.- Parameters:
customize- If true, the least value of the data will be customized.
-
setChartDatasetCustomLeastValue
public final void setChartDatasetCustomLeastValue(float value) Sets the custom least value of the data sets. This value must be less than or equal to the true least value of the data sets for it to be used. This effects the scale of the labels of the numbers axis.- Parameters:
value- The custom least value of the data sets.
-
setChartGraphableToAvailableRatio
public final void setChartGraphableToAvailableRatio(float ratio) Sets how much of the chart's graph is used by the graph's components. This value must be: 0f invalid input: '<'= value invalid input: '<'= 1f. This effects the scale of the labels of the numbers axis.- Parameters:
ratio- The ratio of usable to available of the graph.
-
setLabelsAxisExistence
public final void setLabelsAxisExistence(boolean existence) Sets the existence of the labels axis. If existence is false, then the labels axis won't be painted and the axis' texts won't need to be set.- Parameters:
existence- If true, then exists.
-
setLabelsAxisTicksAlignment
public final void setLabelsAxisTicksAlignment(int alignment) Sets the placement of the ticks on the labels axis. The ticks may be either between the labels axis labels (ie for bar charts) or centered on each labels axis label (ie for other charts). The possible values are BETWEEN and CENTERED.- Parameters:
alignment- The alignment of the labels axis ticks.
-
setLabelsAxisLabelsTexts
Sets the text of each labels axis label. This determines how many categories the data in the data sets are split into.- Parameters:
texts- The texts of the labels axis labels.
-
setLabelsAxisTitleExistence
public final void setLabelsAxisTitleExistence(boolean existence) Sets whether the title of the labels axis exists.- Parameters:
existence- If true, the title exists.
-
setLabelsAxisTitleText
Sets the text of the title of the labels axis.- Parameters:
text- The title of the labels axis.
-
setLabelsAxisTitleFontPointModel
public final void setLabelsAxisTitleFontPointModel(int point) Sets the font point of the labels axis title for the chart's model size.- Parameters:
point- The model font point of the labels axis title.
-
setLabelsAxisTitleFontName
Sets the name of the font of the labels axis title. Accepts standard font names.- Parameters:
name- The name of the font of the labels axis title.
-
setLabelsAxisTitleFontColor
Sets the color of the font of the labels axis title.- Parameters:
color- The color of the font of the labels axis title.
-
setLabelsAxisTitleFontStyle
public final void setLabelsAxisTitleFontStyle(int style) Sets the style of teh font of the labels axis title. Accepts standard values for font styles.- Parameters:
style- The style of the font of the labels axis title.
-
setLabelsAxisTitleBetweenRestGapExistence
public final void setLabelsAxisTitleBetweenRestGapExistence(boolean existence) Sets whether the gap above the labels axis title exists.- Parameters:
existence- If true, the gap exists.
-
setLabelsAxisTitleBetweenRestGapThicknessModel
public final void setLabelsAxisTitleBetweenRestGapThicknessModel(int thickness) Sets the thickness of the gap above the labels axis title for the chart's model size.- Parameters:
thickness- The model thickness of the gap.
-
setLabelsAxisTicksExistence
public final void setLabelsAxisTicksExistence(boolean existence) Sets whether there exists ticks along the labels axis.- Parameters:
existence- If true, then they exist.
-
setLabelsAxisTicksSizeModel
Sets the size of the labels axis ticks for the chart's model size.- Parameters:
size- The model size of the labels axis ticks.
-
setLabelsAxisTicksColor
Sets the color of the labels axis ticks.- Parameters:
color- The color of the labels axis ticks.
-
setLabelsAxisTicksOutlineExistence
public final void setLabelsAxisTicksOutlineExistence(boolean existence) Sets whether a thin line outlines the labels axis ticks.- Parameters:
existence- If true, then a thin outline exists.
-
setLabelsAxisTicksOutlineColor
Sets the color of the thin line that outlines the labels axis ticks.- Parameters:
color- The color of the line that outlines the labels axis ticks.
-
setLabelsAxisLabelsFontPointModel
public final void setLabelsAxisLabelsFontPointModel(int point) Sets the point of the font of the labels axis labels for the chart's model size.- Parameters:
point- The model font point of the labels axis labels.
-
setLabelsAxisLabelsFontName
Sets the name of the font of the labels of the labels axis. Accepts standard font names.- Parameters:
name- The name of the font.
-
setLabelsAxisLabelsFontColor
Sets the color of the font of the labels of the labels axis.- Parameters:
color- The color of the font.
-
setLabelsAxisLabelsFontStyle
public final void setLabelsAxisLabelsFontStyle(int style) Sets the style of the font of the labels axis labels. Accepts standard font styles.- Parameters:
style- The style of the font.
-
setLabelsAxisBetweenLabelsOrTicksGapExistence
public final void setLabelsAxisBetweenLabelsOrTicksGapExistence(boolean existence) Sets whether a gap between the labels or ticks exists, across. The gap will be applied to whichever are naturally closer.- Parameters:
existence- If true, the gap exists.
-
setLabelsAxisBetweenLabelsOrTicksGapThicknessModel
public final void setLabelsAxisBetweenLabelsOrTicksGapThicknessModel(int thickness) Sets the thickness of the gap between the labels or ticks, across, for the chart's model size. The gap will be applied to whichever are naturally closer.- Parameters:
thicknss- The model thickness of the gap.
-
setLabelsAxisBetweenLabelsAndTicksGapExistence
public final void setLabelsAxisBetweenLabelsAndTicksGapExistence(boolean existence) Sets whether a gap between the labels and ticks exists, between.- Parameters:
existence- If true, the gap exists.
-
setLabelsAxisBetweenLabelsAndTicksGapThicknessModel
public final void setLabelsAxisBetweenLabelsAndTicksGapThicknessModel(int thickness) Sets the thickness of the gap between the labels and ticks, between, for the chart's model size.- Parameters:
thickness- The model thickness of the gap.
-
setNumbersAxisTitleExistence
public final void setNumbersAxisTitleExistence(boolean existence) Sets whether the title of the numbers axis exists.- Parameters:
existence- If true, the title exists.
-
setNumbersAxisTitleText
Sets the text of the title of the numbers axis.- Parameters:
text- The title of the numbers axis.
-
setNumbersAxisTitleFontPointModel
public final void setNumbersAxisTitleFontPointModel(int point) Sets the font point of the numbers axis title for the chart's model size.- Parameters:
point- The model font point of the numbers axis title.
-
setNumbersAxisTitleFontName
Sets the name of the font of the numbers axis title. Accepts standard font names.- Parameters:
name- The name of the font of the numbers axis title.
-
setNumbersAxisTitleFontColor
Sets the color of the font of the numbers axis title.- Parameters:
color- The color of the font of the numbers axis title.
-
setNumbersAxisTitleFontStyle
public final void setNumbersAxisTitleFontStyle(int style) Sets the style of teh font of the numbers axis title. Accepts standard values for font styles.- Parameters:
style- The style of the font of the numbers axis title.
-
setNumbersAxisTitleBetweenRestGapExistence
public final void setNumbersAxisTitleBetweenRestGapExistence(boolean existence) Sets whether the gap right of the numbers axis title exists.- Parameters:
existence- If true, the gap exists.
-
setNumbersAxisTitleBetweenRestGapThicknessModel
public final void setNumbersAxisTitleBetweenRestGapThicknessModel(int thickness) Sets the thickness of the gap right of the numbers axis title for the chart's model size.- Parameters:
thickness- The model thickness of the gap.
-
setNumbersAxisTicksExistence
public final void setNumbersAxisTicksExistence(boolean existence) Sets whether there exists ticks along the numbers axis.- Parameters:
existence- If true, then they exist.
-
setNumbersAxisTicksSizeModel
Sets the size of the numbers axis ticks for the chart's model size.- Parameters:
size- The model size of the numbers axis ticks.
-
setNumbersAxisTicksColor
Sets the color of the numbers axis ticks.- Parameters:
color- The color of the numbers axis ticks.
-
setNumbersAxisTicksOutlineExistence
public final void setNumbersAxisTicksOutlineExistence(boolean existence) Sets whether a thin line outlines the numbers axis ticks.- Parameters:
existence- If true, then a thin outline exists.
-
setNumbersAxisTicksOutlineColor
Sets the color of the thin line that outlines the numbers axis ticks.- Parameters:
color- The color of the line that outliens the numbers axis ticks.
-
setNumbersAxisNumLabels
public final void setNumbersAxisNumLabels(int num) Sets the number of labels in the numbers axis.- Parameters:
num- The number of labels in the numbers axis.
-
setNumbersAxisLabelsFontPointModel
public final void setNumbersAxisLabelsFontPointModel(int point) Sets the point of the font of the numbers axis labels for the chart's model size.- Parameters:
point- The model font point of the numbers axis labels.
-
setNumbersAxisLabelsFontName
Sets the name of the font of the labels of the numbers axis. Accepts standard font names.- Parameters:
name- The name of the font.
-
setNumbersAxisLabelsFontColor
Sets the color of the font of the labels of the numbers axis.- Parameters:
color- The color of the font.
-
setNumbersAxisLabelsFontStyle
public final void setNumbersAxisLabelsFontStyle(int style) Sets the style of the font of the numbers axis labels. Accepts standard font styles.- Parameters:
style- The style of the font.
-
setNumbersAxisBetweenLabelsOrTicksGapExistence
public final void setNumbersAxisBetweenLabelsOrTicksGapExistence(boolean existence) Sets whether a gap between the labels or ticks exists, vertically. The gap will be applied to whichever are naturally closer.- Parameters:
existence- If true, the gap exists.
-
setNumbersAxisBetweenLabelsOrTicksGapThicknessModel
public final void setNumbersAxisBetweenLabelsOrTicksGapThicknessModel(int thickness) Sets the thickness of the gap between the labels or ticks, vertically, for the chart's model size. The gap will be applied to whichever are naturally closer.- Parameters:
thicknss- The model thickness of the gap.
-
setNumbersAxisBetweenLabelsAndTicksGapExistence
public final void setNumbersAxisBetweenLabelsAndTicksGapExistence(boolean existence) Sets whether a gap between the labels and ticks exists, horizontally.- Parameters:
existence- If true, the gap exists.
-
setNumbersAxisBetweenLabelsAndTicksGapThicknessModel
public final void setNumbersAxisBetweenLabelsAndTicksGapThicknessModel(int thickness) Sets the thickness of the gap between the labels and ticks, horizontally, for the chart's model size.- Parameters:
thickness- The model thickness of the gap.
-
setGraphComponentsColoringByCat
public final void setGraphComponentsColoringByCat(boolean b) Sets whether the graph components have different colors across sets (or across cats).- Parameters:
b- If true, then colors across sets.
-
setGraphComponentsColorsByCat
Sets the color properties for the colors by cat coloring.- Parameters:
props- The properties of the colors by cat coloring.
-
getChartDatasetCustomizeGreatestValue
public final boolean getChartDatasetCustomizeGreatestValue()Gets whether the true greatest value in the data sets will be substituted by the custom value. This effects the range of the labels of the numbers axis.- Returns:
- boolean If true, the greatest value of the data will be customized.
-
getChartDatasetCustomGreatestValue
public final float getChartDatasetCustomGreatestValue()Gets the custom greatest value of the data sets. This value must be greater than or equal to the true greatest value of the data sets for it to be used. This effects the scale of the labels of the numbers axis.- Returns:
- float The custom greatest value of the data sets.
-
getChartDatasetCustomizeLeastValue
public final boolean getChartDatasetCustomizeLeastValue()Gets whether the true least value in the data sets will be substituted by the custom value. This effects the range of the labels of the numbers axis.- Returns:
- boolean If true, the least value of the data will be customized.
-
getChartDatasetCustomLeastValue
public final float getChartDatasetCustomLeastValue()Gets the custom least value of the data sets. This value must be less than or equal to the true least value of the data sets for it to be used. This effects the scale of the labels of the numbers axis.- Returns:
- float The custom least value of the data sets.
-
getChartGraphableToAvailableRatio
public float getChartGraphableToAvailableRatio()Gets how much of the chart's graph is used by the graph's components. This value must be: 0f invalid input: '<'= value invalid input: '<'= 1f. This effects the scale of the labels of the numbers axis.- Returns:
- float The ratio of usable to available of the graph.
-
getLabelsAxisExistence
public final boolean getLabelsAxisExistence()Gets the existence of the labels axis. If existence is false, then the labels axis won't be painted and the axis' texts won't need to be set.- Returns:
- If true, then exists.
-
getLabelsAxisTicksAlignment
public final int getLabelsAxisTicksAlignment()Gets the placement of the ticks on the labels axis. The ticks may be either between the labels axis labels (ie for bar charts) or centered on each labels axis label (ie for other charts). The possible values are BETWEEN and CENTERED.- Returns:
- int The alignment of the labels axis ticks.
-
getLabelsAxisLabelsTexts
Gets the text of each labels axis label. This determines how many categories the data in the data sets are split into.- Returns:
- String[] The texts of the labels axis labels.
-
getLabelsAxisTitleExistence
public final boolean getLabelsAxisTitleExistence()Gets whether the title of the labels axis exists.- Returns:
- boolean If true, the title exists.
-
getLabelsAxisTitleText
Gets the text of the title of the labels axis.- Returns:
- String The title of the labels axis.
-
getLabelsAxisTitleFontPointModel
public final int getLabelsAxisTitleFontPointModel()Gets the font point of the labels axis title for the chart's model size.- Returns:
- int The model font point of the labels axis title.
-
getLabelsAxisTitleFontName
Gets the name of the font of the labels axis title. Accepts standard font names.- Returns:
- String The name of the font of the labels axis title.
-
getLabelsAxisTitleFontColor
Gets the color of the font of the labels axis title.- Returns:
- Color The color of the font of the labels axis title.
-
getLabelsAxisTitleFontStyle
public final int getLabelsAxisTitleFontStyle()Gets the style of teh font of the labels axis title. Accepts standard values for font styles.- Returns:
- int The style of the font of the labels axis title.
-
getLabelsAxisTitleBetweenRestGapExistence
public final boolean getLabelsAxisTitleBetweenRestGapExistence()Gets whether the gap above the labels axis title exists.- Returns:
- boolean If true, the gap exists.
-
getLabelsAxisTitleBetweenRestGapThicknessModel
public final int getLabelsAxisTitleBetweenRestGapThicknessModel()Gets the thickness of the gap above the labels axis title for the chart's model size.- Returns:
- int The model thickness of the gap.
-
getNumbersAxisTicksExistence
public final boolean getNumbersAxisTicksExistence()Gets whether there exists ticks along the numbers axis.- Returns:
- If true, then they exist.
-
getLabelsAxisTicksExistence
public final boolean getLabelsAxisTicksExistence()Gets whether there exists ticks along the labels axis.- Returns:
- If true, then they exist.
-
getLabelsAxisTicksSizeModel
Gets the size of the labels axis ticks for the chart's model size.- Returns:
- Dimension The model size of the labels axis ticks.
-
getLabelsAxisTicksColor
Gets the color of the labels axis ticks.- Returns:
- Color The color of the labels axis ticks.
-
getLabelsAxisTicksOutlineExistence
public final boolean getLabelsAxisTicksOutlineExistence()Gets whether a thin line outlines the labels axis ticks.- Returns:
- boolean If true, then a thin outline exists.
-
getLabelsAxisTicksOutlineColor
Gets the color of the thin line that outlines the labels axis ticks.- Returns:
- Color The color of the line that outliens the labels axis ticks.
-
getLabelsAxisLabelsFontPointModel
public final int getLabelsAxisLabelsFontPointModel()Gets the point of the font of the labels axis labels for the chart's model size.- Returns:
- int The model font point of the labels axis labels.
-
getLabelsAxisLabelsFontName
Gets the name of the font of the labels of the labels axis. Accepts standard font names.- Returns:
- String The name of the font.
-
getLabelsAxisLabelsFontColor
Gets the color of the font of the labels of the labels axis.- Returns:
- Color The color of the font.
-
getLabelsAxisLabelsFontStyle
public final int getLabelsAxisLabelsFontStyle()Gets the style of the font of the labels axis labels. Accepts standard font styles.- Returns:
- int The style of the font.
-
getLabelsAxisBetweenLabelsOrTicksGapExistence
public final boolean getLabelsAxisBetweenLabelsOrTicksGapExistence()Gets whether a gap between the labels or ticks exists, horizontally. The gap will be applied to whichever are naturally closer.- Returns:
- boolean If true, the gap exists.
-
getLabelsAxisBetweenLabelsOrTicksGapThicknessModel
public final int getLabelsAxisBetweenLabelsOrTicksGapThicknessModel()Gets the thickness of the gap between the labels or ticks, horizontally, for the chart's model size. The gap will be applied to whichever are naturally closer.- Returns:
- int The model thickness of the gap.
-
getLabelsAxisBetweenLabelsAndTicksGapExistence
public final boolean getLabelsAxisBetweenLabelsAndTicksGapExistence()Gets whether a gap between the labels and ticks exists, vertically.- Returns:
- boolean If true, the gap exists.
-
getLabelsAxisBetweenLabelsAndTicksGapThicknessModel
public final int getLabelsAxisBetweenLabelsAndTicksGapThicknessModel()Gets the thickness of the gap between the labels and ticks, vertically, for the chart's model size.- Returns:
- int The model thickness of the gap.
-
getNumbersAxisTitleExistence
public final boolean getNumbersAxisTitleExistence()Gets whether the title of the numbers axis exists.- Returns:
- boolean If true, the title exists.
-
getNumbersAxisTitleText
Gets the text of the title of the numbers axis.- Returns:
- String The title of the numbers axis.
-
getNumbersAxisTitleFontPointModel
public final int getNumbersAxisTitleFontPointModel()Gets the font point of the numbers axis title for the chart's model size.- Returns:
- int The model font point of the numbers axis title.
-
getNumbersAxisTitleFontName
Gets the name of the font of the numbers axis title. Accepts standard font names.- Returns:
- String The name of the font of the numbers axis title.
-
getNumbersAxisTitleFontColor
Gets the color of the font of the numbers axis title.- Returns:
- Color The color of the font of the numbers axis title.
-
getNumbersAxisTitleFontStyle
public final int getNumbersAxisTitleFontStyle()Gets the style of teh font of the numbers axis title. Accepts standard values for font styles.- Returns:
- int The style of the font of the numbers axis title.
-
getNumbersAxisTitleBetweenRestGapExistence
public final boolean getNumbersAxisTitleBetweenRestGapExistence()Gets whether the gap right of the numbers axis title exists.- Returns:
- boolean If true, the gap exists.
-
getNumbersAxisTitleBetweenRestGapThicknessModel
public final int getNumbersAxisTitleBetweenRestGapThicknessModel()Gets the thickness of the gap right of the numbers axis title for the chart's model size.- Returns:
- int The model thickness of the gap.
-
getNumbersAxisTicksSizeModel
Gets the size of the numbers axis ticks for the chart's model size.- Returns:
- Dimension The model size of the numbers axis ticks.
-
getNumbersAxisTicksColor
Gets the color of the numbers axis ticks.- Returns:
- Color The color of the numbers axis ticks.
-
getNumbersAxisTicksOutlineExistence
public final boolean getNumbersAxisTicksOutlineExistence()Gets whether a thin line outlines the numbers axis ticks.- Returns:
- boolean If true, then a thin outline exists.
-
getNumbersAxisTicksOutlineColor
Gets the color of the thin line that outlines the numbers axis ticks.- Returns:
- Color The color of the thin line that outliens the numbers axis ticks.
-
getNumbersAxisNumLabels
public final int getNumbersAxisNumLabels()Gets the number of labels in the numbers axis.- Returns:
- int The number of labels in the numbers axis.
-
getNumbersAxisLabelsFontPointModel
public final int getNumbersAxisLabelsFontPointModel()Gets the point of the font of the numbers axis labels for the chart's model size.- Returns:
- int The model font point of the numbers axis labels.
-
getNumbersAxisLabelsFontName
Gets the name of the font of the labels of the numbers axis. Accepts standard font names.- Returns:
- String The name of the font.
-
getNumbersAxisLabelsFontColor
Gets the color of the font of the labels of the numbers axis.- Returns:
- Color The color of the font.
-
getNumbersAxisLabelsFontStyle
public final int getNumbersAxisLabelsFontStyle()Gets the style of the font of the numbers axis labels. Accepts standard font styles.- Returns:
- int The style of the font.
-
getNumbersAxisBetweenLabelsOrTicksGapExistence
public final boolean getNumbersAxisBetweenLabelsOrTicksGapExistence()Gets whether a gap between the labels or ticks exists, vertically. The gap will be applied to whichever are naturally closer.- Returns:
- boolean If true, the gap exists.
-
getNumbersAxisBetweenLabelsOrTicksGapThicknessModel
public final int getNumbersAxisBetweenLabelsOrTicksGapThicknessModel()Gets the thickness of the gap between the labels or ticks, vertically, for the chart's model size. The gap will be applied to whichever are naturally closer.- Returns:
- int The model thickness of the gap.
-
getNumbersAxisBetweenLabelsAndTicksGapExistence
public final boolean getNumbersAxisBetweenLabelsAndTicksGapExistence()Gets whether a gap between the labels and ticks exists, horizontally.- Returns:
- boolean If true, the gap exists.
-
getNumbersAxisBetweenLabelsAndTicksGapThicknessModel
public final int getNumbersAxisBetweenLabelsAndTicksGapThicknessModel()Gets the thickness of the gap between the labels and ticks, horizontally, for the chart's model size.- Returns:
- int The model thickness of the gap.
-
getGraphComponentsColoringByCat
public final boolean getGraphComponentsColoringByCat()Gets whether the graph components have different colors across sets (or across cats).- Returns:
- If true, then colors across sets.
-
getGraphComponentsColorsByCat
Sets the color properties for the colors by cat coloring.- Returns:
- The properties of the colors by cat coloring.
-
isFontNameExists
Returns true if the font name exists in the graphics enviornment.- Parameters:
name- The name of the font to determine the existence of.- Returns:
- boolean If true, then the font name exists.
-