|
OFC Charts 3.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.oxymel.ofc.charts.Chart
This abstract class is the superclass of all classes implementing graphics. It provides a set of methods allowing to draw charts in different resulting formats, such as SVG or JPEG for instance. The resulting drawn chart can be stored in a file or an OutputStream, or returned as a string.
Field Summary | |
static int |
ROTATE_180_DEGREE
A 180 degrees rotation is applied to the graphic |
static int |
ROTATE_270_DEGREE
A 270 degrees rotation is applied to the graphic |
static int |
ROTATE_90_DEGREE
A 90 degrees rotation is applied to the graphic |
static int |
ROTATE_NONE
Default rotation value, no rotation is applied to the graphic |
Method Summary | |
void |
drawAnimateSVG(java.io.OutputStream out,
SVGAnimationContext svgAnimationContext)
Draws an animated chart and produces the result as an OutputStream |
void |
drawAnimateSVG(java.io.OutputStream out,
SVGAnimationContext svgAnimationContext,
SVGContext svgContext)
Draws an animated chart within a given SVG context and produces the result as an OutputStream |
void |
drawAnimateSVG(java.lang.String pathFileName,
SVGAnimationContext svgAnimationContext)
Draws an animated chart and produces the result as a SVG file |
void |
drawAnimateSVG(java.lang.String pathFileName,
SVGAnimationContext svgAnimationContext,
SVGContext svgContext)
Draws an animated chart within a given SGV context and produces the result as a SVG file |
java.lang.String |
drawAnimateSVG(SVGAnimationContext svgAnimationContext)
Draws an animated chart and return the SVG as a String |
void |
drawJPEG(java.io.OutputStream out)
Draws a chart and produce a JPEG result in an OutputStream |
void |
drawJPEG(java.lang.String pathFileName)
Draws a chart and produce a JPEG result in a file |
void |
drawPNG(java.io.OutputStream out)
Draws a chart and produce a PNG result in an OutputStream |
void |
drawPNG(java.lang.String pathFileName)
Draws a chart and produce a PNG result in a file |
java.lang.String |
drawSVG()
Draws a chart and returns the SVG as a String |
void |
drawSVG(java.io.OutputStream out)
Draws a chart and produces the result as a SVG stored in an OuputStream |
void |
drawSVG(java.io.OutputStream out,
SVGContext svgContext)
Draws a chart within a given SVG context and produces the result as a SVGstored in an OuputStream |
void |
drawSVG(java.lang.String pathFileName)
Draws a chart and produces the result as a SVG file |
void |
drawSVG(java.lang.String pathFileName,
SVGContext svgContext)
Draws a chart within a given SVG context and produces the result as a SVG file |
java.lang.String |
drawSVG(SVGContext svgContext)
Draws a chart within a given SVG context and returns the SVG as a String |
int |
get3dEffectValue()
Get the 3d effect value previously set (default value is 0) |
java.util.Vector |
getAllSeriesOrderByDisplayNumber()
Get a Vector containing all the Series (data) defining the chart. |
java.awt.image.BufferedImage |
getBufferedImage()
Get buffered image |
void |
set3dEffectValue(int coeff3dEffect)
Sets the 3d effect value. |
void |
setBackgroundColorVisible(boolean isBackGroundColorVisible)
Sets the background color visibility according to the parameter value. |
void |
setColorPalette(ColorPalette colorPalette)
Sets color Palette. |
void |
setGraphicBackgroundColor(java.awt.Color color)
Sets the graphic background color |
void |
setImageBackgroundColor(java.awt.Color color)
Sets the image background color |
void |
setLegendAlignMode(int legendAlignMode)
Sets the legend align mode |
void |
setLegendDisplayMode(int legendDisplayMode)
Sets the legend display mode. |
void |
setLegendFontSize(int size)
Sets font size to be used for the legend |
void |
setNbPixelFreeArroundImageForPresentation(int _nbPixelFreeArroundImageForPresentation)
Sets the number of pixels between the plot area and the edge of the image. |
void |
setRotateValue(int rotationValue)
Sets a rotation value for the chart. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int ROTATE_NONE
public static final int ROTATE_90_DEGREE
public static final int ROTATE_180_DEGREE
public static final int ROTATE_270_DEGREE
Method Detail |
public void setBackgroundColorVisible(boolean isBackGroundColorVisible)
isBackGroundColorVisible
- If true the background color is visiblepublic int get3dEffectValue()
public void set3dEffectValue(int coeff3dEffect)
coeff3dEffect
- 3d effect value to be set, a positive int valuepublic void setImageBackgroundColor(java.awt.Color color)
color
- The image background color to be setpublic void setGraphicBackgroundColor(java.awt.Color color)
color
- The graphic background color to be setpublic void setLegendFontSize(int size)
size
- The legend font size to be setpublic void setRotateValue(int rotationValue)
rotationValue
- Values allowed for the rotation value are:
public void drawPNG(java.lang.String pathFileName) throws OFCChartsException
pathFileName
- Resulting file name to store the generated JPEGOFCChartsException
- public void drawPNG(java.io.OutputStream out) throws OFCChartsException
out
- OutputStream The Output Stream to write chartOFCChartsException
- public void drawJPEG(java.lang.String pathFileName) throws OFCChartsException
pathFileName
- Resulting file name to store the generated JPEGOFCChartsException
- public void drawJPEG(java.io.OutputStream out) throws OFCChartsException
out
- OutputStream The Output Stream to write chartOFCChartsException
- public void setColorPalette(ColorPalette colorPalette)
colorPalette
- Palette of colors to be setpublic java.awt.image.BufferedImage getBufferedImage() throws OFCChartsException
OFCChartsException
- public void drawSVG(java.lang.String pathFileName) throws OFCChartsException
pathFileName
- Resulting file name to store the generated SVGOFCChartsException
- public void drawSVG(java.lang.String pathFileName, SVGContext svgContext) throws OFCChartsException
pathFileName
- Resulting file name to store the generated SVGsvgContext
- Contains information defining the SVG contextOFCChartsException
- public void drawSVG(java.io.OutputStream out) throws OFCChartsException
out
- OutputStream The OutputStream to write chartOFCChartsException
- public void drawSVG(java.io.OutputStream out, SVGContext svgContext) throws OFCChartsException
out
- OutputStream The OutputStream to write chartsvgContext
- Contains information defining the SVG contextOFCChartsException
- public java.lang.String drawSVG() throws OFCChartsException
OFCChartsException
- public java.lang.String drawSVG(SVGContext svgContext) throws OFCChartsException
svgContext
- Contains information defining the SVG contextOFCChartsException
- public void drawAnimateSVG(java.lang.String pathFileName, SVGAnimationContext svgAnimationContext) throws OFCChartsException
pathFileName
- Resulting file name to store the generated SVGsvgAnimationContext
- Contains the information related to the animationOFCChartsException
- public void drawAnimateSVG(java.lang.String pathFileName, SVGAnimationContext svgAnimationContext, SVGContext svgContext) throws OFCChartsException
pathFileName
- Resulting file name to store the generated SVGsvgAnimationContext
- Contains the information related to the animationsvgContext
- Contains information defining the SVG contextOFCChartsException
- public void drawAnimateSVG(java.io.OutputStream out, SVGAnimationContext svgAnimationContext) throws OFCChartsException
out
- OutputStream The OutputStream to write the chartsvgAnimationContext
- Contains the information related to the animationOFCChartsException
- public void drawAnimateSVG(java.io.OutputStream out, SVGAnimationContext svgAnimationContext, SVGContext svgContext) throws OFCChartsException
out
- The OutputStream to write the chartsvgAnimationContext
- Contains the information related to the animationsvgContext
- Contains information defining the SVG contextOFCChartsException
- public java.lang.String drawAnimateSVG(SVGAnimationContext svgAnimationContext) throws OFCChartsException
svgAnimationContext
- Contains the information related to the animationOFCChartsException
- public java.util.Vector getAllSeriesOrderByDisplayNumber()
public void setLegendDisplayMode(int legendDisplayMode)
legendDisplayMode
- The legend display mode to set.Legend
public void setLegendAlignMode(int legendAlignMode)
legendAlignMode
- The legend align mode to set.Legend
public void setNbPixelFreeArroundImageForPresentation(int _nbPixelFreeArroundImageForPresentation)
_nbPixelFreeArroundImageForPresentation
- int : number of pixels
|
OFC Charts 3.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |