Package com.positive.charts.util

Examples of com.positive.charts.util.Stroke


   *            the value at which the grid line should be drawn.
   */
  public void drawRangeLine(final GC g2, final XYPlot plot,
      final ValueAxis axis, final Rectangle dataArea, final double value) {
    final Color color = plot.getDomainGridlinePaint();
    final Stroke stroke = plot.getDomainGridlineStroke();
    // g2.setPaint(paint != null ? paint : Plot.DEFAULT_OUTLINE_PAINT);
    // g2.setStroke(stroke != null ? stroke : Plot.DEFAULT_OUTLINE_STROKE);

    if (color != null) {
      g2.setForeground(color);
    }
    if (stroke != null) {
      stroke.set(g2);
    }
    this.drawRangeLine(g2, plot, axis, dataArea, value, null, null);
  }
View Full Code Here


        }
        final Rectangle shape = this.lookupSeriesShape(series);
        final Color paint = this.getSeriesPaint(series);
        final Color outlinePaint = this
            .lookupSeriesOutlinePaint(series);
        final Stroke outlineStroke = this
            .lookupSeriesOutlineStroke(series);
        result = new LegendItem(label, description, toolTipText,
            urlText, shape, paint, outlineStroke, outlinePaint);
        result.setSeriesKey(dataset.getSeriesKey(series));
        result.setSeriesKey(dataset.getSeriesKey(series));
View Full Code Here

  private Color lookupSeriesOutlinePaint(final int series) {
    return  StaticColorChecker.dublicateColor(SWT.COLOR_BLACK);//Display.getCurrent().getSystemColor(SWT.COLOR_BLACK);
  }

  private Stroke lookupSeriesOutlineStroke(final int series) {
    return new Stroke(1);
  }
View Full Code Here

    // draw the domain grid lines, if any...
    if (this.isDomainGridlinesVisible()) {
      final CategoryAnchor anchor = this.getDomainGridlinePosition();
      final RectangleEdge domainAxisEdge = this.getDomainAxisEdge();
      final Stroke gridStroke = this.getDomainGridlineStroke();
      final Color gridPaint = this.getDomainGridlinePaint();
      if ((gridStroke != null) && (gridPaint != null)) {
        // iterate over the categories
        final CategoryDataset data = this.getDataset();
        if (data != null) {
View Full Code Here

   */
  protected void drawRangeGridlines(final GC g2, final Rectangle dataArea,
      final List ticks) {
    // draw the range grid lines, if any...
    if (this.isRangeGridlinesVisible()) {
      final Stroke gridStroke = this.getRangeGridlineStroke();
      final Color gridPaint = this.getRangeGridlinePaint();
      if ((gridStroke != null) && (gridPaint != null)) {
        final ValueAxis axis = this.getRangeAxis();
        if (axis != null) {
          final Iterator iterator = ticks.iterator();
View Full Code Here

   * Returns the stroke used to draw the grid-lines against the range axis.
   *
   * @return The stroke (never <code>null</code>).
   */
  public Stroke getRangeGridlineStroke() {
    Stroke stroke = this.getStroke(CategoryPlot.STROKE_RANGE_GRIDLINE);
    if (stroke == null) {
      stroke = this.rangeGridlineStroke;
    }
    return stroke;
  }
View Full Code Here

    return result;
  }

  public Stroke getNextStroke() {
    // TODO : Make more intellectual
    return new Stroke(1);
  }
View Full Code Here

      paint = this.getPlot().getDrawingAssets().getColor(
          CategoryPlot.COLOR_GRIDLINE_PAINT);
    }
    gc.setForeground(paint);

    Stroke stroke = plot.getDomainGridlineStroke();
    if (stroke == null) {
      stroke = CategoryPlot.DEFAULT_GRIDLINE_STROKE;
    }
    stroke.set(gc);
    GCUtilities.draw(gc, line);
  }
View Full Code Here

      paint = this.getPlot().getDrawingAssets().getColor(
          CategoryPlot.COLOR_GRIDLINE_PAINT);
    }
    gc.setForeground(paint);

    Stroke stroke = plot.getRangeGridlineStroke();
    if (stroke == null) {
      stroke = CategoryPlot.DEFAULT_GRIDLINE_STROKE;
    }
    stroke.set(gc);
    GCUtilities.draw(gc, line);
  }
View Full Code Here

          .generateLabel(dataset, series);
    }
    final Rectangle shape = this.getSeriesShape(series);
    final Color paint = this.getSeriesPaint(series);
    final Color outlinePaint = this.getSeriesOutlinePaint(series);
    final Stroke outlineStroke = this.getSeriesOutlineStroke(series);

    // this(label, description, toolTipText, urlText,
    // /* shape visible = */ true, shape,

    // /* shape filled = */ true, fillPaint,
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.