public class RainflowRenderer
extends net.sf.jasperreports.engine.JRAbstractRenderer
implements net.sf.jasperreports.engine.JRRenderable
,
Serialized Form| Constructor and Description |
|---|
RainflowRenderer(OdsxColumn presentable)
Create the renderer for an ODSX Column definition.
|
RainflowRenderer(Rainflow rfm)
Create the renderer for an existing rainflow object.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
drawDiamond(java.awt.Graphics2D g,
int x,
int y,
int count,
double max)
Draw the diamonds.
|
java.awt.Color |
getBackcolor()
Get the background color.
|
java.awt.geom.Dimension2D |
getDimension()
Get the dimension.
|
byte[] |
getImageData()
Get the image data.
|
byte |
getImageType()
Get the image type.
|
static net.sf.jasperreports.engine.JRRenderable |
getInstance(java.lang.Object value)
Get an instance of the renderer.
|
byte |
getType()
Get the type.
|
void |
render(java.awt.Graphics2D grx,
java.awt.geom.Rectangle2D rectangle)
Do the rendering.
|
public RainflowRenderer(Rainflow rfm)
rfm - the rainflow object.public RainflowRenderer(OdsxColumn presentable)
presentable - public byte getType()
getType in interface net.sf.jasperreports.engine.JRRenderablepublic byte getImageType()
getImageType in interface net.sf.jasperreports.engine.JRRenderablepublic java.awt.geom.Dimension2D getDimension()
throws net.sf.jasperreports.engine.JRException
getDimension in interface net.sf.jasperreports.engine.JRRenderablenet.sf.jasperreports.engine.JRExceptionpublic java.awt.Color getBackcolor()
public byte[] getImageData()
throws net.sf.jasperreports.engine.JRException
getImageData in interface net.sf.jasperreports.engine.JRRenderablenet.sf.jasperreports.engine.JRExceptionpublic void render(java.awt.Graphics2D grx,
java.awt.geom.Rectangle2D rectangle)
throws net.sf.jasperreports.engine.JRException
render in interface net.sf.jasperreports.engine.JRRenderablegrrx - the graphical context.rectangle - the rectangle reserved for that element.net.sf.jasperreports.engine.JRExceptionprotected void drawDiamond(java.awt.Graphics2D g,
int x,
int y,
int count,
double max)
g - The graphial context.x - the x position.y - the y positioncount - the actual count value.max - the maximum count value.public static net.sf.jasperreports.engine.JRRenderable getInstance(java.lang.Object value)
value - May be an instance of com.highqsoft.calculator.Rainflow
or com.highqsoft.odsx.OdsxColumn