voji.utils
Class CopyGraphics

java.lang.Object
  |
  +--java.awt.Graphics
        |
        +--voji.utils.CopyGraphics
Direct Known Subclasses:
PageGraphics

public class CopyGraphics
extends java.awt.Graphics

This class redirects all functions to one or more specified Graphics objects.


Constructor Summary
CopyGraphics()
          Creates a new empty instance of CopyGraphics
CopyGraphics(java.awt.Graphics g)
          Creates a new empty instance of CopyGraphics containing the given sub Graphics object
CopyGraphics(java.awt.Graphics[] g)
          Creates a new instance of CopyGraphics containing the given sub Graphics objects
 
Method Summary
 void addGraphics(java.awt.Graphics g)
          Adds a sub Graphics object
 void addGraphics(java.awt.Graphics[] g)
          Adds some sub Graphics objects
 void clearRect(int x, int y, int width, int height)
          Redirects to clearRect of the registered Graphics objects
 void clipRect(int x, int y, int width, int height)
          Redirects to clipRect of the registered Graphics objects
 void copyArea(int x, int y, int width, int height, int dx, int dy)
          Redirects to copyArea of the registered Graphics objects
 java.awt.Graphics create()
          Creates a new CopyGraphics instance containing copies of all sub Graphics objects
 void dispose()
          Redirects to dispose of the registered Graphics objects
 void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle)
          Redirects to drawArc of the registered Graphics objects
 boolean drawImage(java.awt.Image img, int x, int y, java.awt.Color bgcolor, java.awt.image.ImageObserver observer)
          Redirects to drawImage of the registered Graphics objects
 boolean drawImage(java.awt.Image img, int x, int y, java.awt.image.ImageObserver observer)
          Redirects to drawImage of the registered Graphics objects
 boolean drawImage(java.awt.Image img, int x, int y, int width, int height, java.awt.Color bgcolor, java.awt.image.ImageObserver observer)
          Redirects to drawImage of the registered Graphics objects
 boolean drawImage(java.awt.Image img, int x, int y, int width, int height, java.awt.image.ImageObserver observer)
          Redirects to drawImage of the registered Graphics objects
 boolean drawImage(java.awt.Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, java.awt.Color bgcolor, java.awt.image.ImageObserver observer)
          Redirects to drawImage of the registered Graphics objects
 boolean drawImage(java.awt.Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, java.awt.image.ImageObserver observer)
          Redirects to drawImage of the registered Graphics objects
 void drawLine(int x1, int y1, int x2, int y2)
          Redirects to drawLine of the registered Graphics objects
 void drawOval(int x, int y, int width, int height)
          Redirects to drawOval of the registered Graphics objects
 void drawPolygon(int[] xPoints, int[] yPoints, int nPoints)
          Redirects to drawPolygon of the registered Graphics objects
 void drawPolyline(int[] xPoints, int[] yPoints, int nPoints)
          Redirects to drawPolyline of the registered Graphics objects
 void drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
          Redirects to drawRoundRect of the registered Graphics objects
 void drawString(java.text.AttributedCharacterIterator iterator, int x, int y)
          Redirects to drawString of the registered Graphics objects
 void drawString(java.lang.String str, int x, int y)
          Redirects to drawString of the registered Graphics objects
 void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle)
          Redirects to fillArc of the registered Graphics objects
 void fillOval(int x, int y, int width, int height)
          Redirects to fillOval of the registered Graphics objects
 void fillPolygon(int[] xPoints, int[] yPoints, int nPoints)
          Redirects to fillPolygon of the registered Graphics objects
 void fillRect(int x, int y, int width, int height)
          Redirects to fillRect of the registered Graphics objects
 void fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
          Redirects to fillRoundRect of the registered Graphics objects
 void finalize()
          Redirects to finalize of the registered Graphics objects
 java.awt.Shape getClip()
          Redirects to getClip of the registered Graphics objects
 java.awt.Rectangle getClipBounds()
          Redirects to getClipBounds of the registered Graphics objects
 java.awt.Color getColor()
          Redirects to getColor of the registered Graphics objects
 java.awt.Font getFont()
          Redirects to getFont of the registered Graphics objects
 java.awt.FontMetrics getFontMetrics(java.awt.Font f)
          Redirects to getFontMetrics of the registered Graphics objects
 void removeGraphics(java.awt.Graphics g)
          Removes a sub Graphics object
 void setClip(int x, int y, int width, int height)
          Redirects to setClip of the registered Graphics objects
 void setClip(java.awt.Shape clip)
          Redirects to setClip of the registered Graphics objects
 void setColor(java.awt.Color c)
          Redirects to setColor of the registered Graphics objects
 void setFont(java.awt.Font font)
          Redirects to setFont of the registered Graphics objects
 void setGraphics(java.awt.Graphics g)
          Sets the current sub Graphics object
 void setPaintMode()
          Redirects to setPaintMode of the registered Graphics objects
 void setXORMode(java.awt.Color c1)
          Redirects to setXORMode of the registered Graphics objects
 java.lang.String toString()
          Returns a String object representing this object's value
 void translate(int x, int y)
          Redirects to translate of the registered Graphics objects
 
Methods inherited from class java.awt.Graphics
create, draw3DRect, drawBytes, drawChars, drawPolygon, drawRect, fill3DRect, fillPolygon, getClipBounds, getClipRect, getFontMetrics, hitClip
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CopyGraphics

public CopyGraphics()
Creates a new empty instance of CopyGraphics


CopyGraphics

public CopyGraphics(java.awt.Graphics g)
Creates a new empty instance of CopyGraphics containing the given sub Graphics object

Parameters:
g - the new sub Graphics object or null if there shouldn't be any sub objects

CopyGraphics

public CopyGraphics(java.awt.Graphics[] g)
Creates a new instance of CopyGraphics containing the given sub Graphics objects

Parameters:
g - an Array containing the new sub Graphics objects
Method Detail

addGraphics

public void addGraphics(java.awt.Graphics g)
Adds a sub Graphics object

Parameters:
g - the new sub Graphics object

addGraphics

public void addGraphics(java.awt.Graphics[] g)
Adds some sub Graphics objects

Parameters:
g - an Array containing the new sub Graphics objects

removeGraphics

public void removeGraphics(java.awt.Graphics g)
Removes a sub Graphics object

Parameters:
g - the sub Graphics object to remove

setGraphics

public void setGraphics(java.awt.Graphics g)
Sets the current sub Graphics object

Parameters:
g - the new sub Graphics object or null if there shouldn't be any sub objects

create

public java.awt.Graphics create()
Creates a new CopyGraphics instance containing copies of all sub Graphics objects

Specified by:
create in class java.awt.Graphics

dispose

public void dispose()
Redirects to dispose of the registered Graphics objects

Specified by:
dispose in class java.awt.Graphics

finalize

public void finalize()
Redirects to finalize of the registered Graphics objects

Overrides:
finalize in class java.awt.Graphics

toString

public java.lang.String toString()
Returns a String object representing this object's value

Overrides:
toString in class java.awt.Graphics
Returns:
a string representation of this graphics context

clearRect

public void clearRect(int x,
                      int y,
                      int width,
                      int height)
Redirects to clearRect of the registered Graphics objects

Specified by:
clearRect in class java.awt.Graphics

clipRect

public void clipRect(int x,
                     int y,
                     int width,
                     int height)
Redirects to clipRect of the registered Graphics objects

Specified by:
clipRect in class java.awt.Graphics

copyArea

public void copyArea(int x,
                     int y,
                     int width,
                     int height,
                     int dx,
                     int dy)
Redirects to copyArea of the registered Graphics objects

Specified by:
copyArea in class java.awt.Graphics

drawArc

public void drawArc(int x,
                    int y,
                    int width,
                    int height,
                    int startAngle,
                    int arcAngle)
Redirects to drawArc of the registered Graphics objects

Specified by:
drawArc in class java.awt.Graphics

drawImage

public boolean drawImage(java.awt.Image img,
                         int x,
                         int y,
                         java.awt.Color bgcolor,
                         java.awt.image.ImageObserver observer)
Redirects to drawImage of the registered Graphics objects

Specified by:
drawImage in class java.awt.Graphics

drawImage

public boolean drawImage(java.awt.Image img,
                         int x,
                         int y,
                         java.awt.image.ImageObserver observer)
Redirects to drawImage of the registered Graphics objects

Specified by:
drawImage in class java.awt.Graphics

drawImage

public boolean drawImage(java.awt.Image img,
                         int x,
                         int y,
                         int width,
                         int height,
                         java.awt.Color bgcolor,
                         java.awt.image.ImageObserver observer)
Redirects to drawImage of the registered Graphics objects

Specified by:
drawImage in class java.awt.Graphics

drawImage

public boolean drawImage(java.awt.Image img,
                         int x,
                         int y,
                         int width,
                         int height,
                         java.awt.image.ImageObserver observer)
Redirects to drawImage of the registered Graphics objects

Specified by:
drawImage in class java.awt.Graphics

drawImage

public boolean drawImage(java.awt.Image img,
                         int dx1,
                         int dy1,
                         int dx2,
                         int dy2,
                         int sx1,
                         int sy1,
                         int sx2,
                         int sy2,
                         java.awt.Color bgcolor,
                         java.awt.image.ImageObserver observer)
Redirects to drawImage of the registered Graphics objects

Specified by:
drawImage in class java.awt.Graphics

drawImage

public boolean drawImage(java.awt.Image img,
                         int dx1,
                         int dy1,
                         int dx2,
                         int dy2,
                         int sx1,
                         int sy1,
                         int sx2,
                         int sy2,
                         java.awt.image.ImageObserver observer)
Redirects to drawImage of the registered Graphics objects

Specified by:
drawImage in class java.awt.Graphics

drawLine

public void drawLine(int x1,
                     int y1,
                     int x2,
                     int y2)
Redirects to drawLine of the registered Graphics objects

Specified by:
drawLine in class java.awt.Graphics

drawOval

public void drawOval(int x,
                     int y,
                     int width,
                     int height)
Redirects to drawOval of the registered Graphics objects

Specified by:
drawOval in class java.awt.Graphics

drawPolygon

public void drawPolygon(int[] xPoints,
                        int[] yPoints,
                        int nPoints)
Redirects to drawPolygon of the registered Graphics objects

Specified by:
drawPolygon in class java.awt.Graphics

drawPolyline

public void drawPolyline(int[] xPoints,
                         int[] yPoints,
                         int nPoints)
Redirects to drawPolyline of the registered Graphics objects

Specified by:
drawPolyline in class java.awt.Graphics

drawRoundRect

public void drawRoundRect(int x,
                          int y,
                          int width,
                          int height,
                          int arcWidth,
                          int arcHeight)
Redirects to drawRoundRect of the registered Graphics objects

Specified by:
drawRoundRect in class java.awt.Graphics

drawString

public void drawString(java.text.AttributedCharacterIterator iterator,
                       int x,
                       int y)
Redirects to drawString of the registered Graphics objects

Specified by:
drawString in class java.awt.Graphics

drawString

public void drawString(java.lang.String str,
                       int x,
                       int y)
Redirects to drawString of the registered Graphics objects

Specified by:
drawString in class java.awt.Graphics

fillArc

public void fillArc(int x,
                    int y,
                    int width,
                    int height,
                    int startAngle,
                    int arcAngle)
Redirects to fillArc of the registered Graphics objects

Specified by:
fillArc in class java.awt.Graphics

fillOval

public void fillOval(int x,
                     int y,
                     int width,
                     int height)
Redirects to fillOval of the registered Graphics objects

Specified by:
fillOval in class java.awt.Graphics

fillPolygon

public void fillPolygon(int[] xPoints,
                        int[] yPoints,
                        int nPoints)
Redirects to fillPolygon of the registered Graphics objects

Specified by:
fillPolygon in class java.awt.Graphics

fillRect

public void fillRect(int x,
                     int y,
                     int width,
                     int height)
Redirects to fillRect of the registered Graphics objects

Specified by:
fillRect in class java.awt.Graphics

fillRoundRect

public void fillRoundRect(int x,
                          int y,
                          int width,
                          int height,
                          int arcWidth,
                          int arcHeight)
Redirects to fillRoundRect of the registered Graphics objects

Specified by:
fillRoundRect in class java.awt.Graphics

getClip

public java.awt.Shape getClip()
Redirects to getClip of the registered Graphics objects

Specified by:
getClip in class java.awt.Graphics

getClipBounds

public java.awt.Rectangle getClipBounds()
Redirects to getClipBounds of the registered Graphics objects

Specified by:
getClipBounds in class java.awt.Graphics

getColor

public java.awt.Color getColor()
Redirects to getColor of the registered Graphics objects

Specified by:
getColor in class java.awt.Graphics

getFont

public java.awt.Font getFont()
Redirects to getFont of the registered Graphics objects

Specified by:
getFont in class java.awt.Graphics

getFontMetrics

public java.awt.FontMetrics getFontMetrics(java.awt.Font f)
Redirects to getFontMetrics of the registered Graphics objects

Specified by:
getFontMetrics in class java.awt.Graphics

setClip

public void setClip(int x,
                    int y,
                    int width,
                    int height)
Redirects to setClip of the registered Graphics objects

Specified by:
setClip in class java.awt.Graphics

setClip

public void setClip(java.awt.Shape clip)
Redirects to setClip of the registered Graphics objects

Specified by:
setClip in class java.awt.Graphics

setColor

public void setColor(java.awt.Color c)
Redirects to setColor of the registered Graphics objects

Specified by:
setColor in class java.awt.Graphics

setFont

public void setFont(java.awt.Font font)
Redirects to setFont of the registered Graphics objects

Specified by:
setFont in class java.awt.Graphics

setPaintMode

public void setPaintMode()
Redirects to setPaintMode of the registered Graphics objects

Specified by:
setPaintMode in class java.awt.Graphics

setXORMode

public void setXORMode(java.awt.Color c1)
Redirects to setXORMode of the registered Graphics objects

Specified by:
setXORMode in class java.awt.Graphics

translate

public void translate(int x,
                      int y)
Redirects to translate of the registered Graphics objects

Specified by:
translate in class java.awt.Graphics