com.businessrefinery.barcode.linear
Class Linear

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Canvas
          extended by com.businessrefinery.barcode.linear.Linear
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible

public class Linear
extends java.awt.Canvas
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
 boolean autoSize
           
 java.awt.Color backColor
           
 java.awt.Color barColor
           
 double barHeightCM
           
 int barType
           
 boolean checkCharacter
           
 boolean checkCharacterInText
           
static int CODABAR
           
 char CODABARStartChar
           
 char CODABARStopChar
           
 java.lang.String code
           
static int CODE11
           
static int CODE128
           
 char Code128Set
           
static int CODE39
           
static int CODE39EXT
           
static int CODE93
           
static int CODE93EXT
           
 java.lang.String codeText
           
static int EAN13
           
static int EAN8
           
 double fBearerBarHori
           
 double fBearerBarVert
           
 java.awt.Color fontColor
           
 boolean guardBars
           
 double H
           
 int height
           
 double I
           
static int IND25
           
static int INTERLEAVED25
           
 double L
           
 double leftMarginCM
           
static int MAT25
           
static int MSI
           
 double N
           
static int ONECODE
           
 int pHeight
           
static int PLANET
           
static int POSTNET
           
 double postnetHeightShortBar
           
 double postnetHeightTallBar
           
 boolean processTilde
           
 int pWidth
           
 int resolution
           
 int rotate
           
 boolean showText
           
 double supHeight
           
 java.lang.String supplement
           
 double supSeparationCM
           
 java.awt.Font textFont
           
 double textMarginCM
           
 double topMarginCM
           
static int UCC128
           
static int UPCA
           
static int UPCE
           
 boolean UPCEANSupplement2
           
 boolean UPCEANSupplement5
           
 char UPCESytem
           
 float WhiteBarIncrease
           
 int width
           
 double X
           
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
Linear()
           
 
Method Summary
 boolean getAutoSize()
           
 java.awt.Color getBackground()
           
 double getBarHeightCM()
           
 double getBearerBarHorizontal()
           
 double getBearerBarVertical()
           
 int getCharacterGrouping()
           
 boolean getCheckCharacter()
           
 boolean getCheckCharacterInText()
           
 java.lang.String getCODABARStartChar()
           
 java.lang.String getCODABARStopChar()
           
 java.lang.String getCode128Set()
           
 java.lang.String getDataToEncode()
           
 java.awt.Font getFont()
           
 java.awt.Color getForeground()
           
 double getLeftMarginCM()
           
 java.awt.Dimension getMinimumSize()
           
 double getNarrowToWideRatio()
           
 int getPixelsPerCM()
           
 double getPostnetHeightShort()
           
 double getPostnetHeightTall()
           
 java.awt.Dimension getPreferredSize()
           
 boolean getProcessTilde()
           
 int getRotationAngle()
           
 boolean getShowText()
           
 java.lang.String getSupplementToEncode()
           
 int getSymbologyID()
           
 java.awt.Color getTextFontColor()
           
 double getTextMarginCM()
           
 double getTopMarginCM()
           
 boolean getUPCEANSupplement2()
           
 boolean getUPCEANSupplement5()
           
 java.lang.String getUPCESytem()
           
 float getWhiteBarIncrease()
           
 double getXDimensionCM()
           
 void paint(java.awt.Graphics g)
           
 void setAutoSize(boolean flag)
           
 void setBackground(java.awt.Color color)
           
 void setBarHeightCM(double d1)
           
 void setBearerBarHorizontal(double d1)
           
 void setBearerBarVertical(double d1)
           
 void setCharacterGrouping(int i)
           
 void setCheckCharacter(boolean flag)
           
 void setCheckCharacterInText(boolean flag)
           
 void setCODABARStartChar(java.lang.String s)
           
 void setCODABARStopChar(java.lang.String s)
           
 void setCode128Set(java.lang.String s)
           
 void setDataToEncode(java.lang.String s)
           
 void setFont(java.awt.Font font)
           
 void setForeground(java.awt.Color color)
           
 void setLeftMarginCM(double d1)
           
 void setNarrowToWideRatio(double d1)
           
 void setPixelsPerCM(int i)
           
 void setPostnetHeightShort(double d1)
           
 void setPostnetHeightTall(double d1)
           
 void setProcessTilde(boolean flag)
           
 void setRotationAngle(int i)
           
 void setShowText(boolean flag)
           
 void setSupplementToEncode(java.lang.String s)
           
 void setSymbologyID(int i)
           
 void setTextFontColor(java.awt.Color color)
           
 void setTextMarginCM(double d1)
           
 void setTopMarginCM(double d1)
           
 void setUPCEANSupplement2(boolean flag)
           
 void setUPCEANSupplement5(boolean flag)
           
 void setUPCESytem(java.lang.String s)
           
 void setWhiteBarIncrease(float f)
           
 void setXDimensionCM(double d1)
           
 
Methods inherited from class java.awt.Canvas
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy, update
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFontMetrics, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CODE39

public static final int CODE39
See Also:
Constant Field Values

CODE39EXT

public static final int CODE39EXT
See Also:
Constant Field Values

INTERLEAVED25

public static final int INTERLEAVED25
See Also:
Constant Field Values

CODE11

public static final int CODE11
See Also:
Constant Field Values

CODABAR

public static final int CODABAR
See Also:
Constant Field Values

MSI

public static final int MSI
See Also:
Constant Field Values

UPCA

public static final int UPCA
See Also:
Constant Field Values

IND25

public static final int IND25
See Also:
Constant Field Values

MAT25

public static final int MAT25
See Also:
Constant Field Values

CODE93

public static final int CODE93
See Also:
Constant Field Values

EAN13

public static final int EAN13
See Also:
Constant Field Values

EAN8

public static final int EAN8
See Also:
Constant Field Values

UPCE

public static final int UPCE
See Also:
Constant Field Values

CODE128

public static final int CODE128
See Also:
Constant Field Values

CODE93EXT

public static final int CODE93EXT
See Also:
Constant Field Values

POSTNET

public static final int POSTNET
See Also:
Constant Field Values

PLANET

public static final int PLANET
See Also:
Constant Field Values

UCC128

public static final int UCC128
See Also:
Constant Field Values

ONECODE

public static final int ONECODE
See Also:
Constant Field Values

barType

public int barType

code

public java.lang.String code

textMarginCM

public double textMarginCM

checkCharacter

public boolean checkCharacter

checkCharacterInText

public boolean checkCharacterInText

processTilde

public boolean processTilde

postnetHeightTallBar

public double postnetHeightTallBar

postnetHeightShortBar

public double postnetHeightShortBar

leftMarginCM

public double leftMarginCM

topMarginCM

public double topMarginCM

supplement

public java.lang.String supplement

guardBars

public boolean guardBars

backColor

public java.awt.Color backColor

codeText

public java.lang.String codeText

resolution

public int resolution

barHeightCM

public double barHeightCM

width

public int width

height

public int height

pWidth

public int pWidth

pHeight

public int pHeight

autoSize

public boolean autoSize

showText

public boolean showText

textFont

public java.awt.Font textFont

fontColor

public java.awt.Color fontColor

barColor

public java.awt.Color barColor

UPCESytem

public char UPCESytem

CODABARStartChar

public char CODABARStartChar

CODABARStopChar

public char CODABARStopChar

UPCEANSupplement2

public boolean UPCEANSupplement2

UPCEANSupplement5

public boolean UPCEANSupplement5

Code128Set

public char Code128Set

X

public double X

N

public double N

I

public double I

H

public double H

L

public double L

rotate

public int rotate

supSeparationCM

public double supSeparationCM

supHeight

public double supHeight

WhiteBarIncrease

public float WhiteBarIncrease

fBearerBarVert

public double fBearerBarVert

fBearerBarHori

public double fBearerBarHori
Constructor Detail

Linear

public Linear()
Method Detail

setSymbologyID

public void setSymbologyID(int i)

getSymbologyID

public int getSymbologyID()

setDataToEncode

public void setDataToEncode(java.lang.String s)

getDataToEncode

public java.lang.String getDataToEncode()

setTextMarginCM

public void setTextMarginCM(double d1)

getTextMarginCM

public double getTextMarginCM()

setCheckCharacter

public void setCheckCharacter(boolean flag)

getCheckCharacter

public boolean getCheckCharacter()

setCheckCharacterInText

public void setCheckCharacterInText(boolean flag)

getCheckCharacterInText

public boolean getCheckCharacterInText()

getProcessTilde

public boolean getProcessTilde()

setProcessTilde

public void setProcessTilde(boolean flag)

setPostnetHeightTall

public void setPostnetHeightTall(double d1)

getPostnetHeightTall

public double getPostnetHeightTall()

setPostnetHeightShort

public void setPostnetHeightShort(double d1)

getPostnetHeightShort

public double getPostnetHeightShort()

setLeftMarginCM

public void setLeftMarginCM(double d1)

getLeftMarginCM

public double getLeftMarginCM()

setTopMarginCM

public void setTopMarginCM(double d1)

getTopMarginCM

public double getTopMarginCM()

setSupplementToEncode

public void setSupplementToEncode(java.lang.String s)

getSupplementToEncode

public java.lang.String getSupplementToEncode()

setBackground

public void setBackground(java.awt.Color color)
Overrides:
setBackground in class java.awt.Component

getBackground

public java.awt.Color getBackground()
Overrides:
getBackground in class java.awt.Component

setPixelsPerCM

public void setPixelsPerCM(int i)

getPixelsPerCM

public int getPixelsPerCM()

setBarHeightCM

public void setBarHeightCM(double d1)

getBarHeightCM

public double getBarHeightCM()

setAutoSize

public void setAutoSize(boolean flag)

getAutoSize

public boolean getAutoSize()

getPreferredSize

public java.awt.Dimension getPreferredSize()
Overrides:
getPreferredSize in class java.awt.Component

getMinimumSize

public java.awt.Dimension getMinimumSize()
Overrides:
getMinimumSize in class java.awt.Component

setShowText

public void setShowText(boolean flag)

getShowText

public boolean getShowText()

setFont

public void setFont(java.awt.Font font)
Overrides:
setFont in class java.awt.Component

getFont

public java.awt.Font getFont()
Specified by:
getFont in interface java.awt.MenuContainer
Overrides:
getFont in class java.awt.Component

setTextFontColor

public void setTextFontColor(java.awt.Color color)

getTextFontColor

public java.awt.Color getTextFontColor()

setForeground

public void setForeground(java.awt.Color color)
Overrides:
setForeground in class java.awt.Component

getForeground

public java.awt.Color getForeground()
Overrides:
getForeground in class java.awt.Component

setUPCESytem

public void setUPCESytem(java.lang.String s)

getUPCESytem

public java.lang.String getUPCESytem()

setCODABARStartChar

public void setCODABARStartChar(java.lang.String s)

getCODABARStartChar

public java.lang.String getCODABARStartChar()

setCODABARStopChar

public void setCODABARStopChar(java.lang.String s)

getCODABARStopChar

public java.lang.String getCODABARStopChar()

setUPCEANSupplement2

public void setUPCEANSupplement2(boolean flag)

getUPCEANSupplement2

public boolean getUPCEANSupplement2()

setUPCEANSupplement5

public void setUPCEANSupplement5(boolean flag)

getUPCEANSupplement5

public boolean getUPCEANSupplement5()

setCode128Set

public void setCode128Set(java.lang.String s)

getCode128Set

public java.lang.String getCode128Set()

setXDimensionCM

public void setXDimensionCM(double d1)

getXDimensionCM

public double getXDimensionCM()

setNarrowToWideRatio

public void setNarrowToWideRatio(double d1)

getNarrowToWideRatio

public double getNarrowToWideRatio()

setRotationAngle

public void setRotationAngle(int i)

getRotationAngle

public int getRotationAngle()

setWhiteBarIncrease

public void setWhiteBarIncrease(float f)

getWhiteBarIncrease

public float getWhiteBarIncrease()

setCharacterGrouping

public void setCharacterGrouping(int i)

getCharacterGrouping

public int getCharacterGrouping()

setBearerBarVertical

public void setBearerBarVertical(double d1)

getBearerBarVertical

public double getBearerBarVertical()

setBearerBarHorizontal

public void setBearerBarHorizontal(double d1)

getBearerBarHorizontal

public double getBearerBarHorizontal()

paint

public void paint(java.awt.Graphics g)
Overrides:
paint in class java.awt.Canvas