Class DeviceAdapter

    • Constructor Detail

      • DeviceAdapter

        public DeviceAdapter()
    • Method Detail

      • setProperty

        public void setProperty​(java.lang.String sProperty,
                                java.lang.Object oValue)
        Description copied from interface: IDeviceRenderer
        Device-specific write-only properties that may be set for each device renderer
        Specified by:
        setProperty in interface IDeviceRenderer
        Parameters:
        sProperty - The property whose value is to be set
        oValue - The value associated with the property
      • getGraphicsContext

        public java.lang.Object getGraphicsContext()
        Description copied from interface: IDeviceRenderer
        Returns an instance of the low level graphics context being used to render primitives
        Specified by:
        getGraphicsContext in interface IDeviceRenderer
        Returns:
        An instance of the low level graphics context being used to render primitives
      • getDisplayServer

        public IDisplayServer getDisplayServer()
        Description copied from interface: IDeviceRenderer
        Returns an instance of the low level display server capable of providing text metrics, screen resolution, etc.
        Specified by:
        getDisplayServer in interface IDeviceRenderer
        Returns:
        An instance of the low level display server capable of providing text metrics, screen resolution, etc.
      • getLocale

        public final java.util.Locale getLocale()
        Description copied from interface: IDeviceRenderer
        Provides the locale to device renderer implementations as needed to retrieve localized resources for presentation.
        Specified by:
        getLocale in interface IDeviceRenderer
        Returns:
        The locale to be used
      • getULocale

        public final com.ibm.icu.util.ULocale getULocale()
        Description copied from interface: IDeviceRenderer
        Provides the locale to device renderer implementations as needed to retrieve localized resources for presentation.
        Specified by:
        getULocale in interface IDeviceRenderer
        Returns:
        The locale to be used
      • needsStructureDefinition

        public boolean needsStructureDefinition()
        Description copied from interface: IDeviceRenderer
        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.
        Specified by:
        needsStructureDefinition in interface IDeviceRenderer
        Returns:
        'true' if structure definition notificates are required in the device renderer implementation.
      • dispose

        public void dispose()
        Description copied from interface: IDeviceRenderer
        A notification sent to the device to free all allocated system resources.
        Specified by:
        dispose in interface IDeviceRenderer
      • setClip

        public void setClip​(ClipRenderEvent cre)
        Description copied from interface: IPrimitiveRenderer
        This method is responsible for clipping an arbitrary area on the target rendering device's graphic context.
        Specified by:
        setClip in interface IPrimitiveRenderer
        Parameters:
        cre - Encapsulated information that defines the area to be clipped
      • drawText

        public void drawText​(TextRenderEvent tre)
                      throws ChartException
        Description copied from interface: IPrimitiveRenderer
        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
        Specified by:
        drawText in interface IPrimitiveRenderer
        Throws:
        ChartException
      • changeStructure

        public void changeStructure​(StructureChangeEvent scev)
        Description copied from interface: IStructureDefinitionListener
        Sends out a notification to a listener indicating that a structure group has changed (either via a start or end) notification.
        Specified by:
        changeStructure in interface IStructureDefinitionListener
        Parameters:
        scev - Encapsulated information associated with the structure change notification that identifies the source object being changed.
      • presentException

        public void presentException​(java.lang.Exception cexp)
        Description copied from interface: IDeviceRenderer
        Notifies a device renderer to present an exception in its context
        Specified by:
        presentException in interface IDeviceRenderer
        Parameters:
        cexp - The exception to be presented
      • getMimeType

        public java.lang.String getMimeType()
        Description copied from interface: IDeviceRenderer
        Returns the MIME type of the output image that the device renderer creates. Returns null in case of native rendering (no image file is created)
        Specified by:
        getMimeType in interface IDeviceRenderer
        Returns:
        the MIME type as a String (e.g. "image/png")