Package com.positive.charts.plot

Examples of com.positive.charts.plot.DrawingSupplier


    // otherwise look up the paint list
    color = (Color) this.paintMap.get(new Integer(series));

    if (color == null) {
      // ask drawing supplier for next color
      final DrawingSupplier supplier = this.getDrawingSupplier();
      if (supplier != null) {
        color = supplier.getNextPaint();
        this.paintMap.put(new Integer(series), color);
      } else {
        color = this.getDrawingAssets()
            .getColor(Plot.COLOR_SERIES_BASE);
      }
View Full Code Here


    }

    // otherwise look up the paint table
    Color seriesOutlinePaint = (Color) this.outlinePaintMap.get(new Integer(series));
    if (seriesOutlinePaint == null) {
      final DrawingSupplier supplier = this.getDrawingSupplier();
      if (supplier != null) {
        seriesOutlinePaint = supplier.getNextOutlinePaint();
        this.outlinePaintMap.put(new Integer(series),
            seriesOutlinePaint);
      } else {
        seriesOutlinePaint = this.getDrawingAssets().getColor(
            Plot.COLOR_SERIES_OUTLINE_BASE);
View Full Code Here

    // otherwise look up the stroke table
    Stroke result = (Stroke) this.outlineStrokeMap.get(new Integer(series));
    if (result == null) {
      // ask drawing supplier for next color
      final DrawingSupplier supplier = this.getDrawingSupplier();
      if (supplier != null) {
        result = supplier.getNextStroke();
        this.outlineStrokeMap.put(new Integer(series), result);
      } else {
        result = this.getDrawingAssets().getStroke(
            Plot.STROKE_SERIES_OUTLINE_BASE);
      }
View Full Code Here

   * Returns the drawing supplier from the plot.
   *
   * @return The drawing supplier (possibly <code>null</code>).
   */
  public DrawingSupplier getDrawingSupplier() {
    DrawingSupplier result = null;
    final CategoryPlot cp = this.getPlot();
    if (cp != null) {
      result = cp.getDrawingSupplier();
    }
    return result;
View Full Code Here

TOP

Related Classes of com.positive.charts.plot.DrawingSupplier

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.