Examples of Stroke


Examples of java.awt.Stroke

    return true;
  }

  public static BorderEdge produceBorderEdge(final StyleSheet style)
  {
    final Stroke s = (Stroke) style.getStyleProperty(ElementStyleKeys.STROKE);
    if (s instanceof BasicStroke == false)
    {
      return null;
    }
    final BasicStroke bs = (BasicStroke) s;
View Full Code Here

Examples of java.awt.Stroke

      final boolean value = style.getBooleanStyleProperty(ElementStyleKeys.ANTI_ALIASING);
      bandStyleAtts.setAttribute(BundleNamespaces.STYLE, "anti-aliasing", String.valueOf(value));
    }
    if (style.isLocalKey(ElementStyleKeys.STROKE))
    {
      final Stroke s = (Stroke) style.getStyleProperty(ElementStyleKeys.STROKE);
      final float strokeWidth = StrokeUtility.getStrokeWidth(s);
      final BorderStyle strokeType = StrokeUtility.translateStrokeStyle(s);
      bandStyleAtts.setAttribute(BundleNamespaces.STYLE, "stroke-weight", absoluteLengthFormat.format(strokeWidth));
      bandStyleAtts.setAttribute(BundleNamespaces.STYLE, "stroke-style", strokeType.toString());
    }
View Full Code Here

Examples of java.awt.Stroke

    if (x1 == x2 && y1 == y2)
    {
      LineReadHandler.logger.warn("creating a horizontal line with 'x1 == x2 && y1 == y2' is deprecated. " +
          "Use relative coordinates instead.");
      final Stroke stroke = readStroke(atts);
      final String name = atts.getValue(getUri(), LineReadHandler.NAME_ATT);
      final Color c = ReportParserUtil.parseColor(atts.getValue(getUri(), LineReadHandler.COLOR_ATT));

      final HorizontalLineElementFactory elementFactory = new HorizontalLineElementFactory();
      elementFactory.setName(name);
View Full Code Here

Examples of java.awt.Stroke

                                  final float y1,
                                  final float x2,
                                  final float y2)
      throws SAXException
  {
    final Stroke stroke = readStroke(atts);
    final String name = atts.getValue(getUri(), LineReadHandler.NAME_ATT);
    final Color c = ReportParserUtil.parseColor
        (atts.getValue(getUri(), LineReadHandler.COLOR_ATT), null);

    final String widthValue = atts.getValue(getUri(), "width");
View Full Code Here

Examples of java.awt.Stroke

                                final float y1,
                                final float x2,
                                final float y2)
      throws SAXException
  {
    final Stroke stroke = readStroke(atts);
    final String name = atts.getValue(getUri(), LineReadHandler.NAME_ATT);
    final Color c = ReportParserUtil.parseColor(atts.getValue(getUri(), LineReadHandler.COLOR_ATT), null);
    final String widthValue = atts.getValue(getUri(), "width");
    final float width;
    if (widthValue != null)
View Full Code Here

Examples of java.awt.Stroke

      return;
    }


    final Color oldColor = g2d.getColor();
    final Stroke oldStroke = g2d.getStroke();

    if (isSameForAllSides())
    {
      final Shape borderShape = getBorderShape();
View Full Code Here

Examples of java.awt.Stroke

    {
      Graphics2D g2d = (Graphics2D) g;
      Color origColor = g2d.getColor();
      Object hint = g2d.getRenderingHint(RenderingHints.KEY_ANTIALIASING);
      g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
      Stroke origStroke = g2d.getStroke();

      g2d.translate(x, y);

      g2d.setColor(Color.BLACK);
      g2d.setStroke(basicStroke);
View Full Code Here

Examples of java.awt.Stroke

  protected void configureChart(final JFreeChart chart)
  {
    super.configureChart(chart);

    //Create the stroke for the primary (= real) data series...
    final Stroke thick = new BasicStroke(thicknessprimaryseries);

    //...and apply that stroke to the series
    final SpiderWebPlot webPlot = (SpiderWebPlot) chart.getPlot();

    if (StringUtils.isEmpty(getTooltipFormula()) == false)
View Full Code Here

Examples of java.awt.Stroke

          continue;
        }
        final String label = key.toString();
        final Paint paint = getSeriesPaint(series);
        final Paint outlinePaint = getSeriesOutlinePaint(series);
        final Stroke stroke = getSeriesOutlineStroke(series);
        final LegendItem item = new LegendItem(label, label,
            null, null, shape, paint, stroke, outlinePaint);
        item.setDataset(getDataset());
        item.setSeriesKey(key);
        item.setSeriesIndex(series);
View Full Code Here

Examples of java.awt.Stroke

        this.editor.setValue(null);
        this.samplePanel.setSampleValue(null);
      }
      else
      {
        final Stroke stroke = borderStyle.createStroke(width);
        this.editor.setValue(stroke);
        this.samplePanel.setSampleValue(stroke);
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.