|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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. |
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 |
public static final java.lang.String FILE_IDENTIFIER
public static final java.lang.String FORMAT_IDENTIFIER
public static final java.lang.String GRAPHICS_CONTEXT
public static final java.lang.String UPDATE_NOTIFIER
public static final java.lang.String EXPECTED_BOUNDS
public static final java.lang.String CACHED_IMAGE
public static final java.lang.String COMPRESSED_OUTPUT
public static final java.lang.String DPI_RESOLUTION
public static final java.lang.Object CACHE_ON_DISK
Method Detail |
public void setProperty(java.lang.String sProperty, java.lang.Object oValue)
sProperty
- The property whose value is to be setoValue
- The value associated with the propertypublic java.lang.Object getGraphicsContext()
public IDisplayServer getDisplayServer()
public boolean needsStructureDefinition()
public void before() throws ChartException
RenderingException
ChartException
public void after() throws ChartException
RenderingException
ChartException
public void dispose()
public void presentException(java.lang.Exception ex)
ex
- The exception to be presentedpublic java.util.Locale getLocale()
getULocale()
instead.
public com.ibm.icu.util.ULocale getULocale()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |