|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jomic.comic.ComicSheet
public class ComicSheet
A sheet containig 1 or 2 images, depending on the size of the images: if an image is wider than high, a sheet can contain only 1 image.
Sheets are used to render a the ComicView in two page mode. ComicImages are referred to by their index in the ComicViews internal ComicView[].
Field Summary | |
---|---|
static int |
NO_IMAGE
Value to indicat that no image is assigned. |
Constructor Summary | |
---|---|
ComicSheet(int newPage,
int newLeftImageIndex)
Create a sheet holding a single image. |
|
ComicSheet(int newPage,
int newLeftImageIndex,
int newRightImageIndex)
Create a sheet holding a single image. |
Method Summary | |
---|---|
int |
getLeftImageIndex()
|
int |
getPage()
Get the page to which the left image refers to. |
int |
getRightImageIndex()
|
int |
getRightImageIndexOrNoImage()
|
boolean |
hasRightImage()
Does the sheet have a second image? |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int NO_IMAGE
Constructor Detail |
---|
public ComicSheet(int newPage, int newLeftImageIndex)
setRightImageIndex()
to add an
image.
newPage
- page number of the left ComicImagenewLeftImageIndex
- index of the ComicImage that describes this pagesetRightImageIndex(int)
public ComicSheet(int newPage, int newLeftImageIndex, int newRightImageIndex)
setRightImageIndex()
to add an
image.
newPage
- page number of the left ComicImagenewLeftImageIndex
- index of the ComicImage that describes this pagenewRightImageIndex
- Description of the parameterMethod Detail |
---|
public int getLeftImageIndex()
public int getPage()
public int getRightImageIndex()
public int getRightImageIndexOrNoImage()
public boolean hasRightImage()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |