|
|||||||||
| 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.PieChart2DProperties
A data structure for holding the properties common to all PieChart2D charts. A PieChart2D object is an enclosed are with a title, pie sectors, pie labels, and a legend. Pass this to any number of PieChart2D objects.
| Field Summary | |
static int |
BOTTOM
Signifies bottom. |
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 6. |
static int |
LEFT
Signifies left. |
static int |
NONE
Signifies none. |
static int |
PERCENT
Indicates the pie numbers labels should have percent ratios. |
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 3. |
static boolean |
PIE_LABELS_EXISTENCE_DEFAULT
The default is true. |
static java.awt.Color |
PIE_LABELS_FONT_COLOR_DEFAULT
The default is Color.black. |
static java.lang.String |
PIE_LABELS_FONT_NAME_DEFAULT
The default is "SansSerif". |
static int |
PIE_LABELS_FONT_POINT_MODEL_DEFAULT
The default is 10. |
static int |
PIE_LABELS_FONT_STYLE_DEFAULT
The default is Font.PLAIN. |
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 false. |
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_GAP_OFFSET_EXISTENCE_DEFAULT
The default is true. |
static float |
PIE_LABELS_POINTS_GAP_OFFSET_MODEL_RATIO_DEFAULT
The default is .50f. |
static float |
PIE_LABELS_POINTS_PIE_SECTORS_DEPTH_RATIO_DEFAULT
The default is .125f. |
static int |
PIE_LABELS_TYPE_DEFAULT
The default is RAW + PERCENT. |
static int |
PIE_PREFERRED_SIZE_DEFAULT
The default is 30. |
static int |
PIE_SECTOR_LIGHT_SOURCE_DEFAULT
The default is TOP. |
static java.awt.Color |
PIE_SECTORS_OUTLINE_COLOR_DEFAULT
The default is Color.black. |
static boolean |
PIE_SECTORS_OUTLINE_EXISTENCE_DEFAULT
The default is false. |
static int |
RAW
Indicates the pie numbers labels should have raw numbers. |
static int |
RIGHT
Signifies right. |
static int |
TOP
Signifies top. |
| Constructor Summary | |
PieChart2DProperties()
Creates a PieChart2DProperties object with the documented default values. |
|
PieChart2DProperties(net.sourceforge.chart2d.PieChart2DProperties pieChart2DProps)
Creates a PieChart2DProperties object with property values copied from another object. |
|
| Method Summary | |
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. |
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 |
getPieLabelsFontColor()
Gets the color of the font of the pie labels. |
java.lang.String |
getPieLabelsFontName()
Gets name of the font of the pie labels. |
int |
getPieLabelsFontPointModel()
Gets the point of the font of the pie labels for the chart's model size. |
int |
getPieLabelsFontStyle()
Gets the style of the font of the pie labels. |
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 |
getPieLabelsPointsGapOffsetExistence()
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. |
float |
getPieLabelsPointsGapOffsetModelRatio()
Gets the ratio on the gap between the pie and the labels, for the gap between the labels and the labels point. |
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. |
int |
getPieSectorLightSource()
Gets from which direction the light is coming for shading of the pie sectors. |
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 |
isFontNameExists(java.lang.String name)
Returns true if the font name exists in the graphics enviornment. |
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 |
setPieChart2DProperties(net.sourceforge.chart2d.PieChart2DProperties pieChart2DProps)
Sets all the properties to be the values of another PieChart2DProperties object. |
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 |
setPieLabelsFontColor(java.awt.Color color)
Sets the color of the font of the pie labels. |
void |
setPieLabelsFontName(java.lang.String name)
Sets name of the font of the pie labels. |
void |
setPieLabelsFontPointModel(int point)
Sets the point of the font of the pie labels for the chart's model size. |
void |
setPieLabelsFontStyle(int style)
Sets the style of the font of the pie labels. |
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 |
setPieLabelsPointsGapOffsetExistence(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 |
setPieLabelsPointsGapOffsetModelRatio(float ratio)
Specifies the ratio on the gap between the pie and the labels, for the gap between the labels and the labels point. |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int RAW
public static final int PERCENT
public static final int LEFT
public static final int RIGHT
public static final int TOP
public static final int BOTTOM
public static final int NONE
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 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_GAP_OFFSET_EXISTENCE_DEFAULT
public static final float PIE_LABELS_POINTS_GAP_OFFSET_MODEL_RATIO_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 int PIE_SECTOR_LIGHT_SOURCE_DEFAULT
public static final int PIE_LABELS_FONT_POINT_MODEL_DEFAULT
public static final java.lang.String PIE_LABELS_FONT_NAME_DEFAULT
public static final java.awt.Color PIE_LABELS_FONT_COLOR_DEFAULT
public static final int PIE_LABELS_FONT_STYLE_DEFAULT
| Constructor Detail |
public PieChart2DProperties()
public PieChart2DProperties(net.sourceforge.chart2d.PieChart2DProperties pieChart2DProps)
pieChart2DProps - The properties to copy.| Method Detail |
public final void setPieChart2DPropertiesToDefaults()
public final void setPieChart2DProperties(net.sourceforge.chart2d.PieChart2DProperties pieChart2DProps)
pieChart2DProps - The properties to copy.public final void setChartBetweenPieLabelsAndPieGapExistence(boolean existence)
existence - If true, the gap exists.public final void setChartBetweenPieLabelsAndPieGapThicknessModel(int thickness)
public final void setPiePreferredSize(int size)
size - The preferred size of the pie.public final void setPieSectorsOutlineExistence(boolean existence)
existence - If true, then the pie will have a thin outline.public final void setPieSectorsOutlineColor(java.awt.Color color)
color - The color of the outline of the pie sectors.public final void setPieLabelsExistence(boolean existence)
existence - If true, the pie sectors will be labeled.public final void setPieLabelsType(int type)
type - The type of the pie labels.public final void setPieLabelsBetweenLabelsGapExistence(boolean existence)
existence - If true, then the gap exists.public final void setPieLabelsBetweenLabelsGapThicknessModel(int thickness)
thickness - The thickness of the gap.public final void setPieLabelsPointsGapOffsetExistence(boolean existence)
existence - If true, the gap exists.public final void setPieLabelsPointsGapOffsetModelRatio(float ratio)
ratio - The ratio.public final void setPieLabelsPointsPieSectorsDepthRatio(float ratio)
ratio - The depth into the pie sector to the pie sector depth for
the point's placement.public final void setPieLabelsPointsBetweenPieAndLabelGapsDepthRatio(float ratio)
ratio - The depth into the gap where the lines labeling lines meet.public final void setPieLabelsLinesExistence(boolean existence)
existence - If true, then the pie labels lines exist.public final void setPieLabelsLinesThicknessModel(int thickness)
thickness - The thickness of the line.public final void setPieLabelsLinesColor(java.awt.Color color)
color - The color of the lines.public final void setPieLabelsLinesDotsExistence(boolean existence)
existence - If true, then two dots per line will exist.public final void setPieLabelsLinesDotsThicknessModel(int thickness)
thickness - The thickness of the dots.public final void setPieLabelsLinesDotsColor(java.awt.Color color)
color - The color of the dots.public final void setPieLabelsFontPointModel(int point)
point - The model font point of the pie labels.public final void setPieLabelsFontName(java.lang.String name)
name - The name of the font for the pie labels.public final void setPieLabelsFontColor(java.awt.Color color)
color - The color of the font of the pie labels.public final void setPieLabelsFontStyle(int style)
style - The style of the font of the pie labels.public final boolean getChartBetweenPieLabelsAndPieGapExistence()
public final int getChartBetweenPieLabelsAndPieGapThicknessModel()
public final int getPiePreferredSize()
public final boolean getPieSectorsOutlineExistence()
public final java.awt.Color getPieSectorsOutlineColor()
public final boolean getPieLabelsExistence()
public final int getPieLabelsType()
public final boolean getPieLabelsBetweenLabelsGapExistence()
public final int getPieLabelsBetweenLabelsGapThicknessModel()
public final boolean getPieLabelsPointsGapOffsetExistence()
public final float getPieLabelsPointsGapOffsetModelRatio()
public final float getPieLabelsPointsPieSectorsDepthRatio()
public final float getPieLabelsPointsBetweenPieAndLabelGapsDepthRatio()
public final boolean getPieLabelsLinesExistence()
public final int getPieLabelsLinesThicknessModel()
public final java.awt.Color getPieLabelsLinesColor()
public final boolean getPieLabelsLinesDotsExistence()
public final int getPieLabelsLinesDotsThicknessModel()
public final java.awt.Color getPieLabelsLinesDotsColor()
public final int getPieSectorLightSource()
public final int getPieLabelsFontPointModel()
public final java.lang.String getPieLabelsFontName()
public final java.awt.Color getPieLabelsFontColor()
public final int getPieLabelsFontStyle()
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 | ||||||||