|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDeviceRenderer
Combines the primitive rendering notifications provided in the primitive and other convenience methods needed by a device renderer. In addition, it provides an accessor to retrieve the underlying graphics context on which primitives are being rendered. Any new device renderer would have to implement this interface for it to transparently build charts via the rendering framework provided. Note that the device renderer works in conjunction with a display server implementation to correctly layout primitives.
Field Summary | |
---|---|
static java.lang.Object |
CACHE_ON_DISK
A Property to enable/disable the caching of the image stream on disk Default is false. |
static java.lang.String |
CACHED_IMAGE
A property name that identifies an instance of a cached java.awt.Image that may be passed in for potential reuse. |
static java.lang.String |
COMPRESSED_OUTPUT
A property name that indicates if the output associated with the device should be compressed ('true') or written out as is uncompressed ('false'). |
static java.lang.String |
DPI_RESOLUTION
A property name that indicates the dpi (dots/pixels per inch) resolution to use when rendering to the device. |
static java.lang.String |
EXPECTED_BOUNDS
A property name that identifies the expected bounds of the chart being generated. |
static java.lang.String |
FILE_IDENTIFIER
A property name that identifies a device-specific file identifier |
static java.lang.String |
FORMAT_IDENTIFIER
A property name that identifies an output format identifier |
static java.lang.String |
GRAPHICS_CONTEXT
A property name that identifies a device-specific graphics context |
static java.lang.String |
UPDATE_NOTIFIER
A property name that identifies a device-specific visual component (e.g. |
Method Summary | |
---|---|
void |
after()
A notification sent to the device to cleanup after rendering is done |
void |
before()
A notification sent to the device to initialize itself before rendering begins |
void |
dispose()
A notification sent to the device to free all allocated system resources. |
IDisplayServer |
getDisplayServer()
Returns an instance of the low level display server capable of providing text metrics, screen resolution, etc. |
java.lang.Object |
getGraphicsContext()
Returns an instance of the low level graphics context being used to render primitives |
java.util.Locale |
getLocale()
Deprecated. use getULocale() instead. |
java.lang.String |
getMimeType()
Returns the MIME type of the output image that the device renderer creates. |
com.ibm.icu.util.ULocale |
getULocale()
Provides the locale to device renderer implementations as needed to retrieve localized resources for presentation. |
boolean |
needsStructureDefinition()
Indicated to the caller if the device renderer needs additional structure definition callbacks to identify how primitives are to be grouped to possibly aid in client side event handling. |
void |
presentException(java.lang.Exception ex)
Notifies a device renderer to present an exception in its context |
void |
setProperty(java.lang.String sProperty,
java.lang.Object oValue)
Device-specific write-only properties that may be set for each device renderer |
Methods inherited from interface org.eclipse.birt.chart.device.IPrimitiveRenderer |
---|
applyTransformation, drawArc, drawArea, drawImage, drawLine, drawOval, drawPolygon, drawRectangle, drawText, enableInteraction, fillArc, fillArea, fillOval, fillPolygon, fillRectangle, setClip |
Methods inherited from interface org.eclipse.birt.chart.device.IStructureDefinitionListener |
---|
changeStructure |
Field Detail |
---|
static final java.lang.String FILE_IDENTIFIER
static final java.lang.String FORMAT_IDENTIFIER
static final java.lang.String GRAPHICS_CONTEXT
static final java.lang.String UPDATE_NOTIFIER
static final java.lang.String EXPECTED_BOUNDS
static final java.lang.String CACHED_IMAGE
static final java.lang.String COMPRESSED_OUTPUT
static final java.lang.String DPI_RESOLUTION
static final java.lang.Object CACHE_ON_DISK
Method Detail |
---|
void setProperty(java.lang.String sProperty, java.lang.Object oValue)
sProperty
- The property whose value is to be setoValue
- The value associated with the propertyjava.lang.Object getGraphicsContext()
IDisplayServer getDisplayServer()
boolean needsStructureDefinition()
void before() throws ChartException
RenderingException
ChartException
void after() throws ChartException
RenderingException
ChartException
void dispose()
void presentException(java.lang.Exception ex)
ex
- The exception to be presentedjava.util.Locale getLocale()
getULocale()
instead.
com.ibm.icu.util.ULocale getULocale()
java.lang.String getMimeType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |