Package java.awt

Examples of java.awt.Stroke


    int max = iconSize - 1;
    int w = max;
    float onethird = (0f + w) / 3;
    float twothirds = onethird * 2;
    float[] paniponidash = toDashArray(fsi.getDashArray());
    Stroke stroke = new BasicStroke(fsi.getStrokeWidth(), BasicStroke.CAP_SQUARE, BasicStroke.JOIN_MITER, 1.0f,
        paniponidash, 0.0f);
    gr.setColor(toColor(fsi.getStrokeColor(), fsi.getStrokeOpacity()));
    gr.setStroke(stroke);
    Path2D s = new Path2D.Double(Path2D.WIND_EVEN_ODD, 3);
    s.moveTo(0, 0);
View Full Code Here


  private void drawPoint(Graphics2D gr, FeatureStyleInfo fsi, int iconSize) throws AdvancedviewsException {
    int x = 0, y = 0, w = 0, h = 0, max = iconSize - 1;
    int addSize = 0;
    float[] paniponidash = toDashArray(fsi.getDashArray());
    Stroke stroke = new BasicStroke(fsi.getStrokeWidth(), BasicStroke.CAP_SQUARE, BasicStroke.JOIN_MITER, 1.0f,
        paniponidash, 0.0f);
    gr.setColor(toColor(fsi.getFillColor(), fsi.getFillOpacity()));

    if (null != fsi.getSymbol().getCircle()) {
      CircleInfo info = fsi.getSymbol().getCircle();
View Full Code Here

  /**
   * @param borderStroke the borderStroke to set
   */
  public void setBorderStroke(Stroke borderStroke) {
    Stroke old = getBorderStroke();
    this.borderStroke = borderStroke;
    getEventSupport().firePropertyChange(PROPERTY_borderStroke, old, getBorderStroke());
  }
View Full Code Here

        );
    }

    grx.setColor(ellipse.getLinePen().getLineColor());

    Stroke stroke = JRPenUtil.getStroke(ellipse.getLinePen(), BasicStroke.CAP_SQUARE);

    if (stroke != null)
    {
      grx.setStroke(stroke);
     
View Full Code Here

    JRPrintElement element,
    int offsetX,
    int offsetY
    )
  {
    Stroke topStroke = JRPenUtil.getStroke(topPen, BasicStroke.CAP_BUTT);
    int width = element.getWidth();
    float leftOffset = leftPen.getLineWidth().floatValue() / 2 - BorderOffset.getOffset(leftPen);
    float rightOffset = rightPen.getLineWidth().floatValue() / 2 - BorderOffset.getOffset(rightPen);
   
    if (topStroke != null && width > 0)
View Full Code Here

    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

    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

    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

   */
  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

     
      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

TOP

Related Classes of java.awt.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.