/** * Creates a rectangular mono colored image. * * @param paint color of the image * @param width width of the image * @param height height of the image * @return mono colored rectangular image */ public static ImageIcon createMonoColoredImageIcon(final Paint paint, final int width, final int height) { final BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_4BYTE_ABGR_PRE); final Graphics2D g = image.createGraphics(); g.setPaint(paint); final int lineHeight = 4; g.fill3DRect(0, height / 2 - lineHeight / 2, width, lineHeight, false); g.dispose(); return new ImageIcon(image); }
public void fill3DRect(int x, int y, int width, int height, boolean raised) { delegate.fill3DRect(x, y, width, height, raised); }
/** * * @param x * @param y * @param w * @param h * @param raised */ public void fill3DRect(int x, int y, int w, int h, boolean raised) { screen.fill3DRect(x, y, w, h, raised); }
@Override public void fill3DRect (int x, int y, int w, int h, boolean r) { _copy.fill3DRect(x, y, w, h, r); _primary.fill3DRect(x, y, w, h, r); }
/** * @param x * @param y * @param w * @param h * @param raised */ public void fill3DRect(int x, int y, int w, int h, boolean raised) { screen.fill3DRect(x, y, w, h, raised); }
@Override public void fill3DRect(int x, int y, int width, int height, boolean raised) { g.fill3DRect(x, y, width, height, raised); }
/** {@inheritDoc} */ @Override public void fill3DRect(int x, int y, int width, int height, boolean raised) { g2d.fill3DRect(x, y, width, height, raised); }
@Override public void fill3DRect(int x, int y, int width, int height, boolean raised) { delegate.fill3DRect(x, y, width, height, raised); }
@Override public void fill3DRect(int x, int y, int width, int height, boolean r) { wrapped.fill3DRect(x, y, width, height, r); }
@Override public void fill3DRect(int x, int y, int width, int height, boolean raised) { delegate.fill3DRect(x, y, width, height, raised); }
@Override public void fill3DRect(int x, int y, int width, int height, boolean raised) { delegate.fill3DRect(x, y, width, height, raised); }
public void fill3DRect(int x, int y, int width, int height, boolean raised) { graphics.fill3DRect(x, y, width, height, raised); }
@Override public void fill3DRect(int x, int y, int width, int height, boolean raised) { myPeer.fill3DRect(x, y, width, height, raised); }
public void fill3DRect(int x, int y, int width, int height, boolean raised) { delegate.fill3DRect(x, y, width, height, raised); }
public void fill3DRect(int x, int y, int width, int height, boolean raised) { System.out.println( "fill3DRect(int,int,int,int,boolean):" ); System.out.println( "x = " + x ); System.out.println( "y = " + y ); System.out.println( "width = " + width ); System.out.println( "height = " + height ); System.out.println( "raised = " + raised ); g2D.fill3DRect( x, y, width, height, raised ); }
public void fill3DRect(int x, int y, int width, int height, boolean raised) { System.out.println( "fill3DRect(int,int,int,int,boolean):" ); System.out.println( "x = " + x ); System.out.println( "y = " + y ); System.out.println( "width = " + width ); System.out.println( "height = " + height ); System.out.println( "raised = " + raised ); g2D.fill3DRect( x, y, width, height, raised ); }
public void fill3DRect(int x, int y, int width, int height, boolean raised) { System.out.println( "fill3DRect(int,int,int,int,boolean):" ); System.out.println( "x = " + x ); System.out.println( "y = " + y ); System.out.println( "width = " + width ); System.out.println( "height = " + height ); System.out.println( "raised = " + raised ); g2D.fill3DRect( x, y, width, height, raised ); }
private void processFill3DRect(Graphics2D g) { // fill3DRect(int, int, int, int, boolean) g.fill3DRect(calls.getInt(), calls.getInt(), calls.getInt(), calls.getInt(), serializer.deserializeBoolean(calls)); }
@Override public void fill3DRect(int x, int y, int width, int height, boolean raised) { // XXXX: call validate with bounding box of primitive // XXXX: need to consider Stroke width validate(); offScreenGraphics2D.fill3DRect(x, y, width, height, raised); }
/** Draw a coloured square at the end of the display. */ @Override public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2 = (Graphics2D) g; Shape clip = g2.getClip(); Rectangle bounds = clip.getBounds(); double width = bounds.getWidth(); double height = bounds.getHeight(); g2.setColor(squareColor); g2.fill3DRect(((int) width - 25), 0, 25, (int) height, true); visibleIndicator.paintComponent(g); }