public abstract class ABarCode extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
m_iBarHeight |
protected int |
m_iBarHeightPlus |
protected int |
m_iBarWidth |
protected int |
m_iBorder |
protected int |
m_iFontHeight |
protected int |
m_x |
protected int |
m_y |
Constructor and Description |
---|
ABarCode()
Creates a new instance of ABarCode
|
Modifier and Type | Method and Description |
---|---|
protected int |
char2index(char c) |
Dimension |
getBounds() |
abstract String |
getCode() |
abstract int |
getCodeWidth() |
int |
getHeight() |
int |
getWidth() |
protected char |
index2char(int i) |
boolean |
isOpaque() |
void |
paint(Graphics g) |
void |
paint(Graphics g,
int x,
int y) |
protected abstract void |
paintBars() |
protected void |
paintCharsLow(int[] iWidths) |
protected void |
paintCharsNormal(int[] iWidths) |
protected void |
paintCharsPlus(int[] iWidths) |
protected void |
paintCharsStringDown(String sText,
int iLeft,
int iWidth) |
protected void |
paintCharsStringTop(String sText,
int iLeft,
int iWidth) |
protected abstract void |
paintCode() |
protected void |
paintWhiteArea(int iWidth) |
abstract void |
setCode(String value) |
void |
setOpaque(boolean value) |
protected int m_x
protected int m_y
protected int m_iBarHeight
protected int m_iBarHeightPlus
protected int m_iFontHeight
protected int m_iBarWidth
protected int m_iBorder
public boolean isOpaque()
public void setOpaque(boolean value)
protected void paintWhiteArea(int iWidth)
protected void paintCharsNormal(int[] iWidths)
protected void paintCharsPlus(int[] iWidths)
protected void paintCharsLow(int[] iWidths)
protected void paintCharsStringDown(String sText, int iLeft, int iWidth)
protected void paintCharsStringTop(String sText, int iLeft, int iWidth)
protected int char2index(char c)
protected char index2char(int i)
public void paint(Graphics g)
public void paint(Graphics g, int x, int y)
public Dimension getBounds()
public int getHeight()
public int getWidth()
public abstract void setCode(String value)
public abstract String getCode()
public abstract int getCodeWidth()
protected abstract void paintBars()
protected abstract void paintCode()
Copyright © 2021. All rights reserved.