Examples of fillPolygon()


Examples of java.awt.Graphics2D.fillPolygon()

                        new Vector2D(1, 1));
               
                arrow = this.getPolygonInVisualization(arrow);
               
                g.setColor(color);
                g.fillPolygon(arrow.toPol());
                g.setColor(Color.black);
                g.drawPolygon(arrow.toPol());
                g.drawString(StaticMethods.round(currentNeuron.getInput(), 2)
                        + "", (float) startPoint.x, (float) startPoint.y - 5);
View Full Code Here

Examples of java.awt.Graphics2D.fillPolygon()

                        new Vector2D(1, 1));
               
                arrow = this.getPolygonInVisualization(arrow);

                g.setColor(color);
                g.fillPolygon(arrow.toPol());
                g.setColor(Color.black);
                g.drawPolygon(arrow.toPol());
                g.drawString(StaticMethods.round(currentNeuron.getOutput(), 2)
                        + "", (float) startPoint.x, (float) startPoint.y - 8);
View Full Code Here

Examples of java.awt.Graphics2D.fillPolygon()

                } else {
                    g.setColor(Color.red);
                }
               
                if (weightPosSelf == null) {
                    g.fillPolygon(pol.toPol());
                    g.drawPolygon(pol.toPol());
                }
               
                // Weight text.
                Font font;
View Full Code Here

Examples of java.awt.Graphics2D.fillPolygon()

                Color objectColor = go.getAgentColor();
                Color oldColor = g.getColor();
               
                if (objectColor != null) {
                    g.setColor(objectColor);
                    g.fillPolygon(shape.toPol());
                }
               
                g.setColor(Color.black);
                g.drawPolygon(shape.toPol());
                g.setColor(oldColor);
View Full Code Here

Examples of java.awt.Graphics2D.fillPolygon()

            }
           
            try {
                Polygon pol = ((AbstractEnvironment2D) this.currentEnv).getAgentShapeInVisualization(this.markedAgentId).toPol();
                g.setColor(this.selectedColor);
                g.fillPolygon(pol);
                g.setColor(Color.red);
                g.drawPolygon(pol);
            } catch (Exception e) {
                g.drawOval(
                        xMitte,
View Full Code Here

Examples of main.ch.morrolan.gibb.snake.Painter.fillPolygon()

        double[] xCoordinates = {0.2, 4, 5.5, 1};
        double[] yCoordinates = {6.5, 1.2, 3.6, 4.5};

        g = gMock();
        painter = painter1(g);
        painter.fillPolygon(xCoordinates, yCoordinates);
        verify(g).fillPolygon(new int[] {2, 40, 55, 10}, new int[] {65, 12, 36, 45}, 4);

        g = gMock();
        painter = painter2(g);
        painter.fillPolygon(xCoordinates, yCoordinates);
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.fillPolygon()

       
       
        triangle[4] (int) (x0 - deltaXXs[iAngle] * 4 + (r1) * deltaYXs[iAngle] + 0.5);
        triangle[5] (int) (y0 - deltaXYs[iAngle] * 4 + (r1) * deltaYYs[iAngle] + 0.5);
       
        gcBuffer.fillPolygon(triangle);
      }
     
     
     
      if(percent_sent >= 0) {
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.fillPolygon()

        triangle[3] (int) (y0 + deltaXYs[iAngle] * 4 + (r1-10) * deltaYYs[iAngle] + 0.5);
       
       
        triangle[4] (int) (x0 - deltaXXs[iAngle] * 4 + (r1-10) * deltaYXs[iAngle] + 0.5);
        triangle[5] (int) (y0 - deltaXYs[iAngle] * 4 + (r1-10) * deltaYYs[iAngle] + 0.5);
        gcBuffer.fillPolygon(triangle);
      }
     
     
     
      int x1 = x0 + (int) (r * deltaYXs[iAngle]);
 
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.fillPolygon()

   
    // draw used segment
    gc.setBackground(barUsedSegmentColor);
    int up_coord = getUpCoord();
    int down_coord = getDownCoord();
    gc.fillPolygon(new int[] { up_coord,y,down_coord,y,down_coord,y + bar_height, up_coord, y + bar_height});
   
    // draw pointers
    gc.setBackground(pointerColor);
    gc.fillPolygon(new int[] { up_coord, y, up_coord + pointer_width, y - pointer_height, up_coord - pointer_width, y - pointer_height});
    int y2 = y + bar_height;
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.fillPolygon()

    int down_coord = getDownCoord();
    gc.fillPolygon(new int[] { up_coord,y,down_coord,y,down_coord,y + bar_height, up_coord, y + bar_height});
   
    // draw pointers
    gc.setBackground(pointerColor);
    gc.fillPolygon(new int[] { up_coord, y, up_coord + pointer_width, y - pointer_height, up_coord - pointer_width, y - pointer_height});
    int y2 = y + bar_height;
    gc.fillPolygon(new int[] { down_coord, y2, down_coord + pointer_width, y2 + pointer_height, down_coord - pointer_width, y2 + pointer_height});
    gc.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.