|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cete.dynamicpdf.PageElement com.cete.dynamicpdf.pageelements.TaggablePageElement com.cete.dynamicpdf.pageelements.RotatingPageElement com.cete.dynamicpdf.pageelements.charting.Chart
public class Chart
This class can be used to place a chart on the page.
Licensing:
This is a DynamicPDF Generator Enterprise
Edition feature. One of the following licenses is required for non-evaluation usage:
Constructor Summary | |
---|---|
Chart(float x,
float y,
float width,
float height)
Initializes a new instance of the Chart class. |
|
Chart(float x,
float y,
float width,
float height,
Font font,
float fontSize,
Color textColor)
Initializes a new instance of the Chart class. |
Method Summary | |
---|---|
protected void |
drawRotated(PageWriter writer)
Draws the chart to the given PageWriter object. |
boolean |
getAutoLayout()
Gets whether elements should be arranged automatically on the chart or not. |
Color |
getBackgroundColor()
Gets the Color object to use for the background of the chart. |
Color |
getBorderColor()
Gets the Color object to use for the border of the chart. |
LineStyle |
getBorderStyle()
Gets the LineStyle object to use for the border style
of the chart. |
float |
getBorderWidth()
Gets the border width of the chart. |
float |
getBottomPadding()
Gets the bottom padding of the chart. |
float |
getChartLegendSpacing()
Gets the chart legend spacing of the chart. |
Font |
getFont()
Gets the Font object to use for the text in the chart. |
float |
getFontSize()
Gets the font size of the text in the chart. |
TitleList |
getFooterTitles()
Gets the footer TitleList object contained in the chart. |
TitleList |
getHeaderTitles()
Gets the header TitleList object contained in the chart. |
float |
getHeight()
Gets the height of the chart. |
float |
getLeftPadding()
Gets the left padding of the chart. |
LegendList |
getLegends()
Gets the LegendList object contained in the chart. |
PlotAreaList |
getPlotAreas()
Gets the PlotAreaList object contained in the chart. |
PlotArea |
getPrimaryPlotArea()
Gets the Default PlotArea of the Chart. |
float |
getRightPadding()
Gets the right padding of the chart. |
Color |
getTextColor()
Gets the Color object to use for the text of the chart. |
float |
getTopPadding()
Gets the top padding of the chart. |
float |
getWidth()
Gets the width of the chart. |
float |
getX()
Gets the x coordinate of the chart. |
float |
getY()
Gets the y coordinate of the chart. |
void |
layout()
Arranges all elements of chart automatically. |
void |
setAutoLayout(boolean autoLayout)
Sets whether elements should be arranged automatically on the chart or not. |
void |
setBackgroundColor(Color color)
Sets the Color object to use for the background of the chart. |
void |
setBorderColor(Color color)
Sets the Color object to use for the border of the chart. |
void |
setBorderStyle(LineStyle lineStyle)
Sets the LineStyle object to use for the border style
of the chart. |
void |
setBorderWidth(float borderWidth)
Sets the border width of the chart. |
void |
setBottomPadding(float bottomPadding)
Sets the bottom padding of the chart. |
void |
setChartLegendSpacing(float chartLegendSpacing)
Sets the chart legend spacing of the chart. |
void |
setFont(Font font)
Sets the Font object to use for the text in the chart. |
void |
setFontSize(float val)
sets the font size of the text in the chart. |
void |
setHeight(float height)
Sets the height of the chart. |
void |
setLeftPadding(float leftPadding)
Sets the left padding of the chart. |
void |
setRightPadding(float rightPadding)
Sets the right padding of the chart. |
void |
setTopPadding(float topPadding)
Sets the top padding of the chart. |
void |
setWidth(float width)
Sets the width of the chart. |
void |
setX(float x)
Sets the x coordinate of the chart. |
void |
setY(float y)
Sets the y coordinate of the chart. |
Methods inherited from class com.cete.dynamicpdf.pageelements.RotatingPageElement |
---|
draw, getAngle, setAngle |
Methods inherited from class com.cete.dynamicpdf.pageelements.TaggablePageElement |
---|
getTag, getTagOrder, setTag, setTagOrder |
Methods inherited from class com.cete.dynamicpdf.PageElement |
---|
getRequiredLicenseLevel, getStrID, setRequiredLicenseLevel, setStrID |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Chart(float x, float y, float width, float height)
Chart
class.
x
- float value indicating X coordinate of the chart.y
- float value indicating Y coordinate of the chart.width
- float value indicating width of the chart.height
- float value indicating height of the chart.public Chart(float x, float y, float width, float height, Font font, float fontSize, Color textColor)
Chart
class.
x
- float value indicating X coordinate of the chart.y
- float value indicating Y coordinate of the chart.width
- float value indicating width of the chart.height
- float value indicating height of the chart.font
- Font
for the text in the chart.fontSize
- font size for the text in the chart.textColor
- Color
for the text in the chart.Method Detail |
---|
public float getX()
getX
in interface ICoordinate
getX
in class RotatingPageElement
public void setX(float x)
setX
in interface ICoordinate
setX
in class RotatingPageElement
x
- the float value used to set x coordinate of the chart.public float getY()
getY
in interface ICoordinate
getY
in class RotatingPageElement
public void setY(float y)
setY
in interface ICoordinate
setY
in class RotatingPageElement
y
- the float value used to set y coordinate of the chart.public float getWidth()
public void setFont(Font font)
Font
object to use for the text in the chart.
font
- the Font object used to set the font of the text in the chart.Font
public void setFontSize(float val)
val
- the float value uset to set font size of the text in chart.public void setWidth(float width)
width
- the float value used to set width of the chart.public float getHeight()
getHeight
in class RotatingPageElement
public PlotArea getPrimaryPlotArea()
public void setHeight(float height)
setHeight
in class RotatingPageElement
height
- the float value used to set height of the chart.public void setLeftPadding(float leftPadding)
leftPadding
- the float value used to set left padding of the chart.public float getLeftPadding()
public void setRightPadding(float rightPadding)
rightPadding
- the float value used to set right padding of the chart.public float getRightPadding()
public void setTopPadding(float topPadding)
topPadding
- the float value used to set top padding of the chart.public float getTopPadding()
public void setBottomPadding(float bottomPadding)
bottomPadding
- the float value used to set bottom padding of the chart.public float getBottomPadding()
public void setChartLegendSpacing(float chartLegendSpacing)
chartLegendSpacing
- the float value used to set chart legend spacing of the chart.public float getChartLegendSpacing()
public TitleList getFooterTitles()
TitleList
object contained in the chart.
TitleList
public TitleList getHeaderTitles()
TitleList
object contained in the chart.
TitleList
public PlotAreaList getPlotAreas()
PlotAreaList
object contained in the chart.
PlotAreaList
public LegendList getLegends()
LegendList
object contained in the chart.
LegendList
public Font getFont()
Font
object to use for the text in the chart.
Font
public float getFontSize()
public Color getTextColor()
Color
object to use for the text of the chart.
Color
public Color getBackgroundColor()
Color
object to use for the background of the chart.
Color
public void setBackgroundColor(Color color)
Color
object to use for the background of the chart.
color
- Color object to set the background color of the chart.Color
public Color getBorderColor()
Color
object to use for the border of the chart.
Color
public void setBorderColor(Color color)
Color
object to use for the border of the chart.
color
- Color object to set the border color of the chartColor
public float getBorderWidth()
public void setBorderWidth(float borderWidth)
borderWidth
- the float value used to set border width of chart.public boolean getAutoLayout()
public void setAutoLayout(boolean autoLayout)
autoLayout
- boolean value indicating whether elements should be
arranged automatically on the chart or not, true by default.public LineStyle getBorderStyle()
LineStyle
object to use for the border style
of the chart.
LineStyle
object to use for border style of
the chart.LineStyle
public void setBorderStyle(LineStyle lineStyle)
LineStyle
object to use for the border style
of the chart.
lineStyle
- the LineStyle
object used to set border style
of the chart.LineStyle
protected void drawRotated(PageWriter writer)
PageWriter
object.
drawRotated
in class RotatingPageElement
writer
- PageWriter
object to receive the chart's output.PageWriter
public void layout()
|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |