public class ImageAndHolesVisualizationLayer extends java.lang.Object implements VirtualBookComponentBackgroundLayer
Constructor and Description |
---|
ImageAndHolesVisualizationLayer() |
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics g,
JVirtualBookComponent jbookcomponentreference)
ask for a draw in the component
|
void |
drawBackground(java.awt.Graphics g,
JVirtualBookComponent component)
Method called when the background is drawn
|
java.awt.image.BufferedImage |
getBackgroundimage() |
java.util.ArrayList<Hole> |
getHoles() |
TiledImage |
getTiledBackgroundimage() |
double |
getXoffset()
Image Offset in mm
|
double |
getXscale() |
boolean |
isVisible()
ask if the layer is visible
|
void |
setBackgroundimage(java.awt.image.BufferedImage backgroundimage)
setter for the image
|
void |
setHoles(java.util.ArrayList<Hole> holes) |
void |
setTiledBackgroundimage(TiledImage backgroundimage) |
void |
setVisible(boolean visible)
define if the layer is visible or not
|
void |
setXoffset(double xoffset) |
void |
setXscale(double xscale) |
public void setBackgroundimage(java.awt.image.BufferedImage backgroundimage)
backgroundimage
- public java.awt.image.BufferedImage getBackgroundimage()
public void setTiledBackgroundimage(TiledImage backgroundimage)
public TiledImage getTiledBackgroundimage()
public void setHoles(java.util.ArrayList<Hole> holes)
public java.util.ArrayList<Hole> getHoles()
public void setVisible(boolean visible)
VirtualBookComponentLayer
setVisible
in interface VirtualBookComponentLayer
public boolean isVisible()
VirtualBookComponentLayer
isVisible
in interface VirtualBookComponentLayer
public void drawBackground(java.awt.Graphics g, JVirtualBookComponent component)
VirtualBookComponentBackgroundLayer
drawBackground
in interface VirtualBookComponentBackgroundLayer
g
- the graphic contextcomponent
- the componentpublic void draw(java.awt.Graphics g, JVirtualBookComponent jbookcomponentreference)
VirtualBookComponentLayer
draw
in interface VirtualBookComponentLayer
g
- the graphic reference for drawing with Java2Djbookcomponentreference
- the VirtualBookComponent referencepublic void setXoffset(double xoffset)
public double getXoffset()
public void setXscale(double xscale)
public double getXscale()