|
TPTP 4.5.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.Legend
public abstract class Legend
Legend
$Revision: 1.2 $
| Field Summary | |
|---|---|
protected java.lang.String |
backgroundColor
background color of legend |
protected double |
chartHeight
Height of the chart area |
protected double |
chartWidth
Width of the chart area |
protected double |
customHeight
|
protected double |
customWidth
|
protected DataSet[] |
datasetArray
an array of Datasets |
protected FontHelper |
fontHelper
For calculating string lengths |
protected boolean |
isLTR
text direction |
protected boolean |
isSetCustomHeight
|
protected boolean |
isSetCustomWidth
|
protected java.lang.String |
legendId
legend identifier |
protected java.lang.String[] |
legendLabels
an array of legend labels |
protected java.lang.String |
legendTitle
legend title |
protected java.lang.String |
location
position of the legend |
protected double |
margin
Margin between the plotarea and legend |
protected NLString |
nls
An object for retriving translated text |
protected int |
numOfDataSets
Number of data sets |
protected SVGColorPalettes |
palettes
Palettes for legend shape color |
protected SVGShapes |
shapes
Shapes to be used in the legend |
protected boolean |
useShapes
A flag to show if shapes should be used |
| 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 | |
|---|---|
Legend(Chart input,
double x,
double y,
double width,
double height,
double chartWidth,
double chartHeight,
int margin,
SVGColorPalettes palettes,
SVGShapes shapes,
NLString nls)
|
|
| Method Summary | |
|---|---|
protected SVGBase |
drawLegendItem(double x,
double y,
int itemNum)
Draws a legend item in the legend |
protected SVGBase |
drawLegendItem(java.lang.String shapeId,
double shapeWidth,
double shapeHeight,
double x,
double y,
int itemNum)
|
protected SVGText |
drawTitle(double x,
double y)
draws the legend title |
static Legend |
getInstance(java.lang.String legendPosition,
boolean isLTR,
Chart input,
double x,
double y,
double width,
double height,
double chartWidth,
double chartHeight,
int margin,
SVGColorPalettes palettes,
SVGShapes shapes,
NLString nls)
Return a subclass given the legend position and text direction. |
double |
getLegendHeight()
|
double |
getLegendWidth()
|
void |
setNLString(NLString nls)
Sets the NLString object to retrive translated text |
| Methods inherited from class org.eclipse.tptp.platform.report.chart.svg.internal.part.Part |
|---|
constructPart, 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 java.lang.String legendId
protected java.lang.String legendTitle
protected java.lang.String[] legendLabels
protected DataSet[] datasetArray
protected java.lang.String location
protected boolean useShapes
protected SVGShapes shapes
protected SVGColorPalettes palettes
protected int numOfDataSets
protected java.lang.String backgroundColor
protected boolean isLTR
protected NLString nls
protected FontHelper fontHelper
protected double chartWidth
protected double margin
protected double chartHeight
protected double customHeight
protected boolean isSetCustomHeight
protected double customWidth
protected boolean isSetCustomWidth
| Constructor Detail |
|---|
public Legend(Chart input,
double x,
double y,
double width,
double height,
double chartWidth,
double chartHeight,
int margin,
SVGColorPalettes palettes,
SVGShapes shapes,
NLString nls)
input - x - y - width - height - | Method Detail |
|---|
protected SVGText drawTitle(double x,
double y)
x - the x coordinate of the titley - the y coordinate of the title
protected SVGBase drawLegendItem(double x,
double y,
int itemNum)
x - the x coordinate of the itemy - the y coordinate of the itemitemNum - the item number, use for determining the color or shape
protected SVGBase drawLegendItem(java.lang.String shapeId,
double shapeWidth,
double shapeHeight,
double x,
double y,
int itemNum)
public static Legend getInstance(java.lang.String legendPosition,
boolean isLTR,
Chart input,
double x,
double y,
double width,
double height,
double chartWidth,
double chartHeight,
int margin,
SVGColorPalettes palettes,
SVGShapes shapes,
NLString nls)
legendPosition - isLTR - input - x - y - width - height - shapes -
public void setNLString(NLString nls)
nls - public double getLegendHeight()
public double getLegendWidth()
|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||