类 PrinterConfig
- java.lang.Object
-
- com.gainscha.sdk2.PrinterConfig
-
public class PrinterConfig extends java.lang.Object
-
-
构造器概要
构造器 构造器 说明 PrinterConfig()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 int
getBlackLineHeight()
int
getDensity()
Dpi
getDpi()
java.lang.String
getExtras()
int
getGap()
Instruction
getInstruction()
int
getLabelHeight()
int
getLabelWidth()
PaperType
getPaperType()
int
getPrintCount()
PrintMode
getPrintMode()
int
getRotation()
float
getSpeed()
TearMode
getTearMode()
int
getxOffset()
int
getyOffset()
boolean
isBeep()
boolean
isBitmapShake()
boolean
isCompressBitmap()
boolean
isSlice()
void
setBeep(boolean beep)
void
setBitmapShake(boolean bitmapShake)
void
setBlackLineHeight(int blackLineHeight)
void
setCompressBitmap(boolean compressBitmap)
void
setDensity(int density)
void
setDpi(Dpi dpi)
void
setExtras(java.lang.String extras)
void
setGap(int gap)
void
setInstruction(Instruction instruction)
void
setLabelHeight(int labelHeight)
void
setLabelWidth(int labelWidth)
void
setPaperType(PaperType paperType)
void
setPrintCount(int printCount)
void
setPrintMode(PrintMode printMode)
void
setRotation(int rotation)
void
setSize(int labelWidth, int labelHeight)
void
setSlice(boolean slice)
void
setSpeed(float speed)
void
setTearMode(TearMode tearMode)
void
setxOffset(int xOffset)
void
setyOffset(int yOffset)
-
-
-
方法详细资料
-
setSize
public void setSize(int labelWidth, int labelHeight)
-
isSlice
public boolean isSlice()
-
setSlice
public void setSlice(boolean slice)
-
getPrintMode
public PrintMode getPrintMode()
-
setPrintMode
public void setPrintMode(PrintMode printMode)
-
getExtras
public java.lang.String getExtras()
-
setExtras
public void setExtras(java.lang.String extras)
-
isBitmapShake
public boolean isBitmapShake()
-
setBitmapShake
public void setBitmapShake(boolean bitmapShake)
-
getPrintCount
public int getPrintCount()
-
setPrintCount
public void setPrintCount(int printCount)
-
getLabelWidth
public int getLabelWidth()
-
setLabelWidth
public void setLabelWidth(int labelWidth)
-
getLabelHeight
public int getLabelHeight()
-
setLabelHeight
public void setLabelHeight(int labelHeight)
-
getGap
public int getGap()
-
setGap
public void setGap(int gap)
-
getBlackLineHeight
public int getBlackLineHeight()
-
setBlackLineHeight
public void setBlackLineHeight(int blackLineHeight)
-
getSpeed
public float getSpeed()
-
setSpeed
public void setSpeed(float speed)
-
getDensity
public int getDensity()
-
setDensity
public void setDensity(int density)
-
getRotation
public int getRotation()
-
setRotation
public void setRotation(int rotation)
-
getPaperType
public PaperType getPaperType()
-
setPaperType
public void setPaperType(PaperType paperType)
-
getDpi
public Dpi getDpi()
-
setDpi
public void setDpi(Dpi dpi)
-
isCompressBitmap
public boolean isCompressBitmap()
-
setCompressBitmap
public void setCompressBitmap(boolean compressBitmap)
-
getTearMode
public TearMode getTearMode()
-
setTearMode
public void setTearMode(TearMode tearMode)
-
isBeep
public boolean isBeep()
-
setBeep
public void setBeep(boolean beep)
-
getInstruction
public Instruction getInstruction()
-
setInstruction
public void setInstruction(Instruction instruction)
-
getxOffset
public int getxOffset()
-
setxOffset
public void setxOffset(int xOffset)
-
getyOffset
public int getyOffset()
-
setyOffset
public void setyOffset(int yOffset)
-
-