Class PNGEmbedder


  • public class PNGEmbedder
    extends Embedder

    An Embedder that creates a bitmap image of the specified graph, and returns it as a PNG to the browser. This class handles rollovers on the data (for piegraph and barseries) or series (for lineseries) tags.

    For customers wishing to return their own type of bitmap to the browser, or wishing to handle rollovers in a different way, extending this class is a good place to start. Typically the methods that would need overriding are getMIMEType() and writeBitmap() if a format other thatn PNG is to be returned, createHTML() if the JavaScript and image map are to be created differently, and maybe fixActionString() and addSeriesToScript() if the JavaScript is to be completely redone.

    Since:
    2.4