public abstract class DeviceAdapter extends EventObjectCache implements IDeviceRenderer
IDeviceRendererinterface definition.AREA_ALT_ENABLED, CACHE_ON_DISK, CACHED_IMAGE, COMPRESSED_OUTPUT, DPI_RESOLUTION, EXPECTED_BOUNDS, FILE_IDENTIFIER, FORMAT_IDENTIFIER, GRAPHICS_CONTEXT, UPDATE_NOTIFIERAFTER_DRAW_AXIS_LABEL, AFTER_DRAW_AXIS_TITLE, AFTER_DRAW_BLOCK, AFTER_DRAW_DATA_POINT, AFTER_DRAW_DATA_POINT_LABEL, AFTER_DRAW_ELEMENT, AFTER_DRAW_FITTING_CURVE, AFTER_DRAW_LEGEND_ENTRY, AFTER_DRAW_LEGEND_ITEM, AFTER_DRAW_MARKER, AFTER_DRAW_MARKER_LINE, AFTER_DRAW_MARKER_RANGE, AFTER_DRAW_SERIES, AFTER_DRAW_SERIES_TITLE, BEFORE_DRAW_AXIS_LABEL, BEFORE_DRAW_AXIS_TITLE, BEFORE_DRAW_BLOCK, BEFORE_DRAW_DATA_POINT, BEFORE_DRAW_DATA_POINT_LABEL, BEFORE_DRAW_ELEMENT, BEFORE_DRAW_FITTING_CURVE, BEFORE_DRAW_LEGEND_ENTRY, BEFORE_DRAW_LEGEND_ITEM, BEFORE_DRAW_MARKER, BEFORE_DRAW_MARKER_LINE, BEFORE_DRAW_MARKER_RANGE, BEFORE_DRAW_SERIES, BEFORE_DRAW_SERIES_TITLE| 构造器和说明 |
|---|
DeviceAdapter() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
after()
A notification sent to the device to cleanup after rendering is done
|
void |
applyTransformation(TransformationEvent tev)
This method is capable of applying a global transformation on the device
specific graphics context Available transformation types are: SCALE,
TRANSLATE, ROTATE
|
void |
before()
A notification sent to the device to initialize itself before rendering
begins
|
void |
changeStructure(StructureChangeEvent scev)
Sends out a notification to a listener indicating that a structure group
has changed (either via a start or end) notification.
|
void |
dispose()
A notification sent to the device to free all allocated system resources.
|
void |
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 |
drawImage(ImageRenderEvent ire)
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 |
drawPolygon(PolygonRenderEvent pre)
This method is responsible for drawing a polygon on the target rendering
device's graphic context.
|
void |
drawRectangle(RectangleRenderEvent rre)
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 |
enableInteraction(InteractionEvent ie) |
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 |
fillPolygon(PolygonRenderEvent pre)
This method is responsible for filling a polygon on the target rendering
device's graphic context.
|
void |
fillRectangle(RectangleRenderEvent rre)
This method is responsible for filling a rectangle on the target
rendering device's graphic context.
|
IChartComputation |
getChartComputation()
Returns the chart computation.
|
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()
Provides the locale to device renderer implementations as needed to
retrieve localized resources for presentation.
|
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 cexp)
Notifies a device renderer to present an exception in its context
|
void |
setChartComputation(IChartComputation cComp)
Sets the chart computation.
|
void |
setClip(ClipRenderEvent cre)
This method is responsible for clipping an arbitrary area on the target
rendering device's graphic context.
|
void |
setProperty(java.lang.String sProperty,
java.lang.Object oValue)
Device-specific write-only properties that may be set for each device
renderer
|
getEventObjectpublic void setProperty(java.lang.String sProperty,
java.lang.Object oValue)
IDeviceRenderersetProperty 在接口中 IDeviceRenderersProperty - The property whose value is to be setoValue - The value associated with the propertypublic java.lang.Object getGraphicsContext()
IDeviceRenderergetGraphicsContext 在接口中 IDeviceRendererpublic IDisplayServer getDisplayServer()
IDeviceRenderergetDisplayServer 在接口中 IDeviceRendererpublic final java.util.Locale getLocale()
IDeviceRenderergetLocale 在接口中 IDeviceRendererpublic final com.ibm.icu.util.ULocale getULocale()
IDeviceRenderergetULocale 在接口中 IDeviceRendererpublic boolean needsStructureDefinition()
IDeviceRendererneedsStructureDefinition 在接口中 IDeviceRendererpublic void before()
throws ChartException
IDeviceRendererbefore 在接口中 IDeviceRendererChartExceptionpublic void after()
throws ChartException
IDeviceRendererafter 在接口中 IDeviceRendererChartExceptionpublic void dispose()
IDeviceRendererdispose 在接口中 IDeviceRendererpublic void setClip(ClipRenderEvent cre)
IPrimitiveRenderersetClip 在接口中 IPrimitiveRenderercre - Encapsulated information that defines the area to be clippedpublic void drawImage(ImageRenderEvent ire) throws ChartException
IPrimitiveRendererdrawImage 在接口中 IPrimitiveRendererire - Encapsulated information that defines a polygon and its
attributesChartExceptionpublic void drawLine(LineRenderEvent lre) throws ChartException
IPrimitiveRendererdrawLine 在接口中 IPrimitiveRendererlre - Encapsulated information that defines a line and its
attributesChartExceptionpublic void drawRectangle(RectangleRenderEvent rre) throws ChartException
IPrimitiveRendererdrawRectangle 在接口中 IPrimitiveRendererrre - Encapsulated information that defines a rectangle and its
attributesChartExceptionpublic void fillRectangle(RectangleRenderEvent rre) throws ChartException
IPrimitiveRendererfillRectangle 在接口中 IPrimitiveRendererrre - Encapsulated information that defines a rectangle and its
attributesChartExceptionpublic void drawPolygon(PolygonRenderEvent pre) throws ChartException
IPrimitiveRendererdrawPolygon 在接口中 IPrimitiveRendererpre - Encapsulated information that defines a polygon and its
attributesChartExceptionpublic void fillPolygon(PolygonRenderEvent pre) throws ChartException
IPrimitiveRendererfillPolygon 在接口中 IPrimitiveRendererpre - Encapsulated information that defines a polygon and its
attributesChartExceptionpublic void drawArc(ArcRenderEvent are) throws ChartException
IPrimitiveRendererdrawArc 在接口中 IPrimitiveRendererare - Encapsulated information that defines the arc and its
attributesChartExceptionpublic void fillArc(ArcRenderEvent are) throws ChartException
IPrimitiveRendererfillArc 在接口中 IPrimitiveRendererare - Encapsulated information that defines an arc and its
attributesChartExceptionpublic void enableInteraction(InteractionEvent ie) throws ChartException
enableInteraction 在接口中 IPrimitiveRendererChartExceptionpublic void drawArea(AreaRenderEvent are) throws ChartException
IPrimitiveRendererdrawArea 在接口中 IPrimitiveRendererare - Encapsulated information that defines the area and its
attributesChartExceptionpublic void fillArea(AreaRenderEvent are) throws ChartException
IPrimitiveRendererfillArea 在接口中 IPrimitiveRendererare - Encapsulated information that defines the area and its
attributesChartExceptionpublic void drawOval(OvalRenderEvent ore) throws ChartException
IPrimitiveRendererdrawOval 在接口中 IPrimitiveRendererore - Encapsulated information that defines the oval and its
attributesChartExceptionpublic void fillOval(OvalRenderEvent ore) throws ChartException
IPrimitiveRendererfillOval 在接口中 IPrimitiveRendererore - Encapsulated information that defines the oval and its
attributesChartExceptionpublic void drawText(TextRenderEvent tre) throws ChartException
IPrimitiveRendererdrawText 在接口中 IPrimitiveRendererChartExceptionpublic void applyTransformation(TransformationEvent tev) throws ChartException
IPrimitiveRendererapplyTransformation 在接口中 IPrimitiveRendererChartExceptionpublic void changeStructure(StructureChangeEvent scev)
IStructureDefinitionListenerchangeStructure 在接口中 IStructureDefinitionListenerscev - Encapsulated information associated with the structure change
notification that identifies the source object being changed.public void presentException(java.lang.Exception cexp)
IDeviceRendererpresentException 在接口中 IDeviceRenderercexp - The exception to be presentedpublic java.lang.String getMimeType()
IDeviceRenderergetMimeType 在接口中 IDeviceRendererpublic IChartComputation getChartComputation()
IDeviceRenderergetChartComputation 在接口中 IDeviceRendererpublic void setChartComputation(IChartComputation cComp)
IDeviceRenderersetChartComputation 在接口中 IDeviceRenderercComp - IChartComputationCopyright © 2005-2008 Actuate Corp. All rights reserved.