|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dillenburg.pictureframe.PictureLayout org.dillenburg.pictureframe.CenteredPictureLayout
public class CenteredPictureLayout
Center a single image on the screen.
Constructor Summary | |
---|---|
CenteredPictureLayout(java.io.File f)
Centered layout with the given image file. |
Method Summary | |
---|---|
java.util.List<java.io.File> |
getFiles()
Get all files to be drawn by this layout. |
void |
paint(java.awt.Graphics2D g,
java.awt.Dimension screenSize)
Paint the image files onto the given graphics canvas with the overall size given. |
Methods inherited from class org.dillenburg.pictureframe.PictureLayout |
---|
scaleAndCenterWithin |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CenteredPictureLayout(java.io.File f)
f
- file with image in itMethod Detail |
---|
public void paint(java.awt.Graphics2D g, java.awt.Dimension screenSize) throws java.io.IOException
PictureLayout
paint
in class PictureLayout
g
- graphics canvasscreenSize
- size of drawing area
java.io.IOException
- on error loading image filespublic java.util.List<java.io.File> getFiles()
PictureLayout
getFiles
in class PictureLayout
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |