Package java.awt

Examples of java.awt.GradientPaint.moveTo()


    // Controllo se questo stato corrisponde alla media dei jobs
    if (i == queueLenght() - queueMedia) {
      // disegno un triangolo sopra lo stato che rappresenta la media
      GeneralPath gp = new GeneralPath(GeneralPath.WIND_EVEN_ODD);
      gp.moveTo((float) x, (float) (y - ELEM_HEIGHT / 2));
      gp.lineTo((float) (x + ELEM_WIDTH), (float) (y - ELEM_HEIGHT / 2));
      gp.lineTo((float) (x + ELEM_WIDTH / 2.0), (float) (y - ELEMS_GAP));
      gp.closePath();
      drawCenteredText("Q", queueC, null, x + ELEM_WIDTH / 2.0, y - ELEM_HEIGHT * 0.7, g2d, false, true);
      g2d.setColor(queueC);
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.