Package com.positive.charts.util

Examples of com.positive.charts.util.Stroke


        g2.setBackground(Color);
        g2.fillArc(arcBounds.x, arcBounds.y, arcBounds.width,
            arcBounds.height, (int) angle1 + 1, (int) angle - 1);

        final Color outlinePaint = this.lookupSectionOutlinePaint(key);
        final Stroke outlineStroke = this
            .lookupSectionOutlineStroke(key);
        if (this.sectionOutlinesVisible) {
          g2.setForeground(outlinePaint);
          outlineStroke.set(g2);
          g2.drawArc(arcBounds.x, arcBounds.y, arcBounds.width,
              arcBounds.height, (int) angle1 + 1, (int) angle - 1);
        }

        // update the linking line target for later
View Full Code Here


                this.dataset, key, this.pieIndex);
          }
          final Color Color = this.lookupSectionPaint(key, true);
          final Color outlinePaint = this
              .lookupSectionOutlinePaint(key);
          final Stroke outlineStroke = this
              .lookupSectionOutlineStroke(key);
          final LegendItem item = new LegendItem(label, description,
              toolTipText, urlText, true, shape, true, Color,
              true, outlinePaint,
              outlineStroke,
              false, // line
              // not
              // visible
              new Rectangle(0, 0, 0, 0), new Stroke(1),
              StaticColorChecker.dublicateColor(SWT.COLOR_BLACK));
          // Display
          // .getDefault().getSystemColor(
          // SWT.COLOR_BLACK));
          item.setDataset(this.getDataset());
View Full Code Here

   * @since 1.0.3
   *
   * @see #lookupSectionOutlineStroke(Comparable, boolean)
   */
  protected Stroke lookupSectionOutlineStroke(final Comparable key) {
    final Stroke lookupSectionOutlineStroke = this
        .lookupSectionOutlineStroke(key, false);
    if (lookupSectionOutlineStroke == null) {
      return new Stroke(1);
    }
    return lookupSectionOutlineStroke;
  }
View Full Code Here

   */
  protected Stroke lookupSectionOutlineStroke(final Comparable key,
      final boolean autoPopulate) {

    // is there an override?
    Stroke result = this.getSectionOutlineStroke();
    if (result != null) {
      return result;
    }

    // if not, check if there is a stroke defined for the specified key
View Full Code Here

    gc.fillRectangle(bar);

    // draw the outline...
    if (this.isDrawBarOutline()
        && (state.getBarWidth() > BAR_OUTLINE_WIDTH_THRESHOLD)) {
      final Stroke stroke = this.getItemOutlineStroke(row, column);
      final Color paint = this.getItemOutlinePaint(row, column);
      if ((stroke != null) && (paint != null)) {
        stroke.set(gc);
        gc.setBackground(paint);
        gc.drawRectangle(bar);
      }
    }
View Full Code Here

          series);
    }
    final Rectangle shape = new Rectangle(-4, -4, 8, 8);
    final Color paint = this.getSeriesPaint(series);
    final Color outlinePaint = this.getSeriesOutlinePaint(series);
    final Stroke outlineStroke = this.getSeriesOutlineStroke(series);

    final Color legendItemLineColor = this.getPlot().getColor(
        Plot.DEFAULT_LEGEND_ITEM_LINE_COLOR);

    return new LegendItem(label, description, toolTipText, urlText, true,
        shape, true, paint, this.isDrawBarOutline(), outlinePaint,
        outlineStroke, false, new Rectangle(0, 0, 0, 0), new Stroke(1),
        legendItemLineColor);
  }
View Full Code Here

TOP

Related Classes of com.positive.charts.util.Stroke

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.