public class FixImageIcon 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 |
|---|
FixImageIcon(PdfObject formObject,
BufferedImage img,
int iconRot)
constructor to be used for one image
|
FixImageIcon(PdfObject formObject,
PdfObject imgObj,
int iconRot,
PdfObjectReader pdfObjectReader,
int type,
int offset)
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
|
FixImageIcon(PdfObject formObject,
PdfObject selObject,
PdfObject unselObject,
int iconRot,
int sel,
PdfObjectReader pdfObjectReader,
int type,
int offset)
new code that stores the data to create the image at the defined size needed.
|
| Modifier and Type | Method and Description |
|---|---|
Image |
getImage()
returns the currently selected Image
|
void |
paintIcon(Component c,
Graphics g,
int x,
int y) |
void |
setPrinting(boolean print,
int multiplier)
generates higher quality images
|
void |
swapImage(boolean selectedImage)
if this imageicon was constructed for use with one image this will do nothing,
otherwise it will set the selected image to be the selected image if the flag is true or the unseleced image if the flag is false. |
getIconHeight, getIconWidth, setAttributes, setMaxScaleFactor, validateRotationValuegetAccessibleContext, getDescription, getImageLoadStatus, getImageObserver, loadImage, setDescription, setImage, setImageObserver, toStringpublic FixImageIcon(PdfObject formObject, BufferedImage img, int iconRot)
public FixImageIcon(PdfObject formObject, PdfObject imgObj, int iconRot, PdfObjectReader pdfObjectReader, int type, int offset)
public FixImageIcon(PdfObject formObject, PdfObject selObject, PdfObject unselObject, int iconRot, int sel, PdfObjectReader pdfObjectReader, int type, int offset)
public Image getImage()
public void swapImage(boolean selectedImage)
public void setPrinting(boolean print,
int multiplier)
Copyright © 2017. All rights reserved.