Class PreviewIcon
java.lang.Object
com.xinapse.image.PreviewIcon
- All Implemented Interfaces:
Icon
-
Constructor Summary
ConstructorsConstructorDescriptionPreviewIcon(String imageTypeString, int nCols, int nRows, int nSlices, int nFrames) Create a PreviewIcon without a preview of the image.PreviewIcon(String imageTypeString, ReadableImage image) Create a PreviewIcon with a preview of the image. -
Method Summary
-
Constructor Details
-
PreviewIcon
Create a PreviewIcon without a preview of the image.- Parameters:
imageTypeString- a String describing the image type (e.g., "UNC").nCols- the number of image columns.nRows- the number of image rows.nSlices- the number of image slice.nFrames- the number of image frames.
-
PreviewIcon
Create a PreviewIcon with a preview of the image.- Parameters:
imageTypeString- a String describing the image type (e.g., "UNC").image- the image to preview.
-
-
Method Details
-
getIconWidth
-
getIconHeight
-
getPreferredSize
Returns the icon's preferred size.- Returns:
- the icon's preferred size.
-
paintIcon
-
toString
-