public class PunchLayer extends java.lang.Object implements VirtualBookComponentLayer, VirtualBookComponentLayerName
| Modifier and Type | Field and Description |
|---|---|
static int |
ORIGIN_CENTER |
static int |
ORIGIN_LEFT_MIDDLE |
static int |
ORIGIN_LEFT_UPPER |
| Constructor and Description |
|---|
PunchLayer() |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(java.awt.Graphics g,
JVirtualBookComponent jcarton)
ask for a draw in the component
|
java.lang.String |
getDisplayName() |
int |
getOrigin() |
OptimizedObject[] |
getPunch() |
double |
getPunchHeight() |
int |
getPunchType() |
double |
getPunchWidth() |
boolean |
isVisible()
ask if the layer is visible
|
void |
setLayerName(java.lang.String displayName) |
void |
setOptimizedObject(OptimizedObject[] optimizedObject)
set the punches to display
|
void |
setOrigin(int origin) |
void |
setPunchHeight(double punchHeight) |
void |
setPunchType(int punchType) |
void |
setPunchWidth(double punchWidth) |
void |
setVisible(boolean visible)
define if the layer is visible or not
|
public static final int ORIGIN_LEFT_UPPER
public static final int ORIGIN_LEFT_MIDDLE
public static final int ORIGIN_CENTER
public void setOrigin(int origin)
public int getOrigin()
public void draw(java.awt.Graphics g,
JVirtualBookComponent jcarton)
VirtualBookComponentLayerdraw in interface VirtualBookComponentLayerg - the graphic reference for drawing with Java2Djcarton - the VirtualBookComponent referencepublic void setOptimizedObject(OptimizedObject[] optimizedObject)
optimizedObject - public double getPunchWidth()
public void setPunchWidth(double punchWidth)
public double getPunchHeight()
public void setPunchHeight(double punchHeight)
public int getPunchType()
public void setPunchType(int punchType)
public OptimizedObject[] getPunch()
public boolean isVisible()
VirtualBookComponentLayerisVisible in interface VirtualBookComponentLayerpublic void setVisible(boolean visible)
VirtualBookComponentLayersetVisible in interface VirtualBookComponentLayerpublic void setLayerName(java.lang.String displayName)
public java.lang.String getDisplayName()
getDisplayName in interface VirtualBookComponentLayerName