public class PunchCommandLayer 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 |
---|
PunchCommandLayer(JVirtualBookScrollableComponent comp) |
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics g,
JVirtualBookComponent jcarton)
ask for a draw in the component
|
java.lang.Integer |
getCurrentPos() |
java.lang.String |
getDisplayName() |
int |
getOrigin() |
double |
getPunchHeight() |
PunchPlan |
getPunchPlan() |
int |
getPunchType() |
double |
getPunchWidth() |
boolean |
isVisible()
ask if the layer is visible
|
void |
setCurrentPos(java.lang.Integer currentPos) |
void |
setLayerName(java.lang.String displayName) |
void |
setOrigin(int origin) |
void |
setPunchHeight(double punchHeight) |
void |
setPunchPlan(PunchPlan punchPlan)
set the punches to display
|
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 PunchCommandLayer(JVirtualBookScrollableComponent comp)
public void setOrigin(int origin)
public int getOrigin()
public void draw(java.awt.Graphics g, JVirtualBookComponent jcarton)
VirtualBookComponentLayer
draw
in interface VirtualBookComponentLayer
g
- the graphic reference for drawing with Java2Djcarton
- the VirtualBookComponent referencepublic void setPunchPlan(PunchPlan punchPlan) throws java.lang.Exception
punches
- java.lang.Exception
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 PunchPlan getPunchPlan()
public boolean isVisible()
VirtualBookComponentLayer
isVisible
in interface VirtualBookComponentLayer
public void setVisible(boolean visible)
VirtualBookComponentLayer
setVisible
in interface VirtualBookComponentLayer
public void setLayerName(java.lang.String displayName)
public java.lang.String getDisplayName()
getDisplayName
in interface VirtualBookComponentLayerName
public void setCurrentPos(java.lang.Integer currentPos)
public java.lang.Integer getCurrentPos()