Examples of Stroke


Examples of ae.java.awt.Stroke

                           float x1,
                           float x2,
                           float y) {


            Stroke saveStroke = g2d.getStroke();
            g2d.setStroke(getStroke(thickness));
            g2d.draw(new Line2D.Float(x1, y + shift, x2, y + shift));
            g2d.setStroke(saveStroke);
        }
View Full Code Here

Examples of at.bestsolution.efxclipse.formats.fxg.fxg.Stroke

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetStroke(Stroke newStroke, NotificationChain msgs) {
    Stroke oldStroke = stroke;
    stroke = newStroke;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FxgPackage.ELLIPSE__STROKE, oldStroke, newStroke);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

Examples of com.google.code.appengine.awt.Stroke

        // test if clip intersects pi
        if (getClip() != null) {
            GeneralPath gp = new GeneralPath();
            gp.append(pi, true);
            // create the stroked shape
            Stroke stroke = getStroke() == null? defaultStroke : getStroke();
            Rectangle2D bounds = stroke.createStrokedShape(gp).getBounds();
            // clip should intersect the path
            // if clip contains the bounds completely, clipping is not needed
            drawClipped = getClip().intersects(bounds) && !getClip().contains(bounds);
        }
View Full Code Here

Examples of com.jgraph.gaeawt.java.awt.Stroke

    @Override
    public void draw(Graphics2D g2, float x, float y) {
        AffineTransform at = AffineTransform.getTranslateInstance(x, y);
        if (fStroke == STROKE){
            Stroke oldStroke = g2.getStroke();
            g2.setStroke(new BasicStroke());
            g2.draw(at.createTransformedShape(fShape));
            g2.setStroke(oldStroke);
        } else {
            g2.fill(at.createTransformedShape(fShape));
View Full Code Here

Examples of com.positive.charts.util.Stroke

   * @param block
   *            the text block.
   */
  public TextBox(final TextBlock block) {
    this.outlinePaint = PiePlot.DEFAULT_LABEL_PAINT;
    this.outlineStroke = new Stroke(1);
    this.interiorGap = new RectangleInsets(1.0, 3.0, 1.0, 3.0);
    if (color == null) {
      color = new Color(Display.getCurrent(), 255, 255, 192);
    }
    this.backgroundPaint = color;
View Full Code Here

Examples of java.awt.Stroke

        test = Settings.propKeyboardSelectedColor.getColor();
      }
      grp.setColor(test);
      grp.fillRect(0, 0, width - 1, height - 1);

      Stroke str = grp.getStroke();
      Color col = grp.getColor();
      float[] dash = { 2.0f };
      int lineWidth = 1;
      BasicStroke dashed = new BasicStroke(lineWidth, BasicStroke.CAP_BUTT,
          BasicStroke.JOIN_MITER, 10.0f, dash, 0.0f);
View Full Code Here

Examples of java.awt.Stroke

    if (keepAspectRatio != null)
    {
      styleSheet.setBooleanStyleProperty(ElementStyleKeys.KEEP_ASPECT_RATIO, "true".equals(keepAspectRatio));
    }

    final Stroke stroke = readStroke(attrs);
    if (stroke != null)
    {
      styleSheet.setStyleProperty(ElementStyleKeys.STROKE, stroke);
    }
View Full Code Here

Examples of java.awt.Stroke

    {
      weight = ParserUtil.parseFloat
          (weightAttr, "Weight is given, but no number.", getLocator());
    }

    final Stroke stroke = ReportParserUtil.parseStroke(strokeStyle, weight);

    if (stroke != null)
    {
      final AbstractContentElementFactory elementFactory = (AbstractContentElementFactory) getElementFactory();
      elementFactory.setStroke(stroke);
View Full Code Here

Examples of java.awt.Stroke

//    return true;
  }

  protected void configureStroke(final StyleSheet layoutContext, final Graphics2D g2)
  {
    final Stroke styleProperty = (Stroke) layoutContext.getStyleProperty(ElementStyleKeys.STROKE);
    if (styleProperty != null)
    {
      g2.setStroke(styleProperty);
    }
    else
View Full Code Here

Examples of java.awt.Stroke

    return false;
  }

  public static boolean hasBorderEdge(final StyleSheet style)
  {
    final Stroke s = (Stroke) style.getStyleProperty(ElementStyleKeys.STROKE);
    if (s instanceof BasicStroke == false)
    {
      return false;
    }
    final BorderStyle borderStyle = StrokeUtility.translateStrokeStyle(s);
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.