|
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.Axis
org.eclipse.tptp.platform.report.chart.svg.internal.part.AxisNumber
org.eclipse.tptp.platform.report.chart.svg.internal.part.AxisNumberHorizontal
public class AxisNumberHorizontal
| Field Summary | |
|---|---|
protected java.lang.String |
topString
|
| Fields inherited from class org.eclipse.tptp.platform.report.chart.svg.internal.part.AxisNumber |
|---|
axisType, cumulative, customPattern, dataMax, dataMin, datasets, isLinear, labelOrientation, labels, majorUnit, majorUnitValues, max, maxLabelHeight, maxLabelLength, min, minorUnit, minorUnitValues, timezone, title, TOP_MARGIN |
| Fields inherited from class org.eclipse.tptp.platform.report.chart.svg.internal.part.Axis |
|---|
axisDef, axisHeight, axisWidth, dataValueDef, labelDegrees, majorUnitDef, marginForMax, minorUnitDef, nls, showMajorGridLines, showMajorTicks, showMinorGridLines, showMinorTicks |
| 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 | |
|---|---|
AxisNumberHorizontal(Chart input,
boolean isLTR,
java.util.List datasets,
short axisType,
boolean cumulative,
NLString nls)
|
|
AxisNumberHorizontal(Chart input,
boolean isLTR,
java.util.List datasets,
short axisType,
boolean cumulative,
short labelOrientation,
NLString nls)
|
|
| Method Summary | |
|---|---|
double |
axisExtendedLength()
Returns the extra length of the axes in cases where additional padding is needed |
protected void |
constructPart()
|
protected SVGBase |
drawHorizontalLabels(double[] positions)
Constructs horizontal labels |
protected SVGBase |
drawTickMarks()
|
protected SVGBase |
drawVerticalLabels(double[] positions)
Constructs vertical labels |
double |
getAxisHeight()
Gets the Height of the axis part |
double |
getAxisLength()
Get axis length |
short |
getAxisOrientation()
Get axis orientation |
double |
getAxisWidth()
Gets the width of the axis part |
int |
getMarginForMax()
Since half of the label of the max value goes beyond the right edge of the plot area, we need to find the margin required to display the full text of the max label. |
protected double |
getXCoordinate(double value,
double max_coor,
double min_coor,
double max,
double min)
Calculate coordinate in linear scale |
void |
setAxisLength(double length)
Sets the length of the axis. |
void |
setCrossPoint(double x,
double y)
Given the coordinates, relative to the parent container, of the crossing point of the two axes, translate the axis part to the approprate position. |
| Methods inherited from class org.eclipse.tptp.platform.report.chart.svg.internal.part.AxisNumber |
|---|
formatValue, getLabelHeight, getLabelWidth, getMajorUnitValues, getMax, getMin, getMinorUnitValues, getTickMarkValuesAndLabels, isLinear, setLabelDegrees |
| Methods inherited from class org.eclipse.tptp.platform.report.chart.svg.internal.part.Axis |
|---|
getLabelDegrees, isShowMajorGridLines, isShowMinorGridLines |
| 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 java.lang.String topString
| Constructor Detail |
|---|
public AxisNumberHorizontal(Chart input,
boolean isLTR,
java.util.List datasets,
short axisType,
boolean cumulative,
NLString nls)
input - datasets - axisType - cumulative -
public AxisNumberHorizontal(Chart input,
boolean isLTR,
java.util.List datasets,
short axisType,
boolean cumulative,
short labelOrientation,
NLString nls)
input - datasets - axisType - cumulative - labelOrientation - | Method Detail |
|---|
public int getMarginForMax()
AxisNumber
getMarginForMax in class AxisNumberpublic void setAxisLength(double length)
AxisNumber
setAxisLength in class AxisNumberpublic double getAxisLength()
AxisNumber
getAxisLength in class AxisNumber
public void setCrossPoint(double x,
double y)
AxisNumber
setCrossPoint in class AxisNumberprotected SVGBase drawHorizontalLabels(double[] positions)
AxisNumber
drawHorizontalLabels in class AxisNumberprotected SVGBase drawVerticalLabels(double[] positions)
AxisNumber
drawVerticalLabels in class AxisNumberpublic short getAxisOrientation()
AxisNumber
getAxisOrientation in class AxisNumberpublic double getAxisWidth()
Axis
getAxisWidth in class Axispublic double getAxisHeight()
Axis
getAxisHeight in class Axisprotected void constructPart()
constructPart in class Part
protected double getXCoordinate(double value,
double max_coor,
double min_coor,
double max,
double min)
value - value to be plottedmax_coor - coordinate of the maximum value of this axismin_coor - coordinate of the minimum value of this axismax - maximum value of this axismin - minimum value of this axis
protected SVGBase drawTickMarks()
public double axisExtendedLength()
Axis
axisExtendedLength in class Axis
|
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 | ||||||||