Examples of drawLine()


Examples of org.locationtech.udig.ui.graphics.ViewportGraphics.drawLine()

            Point startPoint = (Point) start.getObject();
            Point endPoint = (Point) end.getObject();           
            java.awt.Point startPixel = context.worldToPixel( startPoint.getCoordinate() );
            java.awt.Point endPixel = context.worldToPixel( endPoint.getCoordinate() );

            graphics.drawLine(startPixel.x, startPixel.y, endPixel.x, endPixel.y);           
        }
        graphics.setColor( Color.YELLOW );
        graphics.setLineWidth(2);
        for( Edge edge : path ){
            Object obj = edge.getObject();
View Full Code Here

Examples of org.pdfclown.documents.contents.composition.PrimitiveComposer.drawLine()

          x = Margin; y = Margin;
        }

        if(styleIndex == 0)
        {
          composer.drawLine(
            new Point2D.Double(x,y),
            new Point2D.Double(pageSize.getWidth() - Margin,y)
            );
          composer.stroke();
          y += 5;
View Full Code Here

Examples of railo.runtime.img.Image.drawLine()

 
  public static String call(PageContext pc, Object name, double x1, double y1,double x2, double y2) throws PageException {
    if(name instanceof String) name=pc.getVariable(Caster.toString(name));
    Image img = Image.toImage(name);
   
    img.drawLine((int)x1, (int)y1, (int)x2, (int)y2);
    return null;
  }
 
}
View Full Code Here

Examples of sun.java2d.SunGraphics2D.drawLine()

            else
                g2d.setColor( Color.lightGray );

            final int lOff = i == 1 ? 0 : -1;
            if ( isHorizontal )
                g2d.drawLine(
                    (int)trackRect.getMinX() - lOff,
                    (int)trackRect.getCenterY() + i - 1,
                    (int)trackRect.getMaxX() + lOff,
                    (int)trackRect.getCenterY() + i - 1
                );
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.