Package org.eclipse.birt.chart.device
Interface IPrimitiveRenderer
- All Superinterfaces:
EventListener
- All Known Subinterfaces:
IDeviceRenderer
- All Known Implementing Classes:
DeviceAdapter
Provides low level primitive rendering notifications that are interpreted by
a device renderer.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This method is capable of applying a global transformation on the device specific graphics context Available transformation types are: SCALE, TRANSLATE, ROTATEvoid
drawArc
(ArcRenderEvent are) This method is responsible for drawing an elliptical arc on the target rendering device's graphic context.void
drawArea
(AreaRenderEvent are) This method is responsible for drawing a custom defined area on the target rendering device's graphic context.void
This method is responsible for drawing an image on the target rendering device's graphic context.void
drawLine
(LineRenderEvent lre) This method is responsible for drawing a line on the target rendering device's graphic context.void
drawOval
(OvalRenderEvent ore) This method is responsible for drawing an oval area on the target rendering device's graphic context.void
This method is responsible for drawing a polygon on the target rendering device's graphic context.void
This method is responsible for drawing a rectangle on the target rendering device's graphic context.void
drawText
(TextRenderEvent tre) This method renders text on the target rendering device's graphic context using one of the three methods: 1.void
void
fillArc
(ArcRenderEvent are) This method is responsible for filling an elliptical arc on the target rendering device's graphic context.void
fillArea
(AreaRenderEvent are) This method is responsible for filling a custom defined area on the target rendering device's graphic context.void
fillOval
(OvalRenderEvent ore) This method is responsible for filling an oval area on the target rendering device's graphic context.void
This method is responsible for filling a polygon on the target rendering device's graphic context.void
This method is responsible for filling a rectangle on the target rendering device's graphic context.void
setClip
(ClipRenderEvent cre) This method is responsible for clipping an arbitrary area on the target rendering device's graphic context.
-
Method Details
-
setClip
This method is responsible for clipping an arbitrary area on the target rendering device's graphic context.- Parameters:
cre
- Encapsulated information that defines the area to be clipped
-
drawImage
This method is responsible for drawing an image on the target rendering device's graphic context.- Parameters:
ire
- Encapsulated information that defines a polygon and its attributes- Throws:
ChartException
-
drawLine
This method is responsible for drawing a line on the target rendering device's graphic context.- Parameters:
lre
- Encapsulated information that defines a line and its attributes- Throws:
ChartException
-
drawRectangle
This method is responsible for drawing a rectangle on the target rendering device's graphic context.- Parameters:
rre
- Encapsulated information that defines a rectangle and its attributes- Throws:
ChartException
-
fillRectangle
This method is responsible for filling a rectangle on the target rendering device's graphic context.- Parameters:
rre
- Encapsulated information that defines a rectangle and its attributes- Throws:
ChartException
-
drawPolygon
This method is responsible for drawing a polygon on the target rendering device's graphic context.- Parameters:
pre
- Encapsulated information that defines a polygon and its attributes- Throws:
ChartException
-
fillPolygon
This method is responsible for filling a polygon on the target rendering device's graphic context.- Parameters:
pre
- Encapsulated information that defines a polygon and its attributes- Throws:
ChartException
-
drawArc
This method is responsible for drawing an elliptical arc on the target rendering device's graphic context.- Parameters:
are
- Encapsulated information that defines the arc and its attributes- Throws:
ChartException
-
fillArc
This method is responsible for filling an elliptical arc on the target rendering device's graphic context.- Parameters:
are
- Encapsulated information that defines an arc and its attributes- Throws:
ChartException
-
enableInteraction
- Parameters:
ie
-- Throws:
ChartException
-
drawArea
This method is responsible for drawing a custom defined area on the target rendering device's graphic context.- Parameters:
are
- Encapsulated information that defines the area and its attributes- Throws:
ChartException
-
fillArea
This method is responsible for filling a custom defined area on the target rendering device's graphic context.- Parameters:
are
- Encapsulated information that defines the area and its attributes- Throws:
ChartException
-
drawOval
This method is responsible for drawing an oval area on the target rendering device's graphic context.- Parameters:
ore
- Encapsulated information that defines the oval and its attributes- Throws:
ChartException
-
fillOval
This method is responsible for filling an oval area on the target rendering device's graphic context.- Parameters:
ore
- Encapsulated information that defines the oval and its attributes- Throws:
ChartException
-
drawText
This method renders text on the target rendering device's graphic context using one of the three methods: 1. Renders text (with optional insets, border, fill, etc) with the encapsulating container rectangle's corner or edge aligning against a given point 2. Renders a shadow offset with the encapsulating container rectangle's corner or edge aligning against a given point 3. Renders text (with optional insets, border, fill, etc) with the encapsulating container rectangle's bounding box aligned with a parent block's bounding box- Parameters:
ore
- Encapsulated information that defines the text being rendered, its position and various other attributes- Throws:
ChartException
-
applyTransformation
This method is capable of applying a global transformation on the device specific graphics context Available transformation types are: SCALE, TRANSLATE, ROTATE- Parameters:
tev
-- Throws:
ChartException
-