Examples of Stroke


Examples of java.awt.Stroke

    JRPrintElement element,
    int offsetX,
    int offsetY
    )
  {
    Stroke leftStroke = JRPenUtil.getStroke(leftPen, BasicStroke.CAP_BUTT);
    int height = element.getHeight();
    float topOffset = topPen.getLineWidth().floatValue() / 2 - BorderOffset.getOffset(topPen);
    float bottomOffset = bottomPen.getLineWidth().floatValue() / 2 - BorderOffset.getOffset(bottomPen);
   
    if (leftStroke != null && height > 0)
View Full Code Here

Examples of java.awt.Stroke

    JRPrintElement element,
    int offsetX,
    int offsetY
    )
  {
    Stroke bottomStroke = JRPenUtil.getStroke(bottomPen, BasicStroke.CAP_BUTT);
    int width = element.getWidth();
    int height = element.getHeight();
    float leftOffset = leftPen.getLineWidth().floatValue() / 2 - BorderOffset.getOffset(leftPen);
    float rightOffset = rightPen.getLineWidth().floatValue() / 2 - BorderOffset.getOffset(rightPen);
   
View Full Code Here

Examples of java.awt.Stroke

    JRPrintElement element,
    int offsetX,
    int offsetY
    )
  {
    Stroke rightStroke = JRPenUtil.getStroke(rightPen, BasicStroke.CAP_BUTT);
    int height = element.getHeight();
    int width = element.getWidth();
    float topOffset = topPen.getLineWidth().floatValue() / 2 - BorderOffset.getOffset(topPen);
    float bottomOffset = bottomPen.getLineWidth().floatValue() / 2 - BorderOffset.getOffset(bottomPen);
   
View Full Code Here

Examples of java.awt.Stroke

   */
  protected void configurePlot(Plot p, JRChartPlot jrPlot)
  {
    RectangleInsets defaultPlotInsets = (RectangleInsets)getDefaultValue(defaultPlotPropertiesMap, ChartThemesConstants.PLOT_INSETS);
    Paint defaultPlotOutlinePaint = (Paint)getDefaultValue(defaultPlotPropertiesMap, ChartThemesConstants.PLOT_OUTLINE_PAINT);
    Stroke defaultPlotOutlineStroke = (Stroke)getDefaultValue(defaultPlotPropertiesMap, ChartThemesConstants.PLOT_OUTLINE_STROKE);
    Boolean defaultPlotOutlineVisible = (Boolean)getDefaultValue(defaultPlotPropertiesMap, ChartThemesConstants.PLOT_OUTLINE_VISIBLE);
    if(defaultPlotInsets != null)
      p.setInsets(defaultPlotInsets);

    if(defaultPlotOutlineVisible != null)
View Full Code Here

Examples of java.awt.Stroke

     
      if (linePaint != null)
      {
        axis.setAxisLinePaint(linePaint);
      }
      Stroke defaultAxisLineStroke = (Stroke)getDefaultValue(defaultAxisPropertiesMap, ChartThemesConstants.AXIS_LINE_STROKE);
      if(defaultAxisLineStroke != null)
        axis.setAxisLineStroke(defaultAxisLineStroke);
    }
  }
View Full Code Here

Examples of org.geotools.styling.Stroke

      return mark;
    }
  }

  private Stroke createStroke(FeatureStyleInfo featureStyle) {
    Stroke stroke = styleBuilder.createStroke(styleBuilder.literalExpression(featureStyle.getStrokeColor()),
        styleBuilder.literalExpression(featureStyle.getStrokeWidth()),
        styleBuilder.literalExpression(featureStyle.getStrokeOpacity()));
    if (featureStyle.getDashArray() != null) {
      String[] strs = featureStyle.getDashArray().split(",");
      float[] nrs = new float[strs.length];
      for (int i = 0; i < strs.length; i++) {
        try {
          nrs[i] = Float.parseFloat(strs[i]);
        } catch (NumberFormatException e) {
          log.warn("unparseable dash array " + featureStyle.getDashArray(), e);
        }
      }
      stroke.setDashArray(nrs);
    }
    return stroke;
  }
View Full Code Here

Examples of org.opengis.style.Stroke

        List<GraphicalSymbol> symbols = graphic.graphicalSymbols();
        assertEquals(1, symbols.size());
        Mark mark = (Mark) symbols.get(0);
        assertEquals("circle", mark.getWellKnownName().evaluate(null));
        assertEquals(Color.RED, mark.getFill().getColor().evaluate(null, Color.class));
        Stroke stroke = mark.getStroke();
        assertEquals(Color.BLUE, stroke.getColor().evaluate(null, Color.class));
        assertEquals(2, (int) stroke.getWidth().evaluate(null, Integer.class));
    }
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.