|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ks.client.gamefactory.skin.ImageCopier
Visitor class to fills rectangles with parts of an image. Creation date: (10/9/01 7:22:11 PM)
Field Summary | |
protected java.awt.Graphics |
myGraphics
The graphics context in which to draw. |
protected java.awt.Image |
myImage
The image from which to extract the rectangles. |
protected java.awt.image.ImageObserver |
myObserver
The image observer visible on the screen. |
Constructor Summary | |
ImageCopier(java.awt.Image i,
java.awt.image.ImageObserver observer,
java.awt.Graphics g)
ImageCopier by default uses this color as the fillRect color when transfering a filled Rectangle. |
Method Summary | |
void |
setVisible(boolean visible)
Visitor's chance to free up resources at end of being displayed |
void |
visit(RectangleHierarchy node)
Copy the appropriate image onto Graphics g at (x,y,width,height). |
void |
visit(RectangleHierarchy node,
java.awt.Rectangle clip)
Copy the appropriate image onto Graphics g at (x,y,width,height). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.awt.Image myImage
protected java.awt.image.ImageObserver myObserver
protected java.awt.Graphics myGraphics
Constructor Detail |
public ImageCopier(java.awt.Image i, java.awt.image.ImageObserver observer, java.awt.Graphics g)
Method Detail |
public void setVisible(boolean visible)
visible
- booleanpublic void visit(RectangleHierarchy node)
public void visit(RectangleHierarchy node, java.awt.Rectangle clip)
Note: only Leaf nodes are drawn.
In 2.1 Fixed defect where CHILDREN where being passed NULL clip region.
Clip to the given Rectangle clip area. [clip is unaffected by this invocation.]
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |