@Override public void simpleDraw(Graphics g, int x, int y) { g.drawImage(buffer, x, y, x + w, y + h, srcX, srcY, srcX + w, srcY + h, null); }
public static void roundPanel(Graphics g, int x, int y, int w, int h, Roundness roundness) { g.fillArc(x, y, roundness.width*2, roundness.height*2, 90, 90); g.fillRect(x+roundness.width, y, w-roundness.width*2, roundness.height); g.fillArc(x+w-roundness.width*2, y, roundness.width*2, roundness.height*2, 0, 90); g.fillRect(x, y+roundness.height, w, h-roundness.height*2); g.fillArc(x, y+h-roundness.height*2, roundness.width*2, roundness.height*2, 180, 90); g.fillRect(x+roundness.width, y+h-roundness.height, w-roundness.width*2, roundness.height); g.fillArc(x+w-roundness.width*2, y+h-roundness.height*2, roundness.width*2, roundness.height*2, 270, 90); }
public void simpleDraw(Graphics g, int x, int y) { // Update Size g.setFont(font); if (!border) { g.setColor(color); g.drawString(text, x, y); } else { // Draw text with border g.setColor(color); g.drawString(text, x, y); } }
@Override public void drawEmitter(Graphics g) { g.setColor(Color.BLUE); g.fillCircle(x, y, 30); }
@Override public void draw(Graphics g) { //TODO Change to Theme's Colors g.setColor(Color.WHITE); g.fillPolygon(polygon); g.setColor(Color.BLACK); g.drawPolygon(polygon); }
@Override public void draw(Graphics g) { g.setColor(color); g.fill3DRect(x, y, w, h,true); }
public void setColor(Color color) { setBatchColor(color); if (definedFont) { font.getFont().setColor(color); } }
public void setFont(Font font) { this.font = font; definedFont = true; updateFontFix(); // Set color if it was defined before the font was setted font.getFont().setColor(currentColor); }
private void beginOpacity(Graphics g) { if (opacity == MAX_OPACITY) { return; } g.setOpacity(opacity); }
private void endOpacity(Graphics g) { if (opacity == MAX_OPACITY) { return; } g.resetOpacity(); }
@Override protected int plot(Graphics g, int x, int y, int count) { g.putPixel(x, y); return count; }
@Override public void drawEmitter(Graphics g) { g.setColor(Color.BLUE); g.fillCircle(x, y, 30); }
@Override public void simpleDraw(Graphics g, int x, int y) { g.drawImage(buffer, x, y, x + w, y + h, srcX, srcY, srcX + w, srcY + h, null); }
protected int plot(Graphics g, int x, int y, int count) { int dash = count; if (dash < dashSize) { g.putPixel(x, y); } dash++; if (dash > dashSpacing + dashSize) { dash = 0; } return dash; }