public class CustomImageIcon extends ImageIcon
ImageIcon.AccessibleImageIcon| Modifier and Type | Field and Description |
|---|---|
protected boolean |
displaySingle
used to tell praint method if we are displaying in single page mode,
if so we rotate here, if not rotate is handled elsewhere.
|
protected int |
iconHeight |
protected int |
iconOpp |
protected int |
iconRotation |
protected int |
iconWidth |
protected static float |
MAXSCALEFACTOR
the maximum scaling factor difference between the rootImage and the current Form dimentions
|
protected int |
pageRotate
the page rotation required for this image
|
| Constructor and Description |
|---|
CustomImageIcon(int iconRot) |
| Modifier and Type | Method and Description |
|---|---|
int |
getIconHeight() |
int |
getIconWidth() |
void |
setAttributes(int newWidth,
int newHeight,
int pageRotation,
boolean displaySing) |
static void |
setMaxScaleFactor(float scaleFactor)
sets the scaling factor that the image has to change by before the root images are redraw to the current sizes.
|
protected static int |
validateRotationValue(int rotation) |
getAccessibleContext, getDescription, getImage, getImageLoadStatus, getImageObserver, loadImage, paintIcon, setDescription, setImage, setImageObserver, toStringprotected static float MAXSCALEFACTOR
protected int iconWidth
protected int iconHeight
protected final int iconRotation
protected int iconOpp
protected int pageRotate
protected boolean displaySingle
public static void setMaxScaleFactor(float scaleFactor)
public void setAttributes(int newWidth,
int newHeight,
int pageRotation,
boolean displaySing)
protected static int validateRotationValue(int rotation)
public int getIconHeight()
getIconHeight in interface IcongetIconHeight in class ImageIconpublic int getIconWidth()
getIconWidth in interface IcongetIconWidth in class ImageIconCopyright © 2017. All rights reserved.