|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jomic.comic.ComicSheetLayout
public class ComicSheetLayout
Layout specifying how to render the images of a ComicSheet.
ComicSheet
Field Summary | |
---|---|
static int |
RENDER_BOTH
|
static int |
RENDER_LEFT
|
static int |
RENDER_RIGHT
|
Constructor Summary | |
---|---|
ComicSheetLayout()
|
Method Summary | |
---|---|
java.awt.geom.AffineTransform |
getTargetRotationTransformation(int targetWidth,
int targetHeight)
Get transformation to rotate image(s) during render() . |
double[] |
getTargetScales(int targetWidth,
int targetHeight,
int imagesToRender)
Get scales needed to render leftImage and/or
rightImage in a target with size targetWidth
x targetHeight . |
int[] |
getTargetTopLeft(int targetWidth,
int targetHeight,
int imagesToRender,
double[] scales)
Get the top left corner in for drawing the sheet in a target with size targetWidth x targetHeight . |
void |
prepare(java.awt.image.RenderedImage newLeftImage,
java.awt.image.RenderedImage newRightImage,
ComicSheetRenderSettings newRenderSettings)
Set images and settings to be used for layout. |
void |
renderTo(java.awt.Graphics2D myGraphics,
int screenWidth,
int screenHeight,
int imageIndex,
ComicSheet comicSheet,
java.awt.image.RenderedImage leftImageToRender,
java.awt.image.RenderedImage rightImageToRender,
ComicSheetRenderSettings newRenderSettings)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int RENDER_LEFT
public static final int RENDER_RIGHT
public static final int RENDER_BOTH
Constructor Detail |
---|
public ComicSheetLayout()
Method Detail |
---|
public void prepare(java.awt.image.RenderedImage newLeftImage, java.awt.image.RenderedImage newRightImage, ComicSheetRenderSettings newRenderSettings)
public java.awt.geom.AffineTransform getTargetRotationTransformation(int targetWidth, int targetHeight)
render()
.
public double[] getTargetScales(int targetWidth, int targetHeight, int imagesToRender)
leftImage
and/or
rightImage
in a target with size targetWidth
x targetHeight
.
imagesToRender
- which images to render: RENDER_LEFT, RENDER_RIGHT, RENDER_BOTH
NO_SCALE
if there is no such imagepublic int[] getTargetTopLeft(int targetWidth, int targetHeight, int imagesToRender, double[] scales)
targetWidth
x targetHeight
.
public void renderTo(java.awt.Graphics2D myGraphics, int screenWidth, int screenHeight, int imageIndex, ComicSheet comicSheet, java.awt.image.RenderedImage leftImageToRender, java.awt.image.RenderedImage rightImageToRender, ComicSheetRenderSettings newRenderSettings)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |