Examples of drawPolygon()


Examples of com.tinyline.tiny2d.Tiny2D.drawPolygon()

        int triangleYBottom = triangleYTop / 2;
        TinyVector poly = new TinyVector(3);
        poly.addElement(new TinyPoint(daAnchorX + wH, daAnchorY + hH - triangleYTop));
        poly.addElement(new TinyPoint(daAnchorX + wH + triangleXBottom, daAnchorY + hH + triangleYBottom));
        poly.addElement(new TinyPoint(daAnchorX + wH - triangleXBottom, daAnchorY + hH + triangleYBottom));
        t2d.drawPolygon(poly);
    }

    void drawLabel(final Tile tile, boolean black, String label) {
        Tiny2D t2d = getT2D(tile);
        setT2DPureMark(t2d, tile, black);
View Full Code Here

Examples of java.awt.Graphics.drawPolygon()

      g.setColor(color);
      g.fillRect(x, y, w - DEPTH, h - DEPTH);
      g.setColor(Color.BLACK);
      g.drawRect(x, y, w - DEPTH, h - DEPTH);
      g.drawLine(x + w - DEPTH, y + h - DEPTH, x + w, y + h);
      g.drawPolygon(xp, yp, xp.length);
    }
   
    g.translate(depress, depress);
    g.setColor(painter.getAttributeValue(Io.ATTR_LABEL_COLOR));
    painter.drawLabel();
View Full Code Here

Examples of java.awt.Graphics.drawPolygon()

        int[] xs = { x - offs, x, x + offs, x };
        int[] ys = { y, y - offs, y, y + offs };
        gCopy.setColor(Color.WHITE);
        gCopy.fillPolygon(xs, ys, 4);
        gCopy.setColor(Color.BLACK);
        gCopy.drawPolygon(xs, ys, 4);
      }
    }
   
    switch (action) {
    case RECT_SELECT:
View Full Code Here

Examples of java.awt.Graphics.drawPolygon()

        }
       
        // call the graphics routine to draw the posative shape.'
        tempGraphics = inShader.getLineGraphics(inGraphics, inRecord.getAttributes(), inRecord.getAttributeNames());
        if (tempGraphics != null) {
            tempGraphics.drawPolygon(myXs, myYs, tempXs.length);
        }
       
        // draw the negative shapes
        LinearRing[] tempHoles = tempPolygon.getHoles();
        if (tempHoles != null) {
View Full Code Here

Examples of java.awt.Graphics.drawPolygon()

                    myXs[j] = inConverter.convertX(tempXs[j]);
                    myYs[j] = inConverter.convertY(tempYs[j]);
                }
               
                // call the graphics routine to draw the negative shape.
                if (tempGraphics != null) tempGraphics.drawPolygon(myXs, myYs, tempXs.length);
            }
        }
        return true;
    }
   
View Full Code Here

Examples of java.awt.Graphics.drawPolygon()

        }
       
        // call the graphics routine to draw the posative shape.'
        Graphics tempGraphics = inShader.getLineHighlightGraphics(inGraphics, inRecord.getAttributes(), inRecord.getAttributeNames());
        if (tempGraphics != null) {
            tempGraphics.drawPolygon(tempXs, tempYs, tempDXs.length);
        }
       
        // draw the negative shapes
        LinearRing[] tempHoles = tempPolygon.getHoles();
        if (tempHoles != null) {
View Full Code Here

Examples of java.awt.Graphics.drawPolygon()

                    tempXs[j] = inConverter.toScreenX(tempDXs[j]);
                    tempYs[j] = inConverter.toScreenY(tempDYs[j]);
                }
               
                // call the graphics routine to draw the negative shape.
                tempGraphics.drawPolygon(tempXs, tempYs, tempDXs.length);
            }
        }
        return true;
    }
   
View Full Code Here

Examples of java.awt.Graphics.drawPolygon()

                // draw arrows showing them entering the next
                myPoly = new Polygon(movePoly.xpoints, movePoly.ypoints,
                        movePoly.npoints);
                graph.setColor(Color.darkGray);
                myPoly.translate(stepPos.x + 1, stepPos.y + 1);
                graph.drawPolygon(myPoly);
                graph.setColor(col);
                myPoly.translate(-1, -1);
                graph.drawPolygon(myPoly);
                // draw movement cost
                drawMovementCost(step, stepPos, graph, col, true);
View Full Code Here

Examples of java.awt.Graphics.drawPolygon()

                graph.setColor(Color.darkGray);
                myPoly.translate(stepPos.x + 1, stepPos.y + 1);
                graph.drawPolygon(myPoly);
                graph.setColor(col);
                myPoly.translate(-1, -1);
                graph.drawPolygon(myPoly);
                // draw movement cost
                drawMovementCost(step, stepPos, graph, col, true);
                drawRemainingVelocity(step, stepPos, graph, true);
                break;
            case MovePath.STEP_GO_PRONE:
View Full Code Here

Examples of java.awt.Graphics.drawPolygon()

                Polygon downPoly = movementPolys[7];
                myPoly = new Polygon(downPoly.xpoints, downPoly.ypoints,
                        downPoly.npoints);
                graph.setColor(Color.darkGray);
                myPoly.translate(stepPos.x, stepPos.y);
                graph.drawPolygon(myPoly);
                graph.setColor(col);
                myPoly.translate(-1, -1);
                graph.drawPolygon(myPoly);
                offsetCostPos = new Point(stepPos.x + 1, stepPos.y + 15);
                drawMovementCost(step, offsetCostPos, graph, col, false);
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.