|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.birt.chart.event.EventObjectCache
org.eclipse.birt.chart.device.DeviceAdapter
A no-op adapter implementation for the
IDeviceRenderer
interface definition.
Field Summary |
Fields inherited from interface org.eclipse.birt.chart.device.IDeviceRenderer |
CACHE_ON_DISK, CACHED_IMAGE, COMPRESSED_OUTPUT, DPI_RESOLUTION, EXPECTED_BOUNDS, FILE_IDENTIFIER, FORMAT_IDENTIFIER, GRAPHICS_CONTEXT, UPDATE_NOTIFIER |
Constructor Summary | |
DeviceAdapter()
|
Method Summary | |
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. |
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. |
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 |
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 |
Methods inherited from class org.eclipse.birt.chart.event.EventObjectCache |
getEventObject |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DeviceAdapter()
Method Detail |
public void setProperty(java.lang.String sProperty, java.lang.Object oValue)
IDeviceRenderer
setProperty
in interface IDeviceRenderer
sProperty
- The property whose value is to be setoValue
- The value associated with the propertypublic java.lang.Object getGraphicsContext()
IDeviceRenderer
getGraphicsContext
in interface IDeviceRenderer
public IDisplayServer getDisplayServer()
IDeviceRenderer
getDisplayServer
in interface IDeviceRenderer
public final java.util.Locale getLocale()
IDeviceRenderer
getLocale
in interface IDeviceRenderer
public final com.ibm.icu.util.ULocale getULocale()
IDeviceRenderer
getULocale
in interface IDeviceRenderer
public boolean needsStructureDefinition()
IDeviceRenderer
needsStructureDefinition
in interface IDeviceRenderer
public void before() throws ChartException
IDeviceRenderer
before
in interface IDeviceRenderer
ChartException
public void after() throws ChartException
IDeviceRenderer
after
in interface IDeviceRenderer
ChartException
public void dispose()
IDeviceRenderer
dispose
in interface IDeviceRenderer
public void setClip(ClipRenderEvent cre)
IPrimitiveRenderer
setClip
in interface IPrimitiveRenderer
cre
- Encapsulated information that defines the area to be clippedpublic void drawImage(ImageRenderEvent ire) throws ChartException
IPrimitiveRenderer
drawImage
in interface IPrimitiveRenderer
ire
- Encapsulated information that defines a polygon and its
attributes
ChartException
public void drawLine(LineRenderEvent lre) throws ChartException
IPrimitiveRenderer
drawLine
in interface IPrimitiveRenderer
lre
- Encapsulated information that defines a line and its
attributes
ChartException
public void drawRectangle(RectangleRenderEvent rre) throws ChartException
IPrimitiveRenderer
drawRectangle
in interface IPrimitiveRenderer
rre
- Encapsulated information that defines a rectangle and its
attributes
ChartException
public void fillRectangle(RectangleRenderEvent rre) throws ChartException
IPrimitiveRenderer
fillRectangle
in interface IPrimitiveRenderer
rre
- Encapsulated information that defines a rectangle and its
attributes
ChartException
public void drawPolygon(PolygonRenderEvent pre) throws ChartException
IPrimitiveRenderer
drawPolygon
in interface IPrimitiveRenderer
pre
- Encapsulated information that defines a polygon and its
attributes
ChartException
public void fillPolygon(PolygonRenderEvent pre) throws ChartException
IPrimitiveRenderer
fillPolygon
in interface IPrimitiveRenderer
pre
- Encapsulated information that defines a polygon and its
attributes
ChartException
public void drawArc(ArcRenderEvent are) throws ChartException
IPrimitiveRenderer
drawArc
in interface IPrimitiveRenderer
are
- Encapsulated information that defines the arc and its
attributes
ChartException
public void fillArc(ArcRenderEvent are) throws ChartException
IPrimitiveRenderer
fillArc
in interface IPrimitiveRenderer
are
- Encapsulated information that defines an arc and its
attributes
ChartException
public void enableInteraction(InteractionEvent ie) throws ChartException
enableInteraction
in interface IPrimitiveRenderer
ie
-
ChartException
public void drawArea(AreaRenderEvent are) throws ChartException
IPrimitiveRenderer
drawArea
in interface IPrimitiveRenderer
are
- Encapsulated information that defines the area and its
attributes
ChartException
public void fillArea(AreaRenderEvent are) throws ChartException
IPrimitiveRenderer
fillArea
in interface IPrimitiveRenderer
are
- Encapsulated information that defines the area and its
attributes
ChartException
public void drawOval(OvalRenderEvent ore) throws ChartException
IPrimitiveRenderer
drawOval
in interface IPrimitiveRenderer
ore
- Encapsulated information that defines the oval and its
attributes
ChartException
public void fillOval(OvalRenderEvent ore) throws ChartException
IPrimitiveRenderer
fillOval
in interface IPrimitiveRenderer
ore
- Encapsulated information that defines the oval and its
attributes
ChartException
public void drawText(TextRenderEvent tre) throws ChartException
IPrimitiveRenderer
drawText
in interface IPrimitiveRenderer
ChartException
public void applyTransformation(TransformationEvent tev) throws ChartException
IPrimitiveRenderer
applyTransformation
in interface IPrimitiveRenderer
tev
-
ChartException
public void changeStructure(StructureChangeEvent scev)
IStructureDefinitionListener
changeStructure
in interface IStructureDefinitionListener
scev
- Encapsulated information associated with the structure change
notification that identifies the source object being changed.public void presentException(java.lang.Exception cexp)
IDeviceRenderer
presentException
in interface IDeviceRenderer
cexp
- The exception to be presented
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |