|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.sourceforge.chart2d.PieChart2DProperties
A data structure for holding the properties common to all PieChart2D charts. Pass this to any number of PieChart2D charts to have them configured with these properties.
| Field Summary | |
static boolean |
CHART_BETWEEN_PIE_LABELS_AND_PIE_GAP_EXISTENCE_DEFAULT
The default is true. |
static int |
CHART_BETWEEN_PIE_LABELS_AND_PIE_GAP_THICKNESS_MODEL_DEFAULT
The default is 10. |
static java.awt.Color[] |
CHART_DATASET_COLORS_DEFAULT
The default is Color[0]. |
static java.lang.String[] |
LEGEND_LABELS_TEXTS_DEFAULT
The default is String[0]. |
static int |
PERCENT
Indicates the pie numbers labels should have percent ratios of the number associated with this lable to the sum of all the numbers of the pie sectors. |
static boolean |
PIE_LABELS_BETWEEN_LABELS_GAP_EXISTENCE_DEFAULT
The default is true. |
static int |
PIE_LABELS_BETWEEN_LABELS_GAP_THICKNESS_MODEL_DEFAULT
The default is 4. |
static boolean |
PIE_LABELS_EXISTENCE_DEFAULT
The default is true. |
static java.awt.Color |
PIE_LABELS_LINES_COLOR_DEFAULT
The default is Color.black. |
static java.awt.Color |
PIE_LABELS_LINES_DOTS_COLOR_DEFAULT
The default is Color.black. |
static boolean |
PIE_LABELS_LINES_DOTS_EXISTENCE_DEFAULT
The default is true. |
static int |
PIE_LABELS_LINES_DOTS_THICKNESS_MODEL_DEFAULT
The default is 2. |
static boolean |
PIE_LABELS_LINES_EXISTENCE_DEFAULT
The default is true. |
static int |
PIE_LABELS_LINES_THICKNESS_MODEL_DEFAULT
The default is 1. |
static float |
PIE_LABELS_POINTS_BETWEEN_PIE_AND_LABEL_GAPS_DEPTH_RATIO_DEFAULT
The default is .25f. |
static boolean |
PIE_LABELS_POINTS_LABELS_GAP_OFFSET_EXISTENCE_DEFAULT
The default is true. |
static int |
PIE_LABELS_POINTS_LABELS_GAP_OFFSET_THICKNESS_MODEL_DEFAULT
The default is 2. |
static float |
PIE_LABELS_POINTS_PIE_SECTORS_DEPTH_RATIO_DEFAULT
The default is .25f. |
static int |
PIE_LABELS_TYPE_DEFAULT
The default is RAW + PERCENT. |
static int |
PIE_PREFERRED_SIZE_DEFAULT
The default is 100. |
static java.awt.Color |
PIE_SECTORS_OUTLINE_COLOR_DEFAULT
The default is Color.black. |
static boolean |
PIE_SECTORS_OUTLINE_EXISTENCE_DEFAULT
The default is true. |
static int |
RAW
Indicates the pie numbers labels should have raw numbers. |
static boolean |
VALIDATE_ON_UPDATE_DEFAULT
The default is true. |
| Constructor Summary | |
PieChart2DProperties()
Creates a PieChart2DProperties object with the documented default values, with a default Chart2DProperties object, and with a default Dataset object. |
|
PieChart2DProperties(Chart2DProperties chart2DProps)
Creates a PieChart2DProperties object with the documented default values, with the given Chart2DProperties object, and with a default Dataset object. |
|
PieChart2DProperties(Chart2DProperties chart2DProps,
Dataset dataset)
Creates a PieChart2DProperties object with the documented default values, with the given Chart2DProperties object, and with the given Dataset object. |
|
PieChart2DProperties(Dataset dataset)
Creates a PieChart2DProperties object with the documented default values, with a default Chart2DProperties object, and with the given Dataset object. |
|
PieChart2DProperties(PieChart2DProperties pieChart2DProps)
Creates a PieChart2DProperties object with property values (deep) copied from another PieChart2DProperties object, with a default Chart2DProperties object, and with a default Dataset object. |
|
PieChart2DProperties(PieChart2DProperties pieChart2DProps,
Chart2DProperties chart2DProps)
Creates a PieChart2DProperties object with property values (deep) copied from another PieChart2DProperties object, with the given Chart2DProperties object, and with a default Dataset object. |
|
PieChart2DProperties(PieChart2DProperties pieChart2DProps,
Chart2DProperties chart2DProps,
Dataset dataset)
Creates a PieChart2DProperties object with property values (deep) copied from another PieChart2DProperties object, with the given Chart2DProperties object, and with the given Dataset object. |
|
PieChart2DProperties(PieChart2DProperties pieChart2DProps,
Dataset dataset)
Creates a PieChart2DProperties object with property values (deep) copied from another PieChart2DProperties object, with a default Chart2DProperties object, and with the given Dataset object. |
|
| Method Summary | |
(package private) void |
addPieChart2D(PieChart2D pieChart2D)
Adds a PieChart2D object to the set of objects associated with this properties object. |
Chart2DProperties |
getChart2DProperties()
Returns the Chart2DProperties to use. |
boolean |
getChartBetweenPieLabelsAndPieGapExistence()
Returns whether the gap between each pie label and the pie exists. |
int |
getChartBetweenPieLabelsAndPieGapThicknessModel()
Returns the thickness of the gap between each pie label and the pie for the chart's model size. |
java.awt.Color[] |
getChartDatasetColors()
Returns the colors of the pie sectors and/or legend bullets. |
Dataset |
getDataset()
Returns the data set for the pie chart. |
java.lang.String[] |
getLegendLabelsTexts()
Returns the legend labels texts. |
(package private) boolean |
getPieChart2DNeedsUpdate(PieChart2D pieChart2D)
Gets whether any properties have changed since the PieChart2D object's last update. |
java.util.Vector |
getPieChart2DVector()
Returns the vector of PieChart2D objects that are using this object. |
boolean |
getPieLabelsBetweenLabelsGapExistence()
Returns whether a gap between each pie sector label exists. |
int |
getPieLabelsBetweenLabelsGapThicknessModel()
Returns the thickness of the gap between each pie label for the chart's model size. |
boolean |
getPieLabelsExistence()
Returns whether the pie sectors of the pie chart will be labeled. |
java.awt.Color |
getPieLabelsLinesColor()
Returns the color of the lines relating each pie sector with its particular label. |
java.awt.Color |
getPieLabelsLinesDotsColor()
Returns the color of the dots that exist at the beginning and ending of the lines relating each pie sector with its particular label. |
boolean |
getPieLabelsLinesDotsExistence()
Returns whether dots exist at the beginning and ending of the lines relating each pie sector with its particular label. |
int |
getPieLabelsLinesDotsThicknessModel()
Returns the thickness (ie diameter) of the dots that exist at the beginning and ending of the lines releating each pie sector with its particular label for the chart's model size. |
boolean |
getPieLabelsLinesExistence()
Returns whether lines relating each pie sector with its particular label exists. |
int |
getPieLabelsLinesThicknessModel()
Returns the thickness of the lines relating each pie sector with its particular label for the model size of the chart. |
float |
getPieLabelsPointsBetweenPieAndLabelGapsDepthRatio()
Returns the depth within each gap between each pie sector and label, from each pie, of the point at which a line coming from a label and a line coming from a pie, meet. |
boolean |
getPieLabelsPointsLabelsGapOffsetExistence()
Returns whether the gap between each pie label and a point from which a line may be drawn and/or on which a dot may be placed to relate each label with a particular pie sector exists. |
int |
getPieLabelsPointsLabelsGapOffsetThicknessModel()
Returns the gap between each pie label and a point from which a line may be drawn and/or on which a dot may be placed to relate each label with a particular pie sector for the chart's model size. |
float |
getPieLabelsPointsPieSectorsDepthRatio()
Returns the depth within each pie sector a point is placed from which a line may be drawn and/or on which a dot may be placed to relate each label with a particular pie sector for the chart's model size. |
int |
getPieLabelsType()
Returns the type of pie sector labels of the pie chart. |
int |
getPiePreferredSize()
Returns the preffered size of the pie in the pie chart. |
java.awt.Color |
getPieSectorsOutlineColor()
Returns the color of the outline of the pie sectors. |
boolean |
getPieSectorsOutlineExistence()
Returns whether the sectors of the pie should have a thin outline. |
boolean |
getValidateOnUpdate()
Returns whether the properties should be validated whenever a chart is to be updated with a changed property. |
(package private) void |
removePieChart2D(PieChart2D pieChart2D)
Removes a PieChart2D object from the set of objects associated with this properties object. |
void |
setChart2DProperties(Chart2DProperties chart2DProps)
Specifies the Chart2DProperties object. |
void |
setChartBetweenPieLabelsAndPieGapExistence(boolean existence)
Specifies whether the gap between each pie label and the pie exists. |
void |
setChartBetweenPieLabelsAndPieGapThicknessModel(int thickness)
Specifies the thickness of the gap between each pie label and the pie for the chart's model size. |
void |
setChartDatasetColors(java.awt.Color[] colors)
Specifies the colors of the pie sectors and/or legend bullets. |
void |
setDataset(Dataset dataset)
Specifies the dataset to use for this pie chart. |
void |
setLegendLabelsTexts(java.lang.String[] texts)
Specifies the legend labels texts. |
void |
setPieChart2DProperties(PieChart2DProperties pieChart2DProps)
Sets all the properties to be values (deep) copied from another PieChart2DProperties. |
void |
setPieChart2DPropertiesToDefaults()
Sets all properties to their default values. |
void |
setPieLabelsBetweenLabelsGapExistence(boolean existence)
Specifies whether a gap between each pie sector label exists. |
void |
setPieLabelsBetweenLabelsGapThicknessModel(int thickness)
Specifies the thickness of the gap between each pie label for the chart's model size. |
void |
setPieLabelsExistence(boolean existence)
Specifies whether the pie sectors of the pie chart will be labeled. |
void |
setPieLabelsLinesColor(java.awt.Color color)
Specifies the color of the lines relating each pie sector with its particular label. |
void |
setPieLabelsLinesDotsColor(java.awt.Color color)
Specifies the color of the dots that exist at the beginning and ending of the lines relating each pie sector with its particular label. |
void |
setPieLabelsLinesDotsExistence(boolean existence)
Specifies whether dots exist at the beginning and ending of the lines relating each pie sector with its particular label. |
void |
setPieLabelsLinesDotsThicknessModel(int thickness)
Specifies the thickness (ie diameter) of the dots that exist at the beginning and ending of the lines releating each pie sector with its particular label for the chart's model size. |
void |
setPieLabelsLinesExistence(boolean existence)
Specifies whether lines relating each pie sector with its particular label exists. |
void |
setPieLabelsLinesThicknessModel(int thickness)
Specifies the thickness of the lines relating each pie sector with its particular label for the model size of the chart. |
void |
setPieLabelsPointsBetweenPieAndLabelGapsDepthRatio(float ratio)
Specifies the depth within each gap between each pie sector and label, from each pie, of the point at which a line coming from a label and a line coming from a pie, meet. |
void |
setPieLabelsPointsLabelsGapOffsetExistence(boolean existence)
Specifies whether the gap between each pie label and a point from which a line may be drawn and/or on which a dot may be placed to relate each label with a particular pie sector exists. |
void |
setPieLabelsPointsLabelsGapOffsetThicknessModel(int thickness)
Specifies the gap between each pie label and a point from which a line may be drawn and/or on which a dot may be placed to relate each label with a particular pie sector for the chart's model size. |
void |
setPieLabelsPointsPieSectorsDepthRatio(float ratio)
Specifies the depth within each pie sector a point is placed from which a line may be drawn and/or on which a dot may be placed to relate each label with a particular pie sector for the chart's model size. |
void |
setPieLabelsType(int type)
Specifies the type of pie sector labels of the pie chart. |
void |
setPiePreferredSize(int size)
Specifies the preffered size of the pie in the pie chart. |
void |
setPieSectorsOutlineColor(java.awt.Color color)
Specifies the color of the outline of the pie sectors. |
void |
setPieSectorsOutlineExistence(boolean existence)
Specifies whether the sectors of the pie should have a thin outline. |
void |
setValidateOnUpdate(boolean validate)
Any time a property is changed after the properties are added to a Chart2D, then the Chart2D is updated with the new properties the next time a method of Chart2D's is called. |
(package private) void |
updatePieChart2D(PieChart2D pieChart2D)
Updates the properties of this PieChart2D with these properties. |
boolean |
validate(boolean debug)
Returns true if the properties are valid. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public static final int RAW
public static final int PERCENT
public static final java.awt.Color[] CHART_DATASET_COLORS_DEFAULT
public static final boolean CHART_BETWEEN_PIE_LABELS_AND_PIE_GAP_EXISTENCE_DEFAULT
public static final int CHART_BETWEEN_PIE_LABELS_AND_PIE_GAP_THICKNESS_MODEL_DEFAULT
public static final java.lang.String[] LEGEND_LABELS_TEXTS_DEFAULT
public static final int PIE_PREFERRED_SIZE_DEFAULT
public static final boolean PIE_SECTORS_OUTLINE_EXISTENCE_DEFAULT
public static final java.awt.Color PIE_SECTORS_OUTLINE_COLOR_DEFAULT
public static final boolean PIE_LABELS_EXISTENCE_DEFAULT
public static final int PIE_LABELS_TYPE_DEFAULT
public static final boolean PIE_LABELS_BETWEEN_LABELS_GAP_EXISTENCE_DEFAULT
public static final int PIE_LABELS_BETWEEN_LABELS_GAP_THICKNESS_MODEL_DEFAULT
public static final boolean PIE_LABELS_POINTS_LABELS_GAP_OFFSET_EXISTENCE_DEFAULT
public static final int PIE_LABELS_POINTS_LABELS_GAP_OFFSET_THICKNESS_MODEL_DEFAULT
public static final float PIE_LABELS_POINTS_PIE_SECTORS_DEPTH_RATIO_DEFAULT
public static final float PIE_LABELS_POINTS_BETWEEN_PIE_AND_LABEL_GAPS_DEPTH_RATIO_DEFAULT
public static final boolean PIE_LABELS_LINES_EXISTENCE_DEFAULT
public static final int PIE_LABELS_LINES_THICKNESS_MODEL_DEFAULT
public static final java.awt.Color PIE_LABELS_LINES_COLOR_DEFAULT
public static final boolean PIE_LABELS_LINES_DOTS_EXISTENCE_DEFAULT
public static final int PIE_LABELS_LINES_DOTS_THICKNESS_MODEL_DEFAULT
public static final java.awt.Color PIE_LABELS_LINES_DOTS_COLOR_DEFAULT
public static final boolean VALIDATE_ON_UPDATE_DEFAULT
| Constructor Detail |
public PieChart2DProperties()
public PieChart2DProperties(PieChart2DProperties pieChart2DProps)
public PieChart2DProperties(Chart2DProperties chart2DProps)
public PieChart2DProperties(Dataset dataset)
public PieChart2DProperties(Chart2DProperties chart2DProps,
Dataset dataset)
public PieChart2DProperties(PieChart2DProperties pieChart2DProps,
Chart2DProperties chart2DProps)
public PieChart2DProperties(PieChart2DProperties pieChart2DProps,
Dataset dataset)
public PieChart2DProperties(PieChart2DProperties pieChart2DProps,
Chart2DProperties chart2DProps,
Dataset dataset)
| Method Detail |
public void setPieChart2DPropertiesToDefaults()
public void setPieChart2DProperties(PieChart2DProperties pieChart2DProps)
public void setChart2DProperties(Chart2DProperties chart2DProps)
chart2DProps - The Chart2DProperties object to use.public void setDataset(Dataset dataset)
dataset - The dataset to use.public void setChartDatasetColors(java.awt.Color[] colors)
colors - The colors of the pie sectors and/or legend bullets.public void setChartBetweenPieLabelsAndPieGapExistence(boolean existence)
existence - If true, the gap exists.public void setChartBetweenPieLabelsAndPieGapThicknessModel(int thickness)
int - The model thickness of the gap.public void setLegendLabelsTexts(java.lang.String[] texts)
texts - The legend labels texts.public void setPiePreferredSize(int size)
size - The preferred size of the pie.public void setPieSectorsOutlineExistence(boolean existence)
existence - If true, then the pie will have a thin outline.public void setPieSectorsOutlineColor(java.awt.Color color)
color - The color of the outline of the pie sectors.public void setPieLabelsExistence(boolean existence)
existence - If true, the pie sectors will be labeled.public void setPieLabelsType(int type)
type - The type of the pie labels.public void setPieLabelsBetweenLabelsGapExistence(boolean existence)
existence - If true, then the gap exists.public void setPieLabelsBetweenLabelsGapThicknessModel(int thickness)
thickness - The thickness of the gap.public void setPieLabelsPointsLabelsGapOffsetExistence(boolean existence)
existence - If true, the gap exists.public void setPieLabelsPointsLabelsGapOffsetThicknessModel(int thickness)
thickness - The thickness of the gap.public void setPieLabelsPointsPieSectorsDepthRatio(float ratio)
ratio - The depth into the pie sector to the pie sector depth for
the point's placement.public void setPieLabelsPointsBetweenPieAndLabelGapsDepthRatio(float ratio)
ratio - The depth into the gap where the lines labeling lines meet.public void setPieLabelsLinesExistence(boolean existence)
existence - If true, then the pie labels lines exist.public void setPieLabelsLinesThicknessModel(int thickness)
thickness - The thickness of the line.public void setPieLabelsLinesColor(java.awt.Color color)
color - The color of the lines.public void setPieLabelsLinesDotsExistence(boolean existence)
existence - If true, then two dots per line will exist.public void setPieLabelsLinesDotsThicknessModel(int thickness)
thickness - The thickness of the dots.public void setPieLabelsLinesDotsColor(java.awt.Color color)
color - The color of the dots.public void setValidateOnUpdate(boolean validate)
validate - If true, then a property change triggers validation of all
properties the next time a property is needed by a Chart2D.public Chart2DProperties getChart2DProperties()
public Dataset getDataset()
public java.util.Vector getPieChart2DVector()
public java.awt.Color[] getChartDatasetColors()
public boolean getChartBetweenPieLabelsAndPieGapExistence()
public int getChartBetweenPieLabelsAndPieGapThicknessModel()
public java.lang.String[] getLegendLabelsTexts()
public int getPiePreferredSize()
public boolean getPieSectorsOutlineExistence()
public java.awt.Color getPieSectorsOutlineColor()
public boolean getPieLabelsExistence()
public int getPieLabelsType()
public boolean getPieLabelsBetweenLabelsGapExistence()
public int getPieLabelsBetweenLabelsGapThicknessModel()
public boolean getPieLabelsPointsLabelsGapOffsetExistence()
public int getPieLabelsPointsLabelsGapOffsetThicknessModel()
public float getPieLabelsPointsPieSectorsDepthRatio()
public float getPieLabelsPointsBetweenPieAndLabelGapsDepthRatio()
float - The depth into the gap where the lines labeling lines meet.public boolean getPieLabelsLinesExistence()
public int getPieLabelsLinesThicknessModel()
public java.awt.Color getPieLabelsLinesColor()
public boolean getPieLabelsLinesDotsExistence()
public int getPieLabelsLinesDotsThicknessModel()
public java.awt.Color getPieLabelsLinesDotsColor()
Color - The color of the dots.public boolean getValidateOnUpdate()
public boolean validate(boolean debug)
debug - If true, then debug messages will be printed.boolean getPieChart2DNeedsUpdate(PieChart2D pieChart2D)
pieChart2D - The object that might need to be updated.void updatePieChart2D(PieChart2D pieChart2D)
pieChart2D - The PieChart2D object to update the properties of.void addPieChart2D(PieChart2D pieChart2D)
pieChart2D - The object to use these properties.void removePieChart2D(PieChart2D pieChart2D)
pieChart2D - The object to not use these properties.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||