|
TPTP 4.2.0 Platform Project Internal API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.tptp.platform.report.chart.svg.internal.generator.SVGBase
org.eclipse.tptp.platform.report.chart.svg.internal.generator.SVGContainerBase
org.eclipse.tptp.platform.report.chart.svg.internal.generator.SVGDocumentFragmentBase
org.eclipse.tptp.platform.report.chart.svg.internal.generator.SVGSvg
org.eclipse.tptp.platform.report.chart.svg.internal.part.Part
org.eclipse.tptp.platform.report.chart.svg.internal.part.DataSet
org.eclipse.tptp.platform.report.chart.svg.internal.part.DataSetPie
DataSetPie is class to add meter graph area in meter chart.
$Revision: 1.4 $
| Field Summary | |
|---|---|
protected com.ibm.icu.text.DecimalFormat |
bigNumberFormatter
Number formatter for big numbers |
protected java.util.List |
categoryList
|
protected int |
colorIndex
|
protected double |
cx
|
protected double |
cy
|
protected DataSet |
dataset
|
protected int |
datasetIndex
|
protected com.ibm.icu.text.DateFormat |
dateFormatter
Date formatter |
protected java.util.Locale |
locale
Locale for formatting. |
protected int |
NEGATIVE_NINETY_DEG
|
protected int |
NINETY_DEG
|
protected int |
ONE_EIGHTY_DEG
|
protected SVGColorPalettes |
palettes
color palettes |
protected com.ibm.icu.text.NumberFormat |
percentFormatter
Percent formatter |
protected double |
pieValue
|
protected double |
previousDegree
|
protected double |
radius
|
protected CategoricalData[] |
sortedDatapoints
|
protected int |
ZERO_DEG
|
| Fields inherited from class org.eclipse.tptp.platform.report.chart.svg.internal.part.DataSet |
|---|
nls |
| Fields inherited from class org.eclipse.tptp.platform.report.chart.svg.internal.part.Part |
|---|
height, input, width, x, y |
| Fields inherited from interface org.eclipse.tptp.platform.report.chart.svg.internal.part.IGraphicTypeConstants |
|---|
AREA_CHART, HBAR_CHART, HBAR_CHART3D, HSTACKBAR_CHART, HSTACKBAR_CHART3D, LINE_CHART, METER, PIE_CHART, PIE_CHART3D, SCATTER_CHART, STACK_AREA_CHART, VBAR_CHART, VBAR_CHART3D, VSTACKBAR_CHART, VSTACKBAR_CHART3D |
| Constructor Summary | |
|---|---|
DataSetPie(Chart input,
double cx,
double cy,
double radius,
DataSet dataset,
int datasetIndex,
int colorIndex,
CategoricalData[] sortedDatapoints,
double pieValue,
double previousDegree,
java.util.Locale locale,
SVGColorPalettes palettes,
NLString nls)
|
|
DataSetPie(Chart input,
double x,
double y,
double width,
double height,
NLString nls)
|
|
| Method Summary | |
|---|---|
protected java.util.Vector |
calculateLabelPositions(double cx,
double xpos,
double ypos,
int rotateFlag,
java.lang.String label)
|
protected void |
constructPart()
|
java.lang.String |
formatDate(java.util.Date d)
Format a date in the format for the locale set in this object |
java.lang.String |
formatNumber(double value)
Format a number in the format for the locale set in this object |
java.lang.String |
formatPercentage(double d)
Format a number in the percent format for the locale set in this object |
static java.lang.String |
formatValue(java.util.Locale locale,
Chart input,
double percentage,
double sliceValue)
Set the number and date formatters |
| Methods inherited from class org.eclipse.tptp.platform.report.chart.svg.internal.part.DataSet |
|---|
getCoordinate |
| Methods inherited from class org.eclipse.tptp.platform.report.chart.svg.internal.part.Part |
|---|
doImplementation |
| Methods inherited from class org.eclipse.tptp.platform.report.chart.svg.internal.generator.SVGSvg |
|---|
addDefinition, addDefinition, addStyle, doImplementation, doImplementation, doImplementation, getImplementation |
| Methods inherited from class org.eclipse.tptp.platform.report.chart.svg.internal.generator.SVGDocumentFragmentBase |
|---|
getHeight, getPreserveAspectRatio, getViewbox, getWidth, getXCoordinate, getYCoordinate, setHeight, setPreserveAspectRatio, setViewbox, setWidth, setXCoordinate, setYCoordinate |
| Methods inherited from class org.eclipse.tptp.platform.report.chart.svg.internal.generator.SVGContainerBase |
|---|
getChildren, getDesc, getTitle, setChildren, setDesc, setTitle |
| Methods inherited from class org.eclipse.tptp.platform.report.chart.svg.internal.generator.SVGBase |
|---|
getIdentifier, getStyle, getStyleClass, getTagName, getVisibility, setIdentifier, setStyle, setStyleClass, setTagName, setVisibility |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected CategoricalData[] sortedDatapoints
protected DataSet dataset
protected java.util.List categoryList
protected double cx
protected double cy
protected double radius
protected int datasetIndex
protected int colorIndex
protected double pieValue
protected double previousDegree
protected final int NINETY_DEG
protected final int NEGATIVE_NINETY_DEG
protected final int ONE_EIGHTY_DEG
protected final int ZERO_DEG
protected java.util.Locale locale
protected com.ibm.icu.text.NumberFormat percentFormatter
protected com.ibm.icu.text.DateFormat dateFormatter
protected com.ibm.icu.text.DecimalFormat bigNumberFormatter
protected SVGColorPalettes palettes
| Constructor Detail |
public DataSetPie(Chart input,
double cx,
double cy,
double radius,
DataSet dataset,
int datasetIndex,
int colorIndex,
CategoricalData[] sortedDatapoints,
double pieValue,
double previousDegree,
java.util.Locale locale,
SVGColorPalettes palettes,
NLString nls)
input - cx - cy - radius -
public DataSetPie(Chart input,
double x,
double y,
double width,
double height,
NLString nls)
input - | Method Detail |
protected void constructPart()
constructPart in class Part
protected java.util.Vector calculateLabelPositions(double cx,
double xpos,
double ypos,
int rotateFlag,
java.lang.String label)
public static java.lang.String formatValue(java.util.Locale locale,
Chart input,
double percentage,
double sliceValue)
public java.lang.String formatPercentage(double d)
public java.lang.String formatDate(java.util.Date d)
public java.lang.String formatNumber(double value)
|
TPTP 4.2.0 Platform Project Internal API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||