public class BIRTChartComputation extends java.lang.Object implements IChartComputation
Constructor and Description |
---|
BIRTChartComputation() |
Modifier and Type | Method and Description |
---|---|
void |
applyWrapping(IDisplayServer xs,
Label la,
double dWrapping)
Apply the wrapping to a label.
|
BoundingBox |
computeBox(IDisplayServer xs,
int iLabelLocation,
Label la,
double dX,
double dY)
Compute the bounding box ( location and size ) of a label.
|
double |
computeFontHeight(IDisplayServer xs,
Label la)
Convenient method to compute the font's height of a label.
|
double |
computeHeight(IDisplayServer xs,
Label la)
Compute the height of a label.
|
BoundingBox |
computeLabelSize(IDisplayServer xs,
Label la,
double dWrapping,
java.lang.Double fontHeight)
Compute the size of a label.
|
RotatedRectangle |
computePolygon(IDisplayServer xs,
int iLabelLocation,
Label la,
double dX,
double dY,
java.lang.Double fontHeight)
Compute the bounding polygon of a label.
|
double |
computeWidth(IDisplayServer xs,
Label la)
Compute the width of a label.
|
void |
dispose() |
ITextMetrics |
getTextMetrics(IDisplayServer xs,
Label la,
double wrapping)
Returns a text metrics.
|
void |
recycleTextMetrics(ITextMetrics itm)
Dispose the text metrics.
|
public double computeFontHeight(IDisplayServer xs, Label la) throws ChartException
IChartComputation
computeFontHeight
in interface IChartComputation
ChartException
public ITextMetrics getTextMetrics(IDisplayServer xs, Label la, double wrapping)
IChartComputation
getTextMetrics
in interface IChartComputation
public BoundingBox computeLabelSize(IDisplayServer xs, Label la, double dWrapping, java.lang.Double fontHeight) throws ChartException
IChartComputation
computeLabelSize
in interface IChartComputation
ChartException
public BoundingBox computeBox(IDisplayServer xs, int iLabelLocation, Label la, double dX, double dY) throws ChartException
IChartComputation
computeBox
in interface IChartComputation
ChartException
public RotatedRectangle computePolygon(IDisplayServer xs, int iLabelLocation, Label la, double dX, double dY, java.lang.Double fontHeight) throws ChartException
IChartComputation
computePolygon
in interface IChartComputation
ChartException
public double computeWidth(IDisplayServer xs, Label la) throws ChartException
IChartComputation
computeWidth
in interface IChartComputation
ChartException
public double computeHeight(IDisplayServer xs, Label la) throws ChartException
IChartComputation
computeHeight
in interface IChartComputation
ChartException
public void dispose()
dispose
in interface IChartComputation
public void applyWrapping(IDisplayServer xs, Label la, double dWrapping) throws ChartException
IChartComputation
applyWrapping
in interface IChartComputation
ChartException
public void recycleTextMetrics(ITextMetrics itm)
IChartComputation
recycleTextMetrics
in interface IChartComputation
Copyright © 2014 OpenText Corp. All rights reserved.