Package org.locationtech.udig.ui.graphics

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


            } else {
                graphics.setColor(legendStyle.backgroundColor);
                graphics.fillRect(round(x), round(y), round(w), round(h));
                graphics.setColor(legendStyle.foregroundColor);
                graphics.setBackground(legendStyle.backgroundColor);
                graphics.drawRect(round(x), round(y), round(w), round(h));
            }

            // draw the title
            if (textheight != 0) {
                graphics.setColor(legendStyle.fontColor);
View Full Code Here


            } else {
                graphics.setColor(legendStyle.backgroundColor);
                graphics.fillRect(round(x), round(y), round(w), round(h));
                graphics.setColor(legendStyle.foregroundColor);
                graphics.setBackground(legendStyle.backgroundColor);
                graphics.drawRect(round(x), round(y), round(w), round(h));
            }

            // draw the title
            if (textheight != 0) {
                graphics.setColor(legendStyle.fontColor);
View Full Code Here

                Color[] colors = new Color[2];
                JGrassColorTable.parseColorRule(rule, values, colors);
                String firstValue = String.valueOf(values[0]);

                graphics.setColor(Color.black);
                graphics.drawRect(currentX, currentY, bWidth, bHeight);
                graphics.setColor(colors[0]);
                graphics.fillRect(currentX, currentY, bWidth, bHeight);

                int tx = round(currentX + 1.5f * bWidth);
                int tHeight = (int) round(graphics.getStringBounds(attribute).getHeight());
View Full Code Here

                0,
                EDGE_WIDTH*2,
                EDGE_WIDTH*2);
        graphics.setColor(Color.black);
        graphics.fillOval(EDGE_WIDTH/2+1, EDGE_WIDTH/2+1, EDGE_WIDTH, EDGE_WIDTH);
        graphics.drawRect(0,
                0,
                EDGE_WIDTH*2,
                EDGE_WIDTH*2);
       
        //top-right corner
View Full Code Here

                0,
                EDGE_WIDTH*2,
                EDGE_WIDTH*2);
        graphics.setColor(Color.black);
        graphics.fillOval(EDGE_WIDTH/2+1, EDGE_WIDTH/2+1, EDGE_WIDTH, EDGE_WIDTH);
        graphics.drawRect(0,
                0,
                EDGE_WIDTH*2,
                EDGE_WIDTH*2);
       
        //bottom-right corner
View Full Code Here

                0,
                EDGE_WIDTH*2,
                EDGE_WIDTH*2);
        graphics.setColor(Color.black);
        graphics.fillOval(EDGE_WIDTH/2+1, EDGE_WIDTH/2+1, EDGE_WIDTH, EDGE_WIDTH);
        graphics.drawRect(0,
                0,
                EDGE_WIDTH*2,
                EDGE_WIDTH*2);
       
        //Note: bottom left corner is drawn after the outline... see below
View Full Code Here

       
        //outer outline
        graphics.setTransform(origTrans);
        graphics.setColor(Color.black);
        graphics.setStroke(ViewportGraphics.LINE_SOLID, 1);
        graphics.drawRect(0,
                0,
                mapPixelWidth-1,
                mapPixelHeight-1);
       
        //inner outline, extends to edges       
View Full Code Here

                EDGE_WIDTH*2,
                EDGE_WIDTH*2);
        graphics.setColor(Color.black);
        graphics.drawOval(EDGE_WIDTH/4, EDGE_WIDTH/4, EDGE_WIDTH*2 - EDGE_WIDTH/2, EDGE_WIDTH*2 - EDGE_WIDTH/2);
        graphics.fillOval(EDGE_WIDTH - 1, EDGE_WIDTH - 1, 2, 2);
        graphics.drawRect(0,
                0,
                EDGE_WIDTH*2,
                EDGE_WIDTH*2);
        graphics.setTransform(origTrans);
       
View Full Code Here

                }
            pixel=next;
        }
   
        //outline the map       
        graphics.drawRect(0,
                          0,
                          mapPixelWidth - RIGHT_STRIP_WIDTH,
                          mapPixelHeight - BOTTOM_STRIP_HEIGHT);
     
    }       
View Full Code Here

      
       
        //outline the map       
        graphics.setStroke(ViewportGraphics.LINE_SOLID, 1);
        graphics.setColor(Color.BLACK);
        graphics.drawRect(1,
                          1,
                          mapPixelWidth - RIGHT_STRIP_WIDTH - 1,
                          mapPixelHeight - BOTTOM_STRIP_HEIGHT - 1);
       
        //draw labels
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.