com.java4less.rss
Class RSS

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Canvas
              |
              +--com.java4less.rss.BarCode
                    |
                    +--com.java4less.rss.RSS
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable
Direct Known Subclasses:
RSSLimited

public class RSS
extends BarCode

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");
  

See Also:
Serialized Form

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 com.java4less.rss.BarCode
barHeight2D, getBackColor, getBarColor, getBarHeight, getBarHeight2D, getBarType, getCCCColumns, getCode, getEAN128WithCCC, getEANUPCPrintFlag, getFontColor, getGuardBars, getH, getHumanReadableCode, getLeftMargin, getName, getProcessTilde, getRotate, getSecondaryCode, getSupHeight, getSuplement, getSupSeparation, getSymbology, getTextFont, getTopMargin, getUPCEANSupplement2, getUPCEANSupplement5, getUPCESytem, getX, paint, setBackColor, setBarColor, setBarHeight, setBarType, setCCCColumns, setCode, setEAN128WithCCC, setEANUPCPrintFlag, setFontColor, setGuardBars, setH, setHumanReadableCode, setLeftMargin, setProcessTilde, setRotate, setSecondaryCode, setSupHeight, setSuplement, setSupSeparation, setSymbology, setTextFont, setTopMargin, setUPCEANSupplement2, setUPCEANSupplement5, setUPCESytem, setX
 
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

FORMAT_REGULAR

public static int FORMAT_REGULAR

FORMAT_TRUNCATED

public static int FORMAT_TRUNCATED

FORMAT_STACKED

public static int FORMAT_STACKED

FORMAT_STACKED_OMNIDIRECTIONAL

public static int FORMAT_STACKED_OMNIDIRECTIONAL

FORMAT_LIMITED

public static int FORMAT_LIMITED
this format is used by the RSSLimited class only.


FORMAT_EXPANDED

public static int FORMAT_EXPANDED
this format is used by the RSSExpanded class only.


FORMAT_EXPANDED_STACKED

public static int FORMAT_EXPANDED_STACKED
this format is used by the RSSExpanded class only.

Constructor Detail

RSS

public RSS()
Method Detail

getRSSFormat

public int getRSSFormat()
which format to use, the default is FORMAT_REGULAR


setRSSFormat

public void setRSSFormat(int f)
which format to use, the default is FORMAT_REGULAR