Package org.locationtech.udig.ui.graphics

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


                graphics.setColor(legendStyle.foregroundColor);
                graphics.setBackground(legendStyle.backgroundColor);
                graphics.drawRoundRect(round(x), round(y), round(w), round(h), 15, 15);
            } 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));
            }
View Full Code Here


                graphics.setColor(legendStyle.foregroundColor);
                graphics.setBackground(legendStyle.backgroundColor);
                graphics.drawRoundRect(round(x), round(y), round(w), round(h), 15, 15);
            } 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));
            }
View Full Code Here

                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());
                graphics.setColor(legendStyle.fontColor);
                int ty = round(currentY - graphics.getFontAscent() + tHeight);// + tHeight -
View Full Code Here

        //cover the right side and bottom of map with thin strips
        final int RIGHT_STRIP_WIDTH = (int)(mapPixelWidth * 0.05);
        final int BOTTOM_STRIP_HEIGHT = (int)(mapPixelHeight * 0.03);
        final int GRID_LINE_EXTENSION = (int)(RIGHT_STRIP_WIDTH * 0.1);
        graphics.setColor(Color.white);
        graphics.fillRect(mapPixelWidth - RIGHT_STRIP_WIDTH,
                          0,
                          RIGHT_STRIP_WIDTH,
                          mapPixelHeight);
        graphics.fillRect(0,
                          mapPixelHeight - BOTTOM_STRIP_HEIGHT,
View Full Code Here

        graphics.setColor(Color.white);
        graphics.fillRect(mapPixelWidth - RIGHT_STRIP_WIDTH,
                          0,
                          RIGHT_STRIP_WIDTH,
                          mapPixelHeight);
        graphics.fillRect(0,
                          mapPixelHeight - BOTTOM_STRIP_HEIGHT,
                          mapPixelWidth,
                          BOTTOM_STRIP_HEIGHT);  
       
        //draw grid lines
View Full Code Here

            }
        } //end crosses and ticks
       
        //top border
        graphics.setColor(Color.white);
        graphics.fillRect(0,
                0,
                mapPixelWidth,
                EDGE_WIDTH);
        //right border
        graphics.fillRect(mapPixelWidth - EDGE_WIDTH,
View Full Code Here

        graphics.fillRect(0,
                0,
                mapPixelWidth,
                EDGE_WIDTH);
        //right border
        graphics.fillRect(mapPixelWidth - EDGE_WIDTH,
                0,
                EDGE_WIDTH,
                mapPixelHeight);
        //bottom border
        graphics.fillRect(0,
View Full Code Here

        graphics.fillRect(mapPixelWidth - EDGE_WIDTH,
                0,
                EDGE_WIDTH,
                mapPixelHeight);
        //bottom border
        graphics.fillRect(0,
                          mapPixelHeight - EDGE_WIDTH,
                          mapPixelWidth,
                          EDGE_WIDTH);
        //left border
        graphics.fillRect(0,
View Full Code Here

        graphics.fillRect(0,
                          mapPixelHeight - EDGE_WIDTH,
                          mapPixelWidth,
                          EDGE_WIDTH);
        //left border
        graphics.fillRect(0,
                          0,
                          EDGE_WIDTH,
                          mapPixelHeight);
       
        //top-left corner
View Full Code Here

                          EDGE_WIDTH,
                          mapPixelHeight);
       
        //top-left corner
        graphics.setColor(Color.white);
        graphics.fillRect(0,
                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);
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.