|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dillenburg.pictureframe.PictureLayout
org.dillenburg.pictureframe.LeftRightPictureLayout
public class LeftRightPictureLayout
Paint two pictures side-by-side.
Constructor Summary | |
---|---|
LeftRightPictureLayout(java.io.File left,
java.io.File right)
Paint the given two pictres side-by-side. |
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 LeftRightPictureLayout(java.io.File left, java.io.File right)
left
- left side imageright
- right side imageMethod 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 |