Examples of BasicStroke


Examples of java.awt.BasicStroke

    // use a watermark to draw a frame around the page...
    final Band watermarkBand = report.getWatermark();
    final RectangleElementFactory sef = new RectangleElementFactory();
    sef.setMinimumSize(new FloatDimension(-100.0f, -100));
    sef.setColor(Color.black);
    sef.setStroke(new BasicStroke(1.0f));
    sef.setShouldDraw(Boolean.TRUE);
    sef.setScale(Boolean.TRUE);
    sef.setKeepAspectRatio(Boolean.FALSE);
    watermarkBand.addElement(sef.createElement());
  }
View Full Code Here

Examples of java.awt.BasicStroke

  private PropertyChangeSupport propertyChangeSupport;

  public BasicStrokeEditor()
  {
    super();
    value = new BasicStroke();
    propertyChangeSupport = new PropertyChangeSupport(this);
  }
View Full Code Here

Examples of java.awt.BasicStroke

      if (v < 0)
      {
        setValue(BorderStyle.getBorderStyle(strings[0].trim()));
        return;
      }
      setValue(new BasicStroke(v));
      return;
    }
    if (strings.length > 2)
    {
      return;
View Full Code Here

Examples of java.awt.BasicStroke

    public StrokeEditorComponent(BasicStrokeEditor editor)
    {
      this.editor = editor;
      samplePanel = new SamplePanel();

      final BasicStroke vb = (BasicStroke) editor.getValue();
      if (vb != null)
      {
        width = vb.getLineWidth();
        borderStyle = StrokeUtility.translateStrokeStyle(vb);
      }
      else
      {
        width = 0;
View Full Code Here

Examples of java.awt.BasicStroke

    labelFactory.setMinimumSize(new FloatDimension(-100, 15));
    labelFactory.setText("Notes:");
    b.addElement(labelFactory.createElement());

    final Element line = HorizontalLineElementFactory.createHorizontalLine(15);
    line.getStyle().setStyleProperty(ElementStyleKeys.STROKE, new BasicStroke(1));
    b.addElement(line);

    final Group group = report.getGroupByName("record-group");
    group.getHeader().addElement(b);
  }
View Full Code Here

Examples of java.awt.BasicStroke

    style.setStyleProperty(ElementStyleKeys.BACKGROUND_COLOR, new Color(0xAFAFAF));


    pageHeader.addElement
        (HorizontalLineElementFactory.createHorizontalLine
            (18, null, new BasicStroke(1)));

    final DateFieldElementFactory elementFactory = new DateFieldElementFactory();
    elementFactory.setAbsolutePosition(new Point2D.Float(-50, 0));
    elementFactory.setMinimumSize(new FloatDimension(-50, -100));
    elementFactory.setVerticalAlignment(ElementAlignment.MIDDLE);
View Full Code Here

Examples of java.awt.BasicStroke

    style.setStyleProperty(BandStyleKeys.DISPLAY_ON_FIRSTPAGE, Boolean.TRUE);
    style.setStyleProperty(ElementStyleKeys.MIN_HEIGHT, new Float(24));
    style.setStyleProperty(ElementStyleKeys.BACKGROUND_COLOR, new Color(0xAFAFAF));
    pageFooter.addElement
        (HorizontalLineElementFactory.createHorizontalLine
            (0, null, new BasicStroke(1)));

    final TextFieldElementFactory elementFactory = new TextFieldElementFactory();
    elementFactory.setAbsolutePosition(new Point2D.Float(0, 4));
    elementFactory.setMinimumSize(new FloatDimension(-100, -100));
    elementFactory.setVerticalAlignment(ElementAlignment.MIDDLE);
View Full Code Here

Examples of java.awt.BasicStroke

    labelFactory.setMinimumSize(new FloatDimension(-100, 15));
    labelFactory.setText("Task");
    b.addElement(labelFactory.createElement());

    b.addElement(HorizontalLineElementFactory.createHorizontalLine
        (15, null, new BasicStroke(1)));

    final Group group = report.getGroupByName("record-group");
    group.getHeader().addElement(b);
  }
View Full Code Here

Examples of java.awt.BasicStroke

        // Just to draw the matting for the arrowhead. The matting
        // for the rest of the line will be taken care of in
        // super.render().
        if (arrowhead != null && isMatted() && g instanceof Graphics2D
                && stroke instanceof BasicStroke) {
            ((Graphics2D) g).setStroke(new BasicStroke(((BasicStroke) stroke).getLineWidth() + 2f));
            setGraphicsColor(g, Color.black);
            arrowhead.render(g);
        }

        super.render(g);
View Full Code Here

Examples of java.awt.BasicStroke

     */
    public void render(Graphics g) {

        if (matted) {
            if (g instanceof Graphics2D && stroke instanceof BasicStroke) {
                BasicStroke bs = (BasicStroke) stroke;
                ((Graphics2D) g).setStroke(new BasicStroke(bs.getLineWidth() + 2f, bs.getEndCap(), bs.getLineJoin()));
                setGraphicsColor(g, mattingPaint);
                draw(g);
            }
        }

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.