Package java.awt

Examples of java.awt.Graphics.drawRect()


            } else {
                g.setColor(Color.lightGray);
            }
            g.fillRect(0, y, 10, steps);
            g.setColor(Color.black);
            g.drawRect(0, y, 10, steps);
        }
    }
}
View Full Code Here


            } else {
                g.setColor(Color.lightGray);
            }
            g.fillRect(0, y, 10, steps);
            g.setColor(Color.black);
            g.drawRect(0, y, 10, steps);
        }
    }
}
View Full Code Here

            } else {
                g.setColor(Color.lightGray);
            }
            g.fillRect(0, y, 10, steps);
            g.setColor(Color.black);
            g.drawRect(0, y, 10, steps);
        }
    }
}
View Full Code Here

            } else {
                g.setColor(Color.lightGray);
            }
            g.fillRect(0, y, 10, steps);
            g.setColor(Color.black);
            g.drawRect(0, y, 10, steps);
        }
    }
}
View Full Code Here

            } else {
                g.setColor(Color.lightGray);
            }
            g.fillRect(0, y, 10, steps);
            g.setColor(Color.black);
            g.drawRect(0, y, 10, steps);
        }
    }
}
View Full Code Here

                    public void paint(Graphics g) {
                        BufferedDrawAction.this.paint(g);
                    }                   
                }.actionPerformed(null);
            }        
            g.drawRect(0, 0, 40, 40);
            paint(g);
        }               
        public abstract void paint(final Graphics g);
    }
   
View Full Code Here

                              final int width, final int height) {
        Graphics g = f.getParent().getGraphics();
        g = g.create();
        g.setXORMode(Color.WHITE);
        if (shouldClearOutline) {
            g.drawRect(prevOutlineBounds.x, prevOutlineBounds.y,
                       prevOutlineBounds.width - 1, prevOutlineBounds.height - 1);
        } else {
            shouldClearOutline = true;
        }
        g.drawRect(x, y, width - 1, height - 1);
View Full Code Here

            g.drawRect(prevOutlineBounds.x, prevOutlineBounds.y,
                       prevOutlineBounds.width - 1, prevOutlineBounds.height - 1);
        } else {
            shouldClearOutline = true;
        }
        g.drawRect(x, y, width - 1, height - 1);
        g.dispose();
    }

    private void repaint(final Container desktop, final Rectangle clipRect) {
        desktop.repaint(clipRect.x, clipRect.y,
View Full Code Here

                break;
            case ZOOM:
                repaint();
                Graphics gcomp = getGraphics();
                gcomp.setColor(Color.black);
                gcomp.drawRect(min(mouseClick[0], mouseCurent[0]), min(mouseClick[1], mouseCurent[1]), abs(mouseCurent[0] - mouseClick[0]), abs(mouseCurent[1] - mouseClick[1]));
                break;
        }
        //repaint();
    }
View Full Code Here

            g.drawRect((int) (aktPix.x + this.xRand),
                       (int) (aktPix.y + this.yRand),
                       0,
                       0);
                    */
            g2.drawRect((int) (aktPix.x + this.xRand),
                    (int) (aktPix.y + this.yRand),
                    0,
                    0);
            //img.setRGB(x, y, makeRGBA(0, r, 0, 255));

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.