Package de.eydamos.guiadvanced.util

Examples of de.eydamos.guiadvanced.util.Rectangle.draw()


            Rectangle rectangle = new Rectangle(2, 2);
            rectangle.setBackground(buttonTextures);
            rectangle.setBackgroundSize(2, 2);
            // draw upper left corner
            rectangle.setBackgroundPosition(0, 46 + offset * 20);
            rectangle.draw(xPosition, yPosition);
            // draw upper right corner
            rectangle.setBackgroundPosition(198, 46 + offset * 20);
            rectangle.draw(xPosition + width - 2, yPosition);
            // draw lower left corner
            rectangle.setBackgroundPosition(0, 64 + offset * 20);
 
View Full Code Here


            // draw upper left corner
            rectangle.setBackgroundPosition(0, 46 + offset * 20);
            rectangle.draw(xPosition, yPosition);
            // draw upper right corner
            rectangle.setBackgroundPosition(198, 46 + offset * 20);
            rectangle.draw(xPosition + width - 2, yPosition);
            // draw lower left corner
            rectangle.setBackgroundPosition(0, 64 + offset * 20);
            rectangle.draw(xPosition, yPosition + height - 2);
            // draw lower right corner
            rectangle.setBackgroundPosition(198, 64 + offset * 20);
 
View Full Code Here

            // draw upper right corner
            rectangle.setBackgroundPosition(198, 46 + offset * 20);
            rectangle.draw(xPosition + width - 2, yPosition);
            // draw lower left corner
            rectangle.setBackgroundPosition(0, 64 + offset * 20);
            rectangle.draw(xPosition, yPosition + height - 2);
            // draw lower right corner
            rectangle.setBackgroundPosition(198, 64 + offset * 20);
            rectangle.draw(xPosition + width - 2, yPosition + height - 2);

            // borders top/bottom
View Full Code Here

            // draw lower left corner
            rectangle.setBackgroundPosition(0, 64 + offset * 20);
            rectangle.draw(xPosition, yPosition + height - 2);
            // draw lower right corner
            rectangle.setBackgroundPosition(198, 64 + offset * 20);
            rectangle.draw(xPosition + width - 2, yPosition + height - 2);

            // borders top/bottom
            rectangle.setWidth(width - 4);
            rectangle.setBackgroundRepeat(BackgroundRepeat.REPEAT_X);
            // draw top border
View Full Code Here

            // borders top/bottom
            rectangle.setWidth(width - 4);
            rectangle.setBackgroundRepeat(BackgroundRepeat.REPEAT_X);
            // draw top border
            rectangle.setBackgroundPosition(2, 46 + offset * 20);
            rectangle.draw(xPosition + 2, yPosition);
            // draw bottom border
            rectangle.setBackgroundPosition(2, 64 + offset * 20);
            rectangle.draw(xPosition + 2, yPosition + height - 2);

            // borders left/right
View Full Code Here

            // draw top border
            rectangle.setBackgroundPosition(2, 46 + offset * 20);
            rectangle.draw(xPosition + 2, yPosition);
            // draw bottom border
            rectangle.setBackgroundPosition(2, 64 + offset * 20);
            rectangle.draw(xPosition + 2, yPosition + height - 2);

            // borders left/right
            rectangle.setWidth(2);
            rectangle.setHeight(height - 4);
            rectangle.setBackgroundRepeat(BackgroundRepeat.REPEAT_Y);
View Full Code Here

            rectangle.setWidth(2);
            rectangle.setHeight(height - 4);
            rectangle.setBackgroundRepeat(BackgroundRepeat.REPEAT_Y);
            // draw left border
            rectangle.setBackgroundPosition(0, 48 + offset * 20);
            rectangle.draw(xPosition, yPosition + 2);
            // draw right border
            rectangle.setBackgroundPosition(198, 48 + offset * 20);
            rectangle.draw(xPosition + width - 2, yPosition + 2);

            // draw background
View Full Code Here

            // draw left border
            rectangle.setBackgroundPosition(0, 48 + offset * 20);
            rectangle.draw(xPosition, yPosition + 2);
            // draw right border
            rectangle.setBackgroundPosition(198, 48 + offset * 20);
            rectangle.draw(xPosition + width - 2, yPosition + 2);

            // draw background
            rectangle.setWidth(width - 4);
            rectangle.setHeight(height - 4);
            rectangle.setBackgroundSize(18, 18);
View Full Code Here

            rectangle.setWidth(width - 4);
            rectangle.setHeight(height - 4);
            rectangle.setBackgroundSize(18, 18);
            rectangle.setBackgroundRepeat(BackgroundRepeat.REPEAT);
            rectangle.setBackgroundPosition(2, 48 + offset * 20);
            rectangle.draw(xPosition + 2, yPosition + 2);

            mouseDragged(mc, mouseX, mouseY);
            int l = 14737632;

            if(packedFGColour != 0) {
View Full Code Here

        if(image != null) {
            icon.setBackground(image);
        }
        icon.setBackgroundPosition(uPosition, vPosition);
        icon.setBackgroundSize(width, height);
        icon.draw(xPosition, yPosition);
    }

    @Override
    public void setAbsolutePosition(int guiLeft, int guiTop) {
        xPosition = guiLeft + relativePositionX;
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.