Package org.eclipse.swt.graphics

Examples of org.eclipse.swt.graphics.Path.dispose()


                            x1 + (int) (0.5 * width) - 10, f);
                    g.fillPath(p);
                    tr.rotate(90.0f);
                    g.setTransform(tr);
                    tr.dispose();
                    p.dispose();
                }
                f.dispose();
            }
        }
        g.setForeground(disp.getSystemColor(SWT.COLOR_WHITE));
View Full Code Here


                            x1 + (int) (0.5 * width) - 10, f);
                    g.fillPath(p);
                    tr.rotate(90.0f);
                    g.setTransform(tr);
                    tr.dispose();
                    p.dispose();
                }
                f.dispose();
            }
        }
        g.setForeground(disp.getSystemColor(SWT.COLOR_WHITE));
View Full Code Here

    if (stroke) {
      gc.setAlpha(alphaStroke);
      gc.drawPath(p);
      gc.setAlpha(alpha0);
    }
    p.dispose();
  }


  public void setShadow(boolean shadow) {
    this.shadow = shadow;
View Full Code Here

    public void draw( Shape s ) {
        AWTSWTImageUtils.checkAccess();
        Path path = AWTSWTImageUtils.convertToPath(s, display);
        if( path!=null ){
            gc.drawPath(path);
            path.dispose();
        }
       
    }

    /**
 
View Full Code Here

     */
    public void fill( Shape s ) {
        Color tmp = prepareForFill();
        Path path = AWTSWTImageUtils.convertToPath(s, display);
        gc.fillPath(path);
        path.dispose();
        gc.setBackground(tmp);
    }

    private Color prepareForFill() {
        AWTSWTImageUtils.checkAccess();
View Full Code Here

                            }
                        } finally {
                            if (image != null)
                                image.dispose();
                            if (path != null)
                                path.dispose();
                        }
                    }
                });
        }
        return status[0];
View Full Code Here

        gc.drawPath(path);
        float[] points = path.getPathData().points;
        if (points.length == 2) {
            gc.drawPoint((int) points[0], (int) points[1]);
        }
        path.dispose();
    }

    /**
     * @see org.locationtech.udig.project.render.ViewportGraphics#draw(java.awt.Shape)
     */
 
View Full Code Here

    public void fill( Shape s ) {
        gc.setBackground(fore);
        PathIterator p = s.getPathIterator(transform);
        Path path = AWTSWTImageUtils.createPath(p, display);
        gc.fillPath(path);
        path.dispose();
        gc.setBackground(back);
    }

    /**
     * Sets an affine transformation for drawing shapes.
View Full Code Here

            colorStrategy.setLineColor(graphics, geom, handler);
            graphics.drawPath(shape);
           
        }finally{
            shape.dispose();
        }
    }

    @Override
    public void setValid( boolean valid ) {
View Full Code Here

      // Ersetzen der Kurven unten? Versuch!
      Path path = new Path(SwtConsts.display);
      path.moveTo(p1.x, p1.y);
      path.cubicTo(p1.x + width / 2, p1.y, p2.x - width / 2, p2.y, p2.x, p2.y);
      gc.drawPath(path);
      path.dispose();
    }
  }
}
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.