?? dummygraphics2d.java
字號:
System.out.println( "startAngle = " + startAngle ); System.out.println( "arcAngle = " + arcAngle ); g2D.drawArc( x, y, width, height, startAngle, arcAngle ); } public void drawBytes(byte data[], int offset, int length, int x, int y) { System.out.println( "drawBytes(byte[],int,int,int,int):" ); System.out.println( "data = " + data ); System.out.println( "offset = " + offset ); System.out.println( "length = " + length ); System.out.println( "x = " + x ); System.out.println( "y = " + y ); g2D.drawBytes( data, offset, length, x, y ); } public void drawChars(char data[], int offset, int length, int x, int y) { System.out.println( "drawChars(data,int,int,int,int):" ); System.out.println( "data = " + data ); System.out.println( "offset = " + offset ); System.out.println( "length = " + length ); System.out.println( "x = " + x ); System.out.println( "y = " + y ); g2D.drawChars( data, offset, length, x, y ); } public boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver observer) { System.out.println( "drawImage(Image,int,int,int,int,int,int,int,int,ImageObserver):" ); System.out.println( "img = " + img ); System.out.println( "dx1 = " + dx1 ); System.out.println( "dy1 = " + dy1 ); System.out.println( "dx2 = " + dx2 ); System.out.println( "dy2 = " + dy2 ); System.out.println( "sx1 = " + sx1 ); System.out.println( "sy1 = " + sy1 ); System.out.println( "sx2 = " + sx2 ); System.out.println( "sy2 = " + sy2 ); System.out.println( "observer = " + observer ); return g2D.drawImage( img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, observer ); } 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) { System.out.println( "drawImage(Image,int,int,int,int,int,int,int,int,Color,ImageObserver):" ); System.out.println( "img = " + img ); System.out.println( "dx1 = " + dx1 ); System.out.println( "dy1 = " + dy1 ); System.out.println( "dx2 = " + dx2 ); System.out.println( "dy2 = " + dy2 ); System.out.println( "sx1 = " + sx1 ); System.out.println( "sy1 = " + sy1 ); System.out.println( "sx2 = " + sx2 ); System.out.println( "sy2 = " + sy2 ); System.out.println( "bgcolor = " + bgcolor ); System.out.println( "observer = " + observer ); return g2D.drawImage( img, dx1, dy1, dx2, dy2, sx1, sy1, sx2, sy2, bgcolor, observer ); } public boolean drawImage(Image img, int x, int y, Color bgcolor, ImageObserver observer) { System.out.println( "drawImage(Image,int,int,Color,ImageObserver):" ); System.out.println( "img = " + img ); System.out.println( "x = " + x ); System.out.println( "y = " + y ); System.out.println( "bgcolor = " + bgcolor ); System.out.println( "observer = " + observer ); return g2D.drawImage( img, x, y, bgcolor, observer ); } public boolean drawImage(Image img, int x, int y, ImageObserver observer) { System.out.println( "drawImage(Image,int,int,observer):" ); System.out.println( "img = " + img ); System.out.println( "x = " + x ); System.out.println( "y = " + y ); System.out.println( "observer = " + observer ); return g2D.drawImage( img, x, y, observer ); } public boolean drawImage(Image img, int x, int y, int width, int height, Color bgcolor, ImageObserver observer) { System.out.println( "drawImage(Image,int,int,int,int,Color,ImageObserver):" ); System.out.println( "img = " + img ); System.out.println( "x = " + x ); System.out.println( "y = " + y ); System.out.println( "width = " + width ); System.out.println( "height = " + height ); System.out.println( "bgcolor = " + bgcolor ); System.out.println( "observer = " + observer ); return g2D.drawImage( img, x, y, width, height, bgcolor, observer ); } public boolean drawImage(Image img, int x, int y, int width, int height, ImageObserver observer) { System.out.println( "drawImage(Image,int,int,width,height,observer):" ); System.out.println( "img = " + img ); System.out.println( "x = " + x ); System.out.println( "y = " + y ); System.out.println( "width = " + width ); System.out.println( "height = " + height ); System.out.println( "observer = " + observer ); return g2D.drawImage( img, x, y, width, height, observer ); } public void drawLine(int x1, int y1, int x2, int y2) { System.out.println( "drawLine(int,int,int,int):" ); System.out.println( "x1 = " + x1 ); System.out.println( "y1 = " + y1 ); System.out.println( "x2 = " + x2 ); System.out.println( "y2 = " + y2 ); g2D.drawLine( x1, y1, x2, y2 ); } public void drawOval(int x, int y, int width, int height) { System.out.println( "drawOval(int,int,int,int):" ); System.out.println( "x = " + x ); System.out.println( "y = " + y ); System.out.println( "width = " + width ); System.out.println( "height = " + height ); g2D.drawOval( x, y, width, height ); } public void drawPolygon(Polygon p) { System.out.println( "drawPolygon(Polygon):" ); System.out.println( "p = " + p ); g2D.drawPolygon( p ); } public void drawPolygon(int xPoints[], int yPoints[], int nPoints) { System.out.println( "drawPolygon(int[],int[],int):" ); System.out.println( "xPoints = " + xPoints ); System.out.println( "yPoints = " + yPoints ); System.out.println( "nPoints = " + nPoints ); g2D.drawPolygon( xPoints, yPoints, nPoints ); } public void drawPolyline(int xPoints[], int yPoints[], int nPoints) { System.out.println( "drawPolyline(int[],int[],int):" ); System.out.println( "xPoints = " + xPoints ); System.out.println( "yPoints = " + yPoints ); System.out.println( "nPoints = " + nPoints ); g2D.drawPolyline( xPoints, yPoints, nPoints ); } public void drawRect(int x, int y, int width, int height) { System.out.println( "drawRect(int,int,int,int):" ); System.out.println( "x = " + x ); System.out.println( "y = " + y ); System.out.println( "width = " + width ); System.out.println( "height = " + height ); g2D.drawRect( x, y, width, height ); } public void drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) { System.out.println( "drawRoundRect(int,int,int,int,int,int):" ); System.out.println( "x = " + x ); System.out.println( "y = " + y ); System.out.println( "width = " + width ); System.out.println( "height = " + height ); System.out.println( "arcWidth = " + arcWidth ); System.out.println( "arcHeight = " + arcHeight ); g2D.drawRoundRect( x, y, width, height, arcWidth, arcHeight ); } public void drawString(AttributedCharacterIterator iterator, int x, int y) { System.out.println( "drawString(AttributedCharacterIterator,int,int):" ); System.out.println( "iterator = " + iterator ); System.out.println( "x = " + x ); System.out.println( "y = " + y ); g2D.drawString( iterator, x, y ); } public void drawString(String str, int x, int y) { System.out.println( "drawString(str,int,int):" ); System.out.println( "str = " + str ); System.out.println( "x = " + x ); System.out.println( "y = " + y ); g2D.drawString( str, x, y ); } 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 fillArc(int x, int y, int width, int height, int startAngle, int arcAngle) { System.out.println( "fillArc(int,int,int,int,int,int):" ); System.out.println( "x = " + x ); System.out.println( "y = " + y ); System.out.println( "width = " + width ); System.out.println( "height = " + height ); System.out.println( "startAngle = " + startAngle ); System.out.println( "arcAngle = " + arcAngle ); g2D.fillArc( x, y, width, height, startAngle, arcAngle ); } public void fillOval(int x, int y, int width, int height) { System.out.println( "fillOval(int,int,int,int):" ); System.out.println( "x = " + x ); System.out.println( "y = " + y ); System.out.println( "width = " + width ); System.out.println( "height = " + height ); g2D.fillOval( x, y, width, height ); } public void fillPolygon(Polygon p) { System.out.println( "fillPolygon(Polygon):" ); System.out.println( "p = " + p ); g2D.fillPolygon( p ); } public void fillPolygon(int xPoints[], int yPoints[], int nPoints) { System.out.println( "fillPolygon(int[],int[],int):" ); System.out.println( "xPoints = " + xPoints ); System.out.println( "yPoints = " + yPoints ); System.out.println( "nPoints = " + nPoints ); g2D.fillPolygon( xPoints, yPoints, nPoints ); } public void fillRect(int x, int y, int width, int height) { System.out.println( "fillRect(int,int,int,int):" ); System.out.println( "x = " + x ); System.out.println( "y = " + y ); System.out.println( "width = " + width ); System.out.println( "height = " + height ); g2D.fillRect( x, y, width, height ); } public void fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) { System.out.println( "fillRoundRect(int,int,int,int,int,int):" ); System.out.println( "x = " + x ); System.out.println( "y = " + y ); System.out.println( "width = " + width ); System.out.println( "height = " + height ); g2D.fillRoundRect( x, y, width, height, arcWidth, arcHeight ); } public void finalize() { System.out.println( "finalize():" ); g2D.finalize(); } public Shape getClip() { System.out.println( "getClip():" ); return g2D.getClip(); } public Rectangle getClipBounds() { System.out.println( "getClipBounds():" ); return g2D.getClipBounds(); } public Rectangle getClipBounds(Rectangle r) { System.out.println( "getClipBounds(Rectangle):" ); System.out.println( "r = " + r ); return g2D.getClipBounds( r ); } public Rectangle getClipRect() { System.out.println( "getClipRect():" ); return g2D.getClipRect(); } public Color getColor() { System.out.println( "getColor():" ); return g2D.getColor(); } public Font getFont() { System.out.println( "getFont():" ); return g2D.getFont(); } public FontMetrics getFontMetrics() { System.out.println( "getFontMetrics():" ); return g2D.getFontMetrics(); } public FontMetrics getFontMetrics(Font f) { System.out.println( "getFontMetrics():" ); return g2D.getFontMetrics( f ); } public boolean hitClip(int x, int y, int width, int height) { System.out.println( "hitClip(int,int,int,int):" ); System.out.println( "x = " + x ); System.out.println( "y = " + y ); System.out.println( "width = " + width ); System.out.println( "height = " + height ); return g2D.hitClip( x, y, width, height ); } public void setClip(Shape clip) { System.out.println( "setClip(Shape):" ); System.out.println( "clip = " + clip ); g2D.setClip( clip ); } public void setClip(int x, int y, int width, int height) { System.out.println( "setClip(int,int,int,int):" ); System.out.println( "x = " + x ); System.out.println( "y = " + y ); System.out.println( "width = " + width ); System.out.println( "height = " + height ); g2D.setClip( x, y, width, height ); } public void setColor(Color c) { System.out.println( "setColor():" ); System.out.println( "c = " + c ); g2D.setColor( c ); } public void setFont(Font font) { System.out.println( "setFont(Font):" ); System.out.println( "font = " + font ); g2D.setFont( font ); } public void setPaintMode() { System.out.println( "setPaintMode():" ); g2D.setPaintMode(); } public void setXORMode(Color c1) { System.out.println( "setXORMode(Color):" ); System.out.println( "c1 = " + c1 ); g2D.setXORMode( c1 ); } public String toString() { System.out.println( "toString():" ); return g2D.toString(); } public void translate(int x, int y) { System.out.println( "translate(int,int):" ); System.out.println( "x = " + x ); System.out.println( "y = " + y ); g2D.translate( x, y ); }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -