@Signature public void arc(int x, int y, int width, int height, int startAngle, int arcAngle, DrawOptions options) { applyOptions(options); if (options.isOutline()) { gc.drawArc(x, y, width, height, startAngle, arcAngle); } else { gc.fillArc(x, y, width, height, startAngle, arcAngle); } }
private void paintReflexive(Graphics2D g) { Lifeline startingLine = getStartingLine(); int x = startingLine.getX(); int y = endingState.getStartY(); g.drawArc(x + startingLine.getWidth() - ARROW_WIDTH / 2, y - ARROW_WIDTH, ARROW_WIDTH, ARROW_WIDTH, 90, -180); g.drawString(label, x + startingLine.getWidth() + LABEL_OFFSET, y); // GeneralPath path = new GeneralPath(); // path.moveTo(x, y - ARROW_WIDTH); // path.quadTo(x, y - ARROW_WIDTH); }
public void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle) { delegate.drawArc(x, y, width, height, startAngle, arcAngle); }
@Override public void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle) { impl.drawArc(x, y, width, height, startAngle, arcAngle); }
@Override public void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle) { wrapped.drawArc(x, y, width, height, startAngle, arcAngle); }
/** * @param x * @param y * @param w * @param h * @param startAngle * @param arcAngle */ public void drawArc(int x, int y, int w, int h, int startAngle, int arcAngle) { screen.drawArc(x, y, w, h, startAngle, arcAngle); }
/** {@inheritDoc} */ @Override public void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle) { g2d.drawArc(x, y, width, height, startAngle, arcAngle); }
/** * * @param x * @param y * @param w * @param h * @param startAngle * @param arcAngle */ public void drawArc(int x, int y, int w, int h, int startAngle, int arcAngle) { screen.drawArc(x, y, w, h, startAngle, arcAngle); }
g2d.setStroke(new BasicStroke(stroke)); g2d.setColor(symbol.getColor()); g2d.drawArc(topLeft.x + stroke / 2, topLeft.y + stroke / 2, symbol.w - stroke, symbol.h - stroke, 0, 360); if (SX.isNotNull(symbol.getFillColor())) {
public void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle) { System.out.println( "drawArc(int,int,int,int,int,int):" ); System.out.println( "x = " + x ); System.out.println( "y = " + y ); System.out.println( "width = " + width ); System.out.println( "height = " + height ); System.out.println( "startAngle = " + startAngle ); System.out.println( "arcAngle = " + arcAngle ); g2D.drawArc( x, y, width, height, startAngle, arcAngle ); }
public void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle) { System.out.println( "drawArc(int,int,int,int,int,int):" ); System.out.println( "x = " + x ); System.out.println( "y = " + y ); System.out.println( "width = " + width ); System.out.println( "height = " + height ); System.out.println( "startAngle = " + startAngle ); System.out.println( "arcAngle = " + arcAngle ); g2D.drawArc( x, y, width, height, startAngle, arcAngle ); }
public void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle) { System.out.println( "drawArc(int,int,int,int,int,int):" ); System.out.println( "x = " + x ); System.out.println( "y = " + y ); System.out.println( "width = " + width ); System.out.println( "height = " + height ); System.out.println( "startAngle = " + startAngle ); System.out.println( "arcAngle = " + arcAngle ); g2D.drawArc( x, y, width, height, startAngle, arcAngle ); }
@Override public final void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle) { // XXXX: call validate with bounding box of primitive validate(); offScreenGraphics2D.drawArc(x, y, width, height, startAngle, arcAngle); }
private static void drawCircle(Graphics2D g2, float x, float y) { g2.setColor(blue); g2.translate(x, y); g2.fillArc(0, 0, 8, 8, 0, 360); g2.setColor(Color.BLACK); g2.drawArc(0, 0, 8, 8, 0, 360); g2.translate(-x, -y); }
public void paintButtonContent(Graphics2D g) { int w = getBounds().width; int h = getBounds().height; int x = getBounds().x; int y = getBounds().y; g.drawArc(x + 4, y + 4, w - 8, h - 8, 0, -270); final Polygon arrowHead = new Polygon(new int[]{x+(w/2)+3, x+(w/2), x+(w/2)}, new int[]{y+4, y+2, y+6}, 3); g.drawPolygon(arrowHead); } }
public void paintButtonContent(Graphics2D g) { int w = getBounds().width; int h = getBounds().height; int x = getBounds().x; int y = getBounds().y; g.drawArc(x + 4, y + 4, w - 8, h - 8, 0, -270); final Polygon arrowHead = new Polygon(new int[]{x+(w/2)+3, x+(w/2), x+(w/2)}, new int[]{y+4, y+2, y+6}, 3); g.drawPolygon(arrowHead); } }
public void paintButtonContent(Graphics2D g) { int w = getBounds().width; int h = getBounds().height; int x = getBounds().x; int y = getBounds().y; g.drawArc(x + 4, y + 4, w - 8, h - 8, 0, -270); final Polygon arrowHead = new Polygon(new int[]{x+(w/2)+3, x+(w/2), x+(w/2)}, new int[]{y+4, y+2, y+6}, 3); g.drawPolygon(arrowHead); } }