java.lang.Object
java.awt.Graphics
javax.swing.DebugGraphics
- See Also:
- Top Examples, Source Code,
JComponent.setDebugGraphicsOptions(int) ,
RepaintManager.currentManager(java.awt.Component) ,
RepaintManager.setDoubleBufferingEnabled(boolean)
public static final int BUFFERED_OPTION - Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[1333]Copy part of an image By omarflorez19 { at } hotmail { dot } com on 2005/03/08 15:03:39 Rate
private void guardarRectangulos ( ) { Iterator itRectangulos = alPorAnalizar.iterator ( ) ; BufferedImage imgBuffer; String sContador="RectanguloNro"; int nContador=0; while ( itRectangulos.hasNext ( ) ) { nContador++; clsRectangulo recTemporal = ( clsRectangulo ) itRectangulos.next ( ) ; imgBuffer = new BufferedImage ( recTemporal.getAnchura ( ) , recTemporal.getAltura ( ) , BufferedImage.TYPE_INT_RGB ) ; Graphics2D gGuardado = ( imgBuffer ) .createGraphics ( ) ; try { gGuardado.setPaint ( Color.WHITE ) ; gGuardado.copyArea ( recTemporal.getOrigenX ( ) , recTemporal.getOrigenX ( ) , recTemporal.getAnchura ( ) , recTemporal.getAltura ( ) , recTemporal.getAnchura ( ) , recTemporal.getAltura ( ) ) ; // gGuardado.setPaint ( Color.BLUE ) ; // gGuardado.fillOval ( 0, 0, w, h ) ; // gGuardado.dispose ( ) ; ImageIO.write ( imgBuffer, "jpeg", new File ( "Rectangulo" + nContador + ".jpg" ) ) ; } catch ( IOException e ) { System.out.print ( "No se pudo establecer la apariencia" ) ; } } }
public void clearRect(int x,
int y,
int width,
int height) - See Also:
Graphics.setXORMode(java.awt.Color) , Graphics.setPaintMode() , Graphics.setColor(java.awt.Color) , Graphics.drawRect(int, int, int, int) , Graphics.fillRect(int, int, int, int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void clipRect(int x,
int y,
int width,
int height) - See Also:
Graphics.setClip(Shape) , Graphics.setClip(int, int, int, int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void copyArea(int x,
int y,
int width,
int height,
int destX,
int destY) - See Also:
- Graphics
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Graphics create() - Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Graphics create(int x,
int y,
int width,
int height) - See Also:
Graphics.clipRect(int, int, int, int) , Graphics.translate(int, int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public DebugGraphics() - Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public DebugGraphics(Graphics graphics) - Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public DebugGraphics(Graphics graphics,
JComponent component) - Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void dispose() - See Also:
Graphics.create() , Component.getGraphics() , Component.update(java.awt.Graphics) , Component.paint(java.awt.Graphics) , Graphics.finalize()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void draw3DRect(int x,
int y,
int width,
int height,
boolean raised) - See Also:
Graphics.fill3DRect(int, int, int, int, boolean)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void drawArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle) - See Also:
Graphics.fillArc(int, int, int, int, int, int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void drawBytes(byte[] data,
int offset,
int length,
int x,
int y) - See Also:
Graphics.drawString(java.lang.String, int, int) , Graphics.drawChars(char[], int, int, int, int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void drawChars(char[] data,
int offset,
int length,
int x,
int y) - See Also:
Graphics.drawString(java.lang.String, int, int) , Graphics.drawBytes(byte[], int, int, int, int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean drawImage(Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
Color bgcolor,
ImageObserver observer) - See Also:
ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int) , Graphics
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean drawImage(Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
ImageObserver observer) - See Also:
ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int) , Graphics
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean drawImage(Image img,
int x,
int y,
int width,
int height,
Color bgcolor,
ImageObserver observer) - See Also:
ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int) , Graphics
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean drawImage(Image img,
int x,
int y,
int width,
int height,
ImageObserver observer) - See Also:
ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int) , Graphics
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean drawImage(Image img,
int x,
int y,
Color bgcolor,
ImageObserver observer) - See Also:
ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int) , Graphics
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean drawImage(Image img,
int x,
int y,
ImageObserver observer) - See Also:
ImageObserver.imageUpdate(java.awt.Image, int, int, int, int, int) , Graphics
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void drawLine(int x1,
int y1,
int x2,
int y2) - See Also:
- Graphics
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void drawOval(int x,
int y,
int width,
int height) - See Also:
Graphics.fillOval(int, int, int, int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void drawPolygon(int[] xPoints,
int[] yPoints,
int nPoints) - See Also:
Graphics.drawPolyline(int[], int[], int) , Graphics.fillPolygon(int[], int[], int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void drawPolyline(int[] xPoints,
int[] yPoints,
int nPoints) - See Also:
Graphics.drawPolygon(int[], int[], int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void drawRect(int x,
int y,
int width,
int height) - See Also:
Graphics.clearRect(int, int, int, int) , Graphics.fillRect(int, int, int, int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void drawRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight) - See Also:
Graphics.fillRoundRect(int, int, int, int, int, int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void drawString(String aString,
int x,
int y) - See Also:
Graphics.drawChars(char[], int, int, int, int) , Graphics.drawBytes(byte[], int, int, int, int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void drawString(AttributedCharacterIterator iterator,
int x,
int y) - See Also:
Graphics.drawChars(char[], int, int, int, int) , Graphics.drawBytes(byte[], int, int, int, int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void fill3DRect(int x,
int y,
int width,
int height,
boolean raised) - See Also:
Graphics.draw3DRect(int, int, int, int, boolean)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void fillArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle) - See Also:
Graphics.drawArc(int, int, int, int, int, int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void fillOval(int x,
int y,
int width,
int height) - See Also:
Graphics.drawOval(int, int, int, int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void fillPolygon(int[] xPoints,
int[] yPoints,
int nPoints) - See Also:
Graphics.drawPolygon(int[], int[], int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void fillRect(int x,
int y,
int width,
int height) - See Also:
Graphics.drawRect(int, int, int, int) , Graphics.clearRect(int, int, int, int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void fillRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight) - See Also:
Graphics.drawRoundRect(int, int, int, int, int, int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Color flashColor() - See Also:
setFlashColor(java.awt.Color)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static int flashCount() - See Also:
setFlashCount(int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static int flashTime() - See Also:
setFlashTime(int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int FLASH_OPTION - Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Shape getClip() - See Also:
Graphics.setClip(Shape) , Graphics.setClip(int, int, int, int) , Graphics.clipRect(int, int, int, int) , Graphics.getClipBounds()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Rectangle getClipBounds() - See Also:
Graphics.setClip(Shape) , Graphics.setClip(int, int, int, int) , Graphics.clipRect(int, int, int, int) , Graphics.getClip()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Color getColor() - See Also:
setColor(java.awt.Color) , Graphics
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int getDebugOptions() - See Also:
setDebugOptions(int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Font getFont() - See Also:
setFont(java.awt.Font) , Graphics
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public FontMetrics getFontMetrics() - See Also:
Graphics.getFontMetrics(Font) , Graphics.getFont()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public FontMetrics getFontMetrics(Font f) - See Also:
Graphics.getFontMetrics() , Graphics.getFont()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean isDrawingBuffer() - Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static PrintStream logStream() - See Also:
setLogStream(java.io.PrintStream)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int LOG_OPTION - Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int NONE_OPTION - Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setClip(int x,
int y,
int width,
int height) - See Also:
Graphics.getClip() , Graphics.setClip(Shape) , Graphics.clipRect(int, int, int, int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setClip(Shape clip) - See Also:
Graphics.setClip(int, int, int, int) , Graphics.clipRect(int, int, int, int) , Graphics.getClip()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setColor(Color aColor) - See Also:
Graphics.getColor()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setDebugOptions(int options) - Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static void setFlashColor(Color flashColor) - Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static void setFlashCount(int flashCount) - Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static void setFlashTime(int flashTime) - Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setFont(Font aFont) - See Also:
Graphics.drawChars(char[], int, int, int, int) , Graphics.drawBytes(byte[], int, int, int, int) , Graphics.drawString(java.lang.String, int, int) , Graphics.getFont()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static void setLogStream(PrintStream stream) - Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setPaintMode() - See Also:
- Graphics
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setXORMode(Color aColor) - See Also:
- Graphics
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void translate(int x,
int y) - See Also:
- Graphics
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
| Popular Tags |