PDF Clown
0.0.8

it.stefanochizzolini.clown.documents.contents.entities
Class EAN13Barcode

java.lang.Object
  extended by it.stefanochizzolini.clown.documents.contents.entities.Entity
      extended by it.stefanochizzolini.clown.documents.contents.entities.Barcode
          extended by it.stefanochizzolini.clown.documents.contents.entities.EAN13Barcode
All Implemented Interfaces:
IContentEntity

public class EAN13Barcode
extends Barcode

EAN-13 Bar Code object [GS1:7.1:5.1.1.3.1].

The EAN-13 Bar Code Symbol shall be made up as follows, reading from left to right:

  1. A left Quiet Zone
  2. A normal Guard Bar Pattern (Left Guard)
  3. Six symbol characters from number sets A and B (Left Half)
  4. A center Guard Bar Pattern (Center Guard)
  5. Six symbol characters from number set C (Right Half)
  6. A normal Guard Bar Pattern (Right Guard)
  7. A right Quiet Zone

The rightmost symbol character shall encode the Check Digit.

Since:
0.0.6
Version:
0.0.8
Author:
Stefano Chizzolini (http://www.stefanochizzolini.it)

Field Summary
 
Fields inherited from class it.stefanochizzolini.clown.documents.contents.entities.Barcode
code
 
Constructor Summary
EAN13Barcode(String code)
           
 
Method Summary
 ContentObject toInlineObject(PrimitiveFilter context)
          Converts the entity to its equivalent inline (dependent) object representation [PDF:1.6:4.8.6].
 XObject toXObject(Document context)
          Converts the entity to its equivalent external (independent) object representation [PDF:1.6:4.7].
 
Methods inherited from class it.stefanochizzolini.clown.documents.contents.entities.Barcode
getCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EAN13Barcode

public EAN13Barcode(String code)
Method Detail

toInlineObject

public ContentObject toInlineObject(PrimitiveFilter context)
Description copied from interface: IContentEntity
Converts the entity to its equivalent inline (dependent) object representation [PDF:1.6:4.8.6].

Remarks

This method creates and shows an inline object within the target content context, returning it.

Due to its direct-content nature (opposite to the indirect-content nature of external objects (see IContentEntity.toXObject(Document))), the resulting object should be shown only one time in order not to wastefully duplicate its data.

Specified by:
toInlineObject in interface IContentEntity
Specified by:
toInlineObject in class Entity
Parameters:
context - Target content context.
Returns:
The inline object representing the entity.

toXObject

public XObject toXObject(Document context)
Description copied from interface: IContentEntity
Converts the entity to its equivalent external (independent) object representation [PDF:1.6:4.7].

Remarks

This method creates an external object within the target document, returning it. To show it in a content context (for example: a page), then it must be applied in an appropriate manner (see PrimitiveFilter object).

Specified by:
toXObject in interface IContentEntity
Specified by:
toXObject in class Entity
Parameters:
context - Target document.
Returns:
The external object representing the entity.

PDF Clown
0.0.8

Project home page

Copyright © 2006-2010 Stefano Chizzolini. Some Rights Reserved.
This documentation is available under the terms of the GNU Free Documentation License.