|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Canvas | +--com.java4less.rss.BarCode | +--com.java4less.rss.RSS
Class used to create RSS symbols (not expanded or limited) with or without 2D component. This is a canvas object where the barcode will be painted. Example of use:
RSS r=new RSS(); r.setRSSFormat(RSS.r.FORMAT_REGULAR); r.setCode("2001234567890"); // do not include the application identitifer 01 r.setSize(300,300); new ImageEncoder(r,"JPEG","c:\\barcode.jpg"); Example with CC component: RSS r=new RSS(); r.setCode("0341234567890"); r.setSecondaryCode("17010200"); // this forces the CC component to be created. r.setRSSFormat(r.FORMAT_STACKED); r.setSize(300,300); new ImageEncoder(r,"JPEG","c:\\barcode.jpg");
Field Summary | |
static int |
FORMAT_EXPANDED
this format is used by the RSSExpanded class only. |
static int |
FORMAT_EXPANDED_STACKED
this format is used by the RSSExpanded class only. |
static int |
FORMAT_LIMITED
this format is used by the RSSLimited class only. |
static int |
FORMAT_REGULAR
|
static int |
FORMAT_STACKED
|
static int |
FORMAT_STACKED_OMNIDIRECTIONAL
|
static int |
FORMAT_TRUNCATED
|
Fields inherited from class com.java4less.rss.BarCode |
EAN128, EAN13, EAN8, H, L, RSS14, RSSEXPANDED, RSSLIMITED, UPCA, UPCE |
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 | |
RSS()
|
Method Summary | |
int |
getRSSFormat()
which format to use, the default is FORMAT_REGULAR |
void |
setRSSFormat(int f)
which format to use, the default is FORMAT_REGULAR |
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, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, 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, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, 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 |
public static int FORMAT_REGULAR
public static int FORMAT_TRUNCATED
public static int FORMAT_STACKED
public static int FORMAT_STACKED_OMNIDIRECTIONAL
public static int FORMAT_LIMITED
public static int FORMAT_EXPANDED
public static int FORMAT_EXPANDED_STACKED
Constructor Detail |
public RSS()
Method Detail |
public int getRSSFormat()
public void setRSSFormat(int f)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |