APIdia Launch Partner
Top Fields Constructors Methods
sun.awt

public Class IconInfo

extends Object
Class Inheritance
Imports
java.awt.*, java.awt.color.*, java.awt.geom.AffineTransform, java.awt.image.*, sun.awt.image.ToolkitImage, .ImageRepresentation, java.util.Arrays, sun.java2d.pipe.Region

Field Summary

Modifier and TypeField and Description
private final int
height

Height of icon image.

private Image
image

Icon image.

private int[]
intIconData

Representation of image as an int array.

private long[]
longIconData

Representation of image as an long array.

private int
rawLength

Length of raw data.

private int
scaledHeight

Height of scaled icon image.

private int
scaledWidth

Width of scaled icon image.

private final int
width

Width of icon image.

Constructor Summary

AccessConstructor and Description
public
IconInfo(int[] intIconData)

public
IconInfo(long[] longIconData)

public
IconInfo(Image image)

Method Summary

Modifier and TypeMethod and Description
public int
public Image
public int[]
public long[]
public int
private int
getScaledRawLength(int w, int h)

private static int[]
getScaledWidthAndHeight(int width, int height)

public int
pack-priv static int[]
imageToIntArray(Image image, int width, int height)

pack-priv static Image
intArrayToImage(int[] raw)

private static long[]
intArrayToLongArray(int[] intData)

public boolean
private static int[]
longArrayToIntArray(long[] longData)

public void
setScaledSize(int width, int height)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

heightback to summary
private final int height

Height of icon image. Being set in constructor.

imageback to summary
private Image image

Icon image.

intIconDataback to summary
private int[] intIconData

Representation of image as an int array. It's used on platforms where icon data is expected to be in 32-bit format.

longIconDataback to summary
private long[] longIconData

Representation of image as an long array. It's used on platforms where icon data is expected to be in 64-bit format.

rawLengthback to summary
private int rawLength

Length of raw data. Being set in constructor / setScaledDimension.

scaledHeightback to summary
private int scaledHeight

Height of scaled icon image. Can be set in setScaledDimension.

scaledWidthback to summary
private int scaledWidth

Width of scaled icon image. Can be set in setScaledDimension.

widthback to summary
private final int width

Width of icon image. Being set in constructor.

Constructor Detail

IconInfoback to summary
public IconInfo(int[] intIconData)
IconInfoback to summary
public IconInfo(long[] longIconData)
IconInfoback to summary
public IconInfo(Image image)

Method Detail

getHeightback to summary
public int getHeight()
getImageback to summary
public Image getImage()
getIntDataback to summary
public int[] getIntData()
getLongDataback to summary
public long[] getLongData()
getRawLengthback to summary
public int getRawLength()
getScaledRawLengthback to summary
private int getScaledRawLength(int w, int h)
getScaledWidthAndHeightback to summary
private static int[] getScaledWidthAndHeight(int width, int height)
getWidthback to summary
public int getWidth()
imageToIntArrayback to summary
pack-priv static int[] imageToIntArray(Image image, int width, int height)
intArrayToImageback to summary
pack-priv static Image intArrayToImage(int[] raw)
intArrayToLongArrayback to summary
private static long[] intArrayToLongArray(int[] intData)
isValidback to summary
public boolean isValid()
longArrayToIntArrayback to summary
private static int[] longArrayToIntArray(long[] longData)
setScaledSizeback to summary
public void setScaledSize(int width, int height)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.