Package com.openhtmltopdf.objects.zxing
Class ZXingObjectDrawer
java.lang.Object
com.openhtmltopdf.objects.zxing.ZXingObjectDrawer
- All Implemented Interfaces:
FSObjectDrawer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondrawObject
(Element e, double x, double y, double width, double height, OutputDevice outputDevice, RenderingContext ctx, int dotsPerPixel) Perform your drawing.private static Object
handleValueForHint
(com.google.zxing.EncodeHintType type, String value) private static int
private static com.google.zxing.EncodeHintType
safeEncodeHintTypeValueOf
(String value) private static com.google.zxing.datamatrix.encoder.SymbolShapeHint
safeSymbolShapeHint
(String value)
-
Constructor Details
-
ZXingObjectDrawer
public ZXingObjectDrawer()
-
-
Method Details
-
handleValueForHint
-
safeSymbolShapeHint
private static com.google.zxing.datamatrix.encoder.SymbolShapeHint safeSymbolShapeHint(String value) -
safeEncodeHintTypeValueOf
-
parseInt
-
drawObject
public Map<Shape,String> drawObject(Element e, double x, double y, double width, double height, OutputDevice outputDevice, RenderingContext ctx, int dotsPerPixel) Description copied from interface:FSObjectDrawer
Perform your drawing.- Specified by:
drawObject
in interfaceFSObjectDrawer
- Returns:
- null or a map of Shape => URL-String to annotate the drawing with links. The shapes must be relative to (x,y), i.e. (0,0) is at the corner (x,y). Also they should not extend (width,height). The links are only exported into the PDF and also only respected by Acrobat Reader.
-