Class AbstractJ2DShape

All Implemented Interfaces:
Archivable, DeepChangeListener, RMPropertyChanger, RMTypes, PropertyChangeListener, Cloneable, EventListener
Direct Known Subclasses:
Barcode, ScriptableChart

public abstract class AbstractJ2DShape extends RMShape
This is the base class for all of our reporting components that prefer to render themselves using Java2D. This is convenient for bridging j2d-based libraries (like JFreeChart) into the reporting module, but the trade-off is that these components will be included as raster images in PDF exports of a report. Because the rasterized images will likely be printed, they are rendered at 300dpi, making them rather large, which means that the PDFs are fairly hefty.
  • Field Details

  • Constructor Details

    • AbstractJ2DShape

      public AbstractJ2DShape()
  • Method Details

    • setDirty

      protected void setDirty()
      Call this to mark the cached raster buffer as dirty and repaint
    • getDisplayedFill

      public RMFill getDisplayedFill()
      Overrides:
      getDisplayedFill in class RMShape
    • paintShape

      public void paintShape(RMShapePainter aPntr)
      Description copied from class: RMShape
      Basic shape painting - paints shape fill and stroke.
      Overrides:
      paintShape in class RMShape
    • render

      protected abstract void render(Graphics2D g, int width, int height)
      This is where implementations of AbstractJ2DShape actuall paint themselves to a graphics context.
    • getDefaultColorCodes

      public static String[] getDefaultColorCodes()
    • getDefaultColors

      public static Color[] getDefaultColors()