org.dillenburg.pictureframe
Class TopBottomPictureLayout
java.lang.Object
org.dillenburg.pictureframe.PictureLayout
org.dillenburg.pictureframe.TopBottomPictureLayout
public class TopBottomPictureLayout
- extends PictureLayout
Draw two picture file one above the other.
Constructor Summary |
TopBottomPictureLayout(java.io.File top,
java.io.File bottom)
Draw top given pictures on on top of the other. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TopBottomPictureLayout
public TopBottomPictureLayout(java.io.File top,
java.io.File bottom)
- Draw top given pictures on on top of the other.
- Parameters:
top
- top picturebottom
- bottom picture
paint
public void paint(java.awt.Graphics2D g,
java.awt.Dimension screenSize)
throws java.io.IOException
- Description copied from class:
PictureLayout
- Paint the image files onto the given graphics canvas with the overall size given.
- Specified by:
paint
in class PictureLayout
- Parameters:
g
- graphics canvasscreenSize
- size of drawing area
- Throws:
java.io.IOException
- on error loading image files
getFiles
public java.util.List<java.io.File> getFiles()
- Description copied from class:
PictureLayout
- Get all files to be drawn by this layout.
- Specified by:
getFiles
in class PictureLayout
- Returns:
- list of files to be drawn using the given layout
JPictureFrame hosted by SourceForge.net - John Dillenburg - john_sourceforge@dillenburg.org