public class ReadOnlyTextIcon extends CustomImageIcon implements SwingConstants
ImageIcon.AccessibleImageIcondisplaySingle, iconHeight, iconOpp, iconRotation, iconWidth, MAXSCALEFACTOR, pageRotateBOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST| Constructor and Description |
|---|
ReadOnlyTextIcon(PdfObject form,
int iconRot,
PdfObjectReader pdfObjectReader,
PdfObject res)
new code to store the data to create the image when needed to the size needed
offset = if 0 no change, 1 offset image, 2 invert image
NOTE if decipherAppObject ios not called this will cause problems. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
decipherAppObject(FormObject form)
decodes and saves all information needed to decode the object on the fly,
the test and font can be altered with specific methods.
|
BufferedImage |
drawToBufferedImage()
draws the form to a BufferedImage the size of the Icon and returns it,
uses the paintIcon method for the drawing so future changes should only be in one place
|
PdfObject |
getFakeObject() |
Image |
getImage()
returns the currently selected Image
|
void |
paintIcon(Component c,
Graphics g,
int x,
int y) |
void |
setAlignment(int alignment) |
void |
setPrinting(boolean print,
int multiplier)
generates higher quality images
|
void |
setText(String str) |
getIconHeight, getIconWidth, setAttributes, setMaxScaleFactor, validateRotationValuegetAccessibleContext, getDescription, getImageLoadStatus, getImageObserver, loadImage, setDescription, setImage, setImageObserver, toStringpublic ReadOnlyTextIcon(PdfObject form, int iconRot, PdfObjectReader pdfObjectReader, PdfObject res)
public Image getImage()
public BufferedImage drawToBufferedImage()
public void setText(String str)
public boolean decipherAppObject(FormObject form)
public void setAlignment(int alignment)
public void setPrinting(boolean print,
int multiplier)
public PdfObject getFakeObject()
Copyright © 2017. All rights reserved.