|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.ucla.stat.SOCR.util.tablemodels.wrappers.DefaultImageWrapper
public class DefaultImageWrapper
DefaultImageWrapper
class is used by DefaultImageCellRenderer
as a container for image and its properties.
Constructor Summary | |
---|---|
DefaultImageWrapper(javax.swing.ImageIcon image,
java.lang.String pathToImage,
boolean fitCellRect,
boolean keepAspectRatio)
Constructs a DefaultImageWrapper with the specified image, path to image, fitCellRect
and keepAspectRatio properties. |
Method Summary | |
---|---|
javax.swing.ImageIcon |
getImage()
Returns image that holds by this wrapper. |
java.lang.String |
getPathToImage()
Returns path to image that wrapper keeps. |
boolean |
isFitCellRect()
Indicates whether the image should fit the cell. |
boolean |
isKeepAspectRatio()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultImageWrapper(javax.swing.ImageIcon image, java.lang.String pathToImage, boolean fitCellRect, boolean keepAspectRatio)
DefaultImageWrapper
with the specified image, path to image, fitCellRect
and keepAspectRatio properties.
image
- pathToImage
- fitCellRect
- keepAspectRatio
- Method Detail |
---|
public javax.swing.ImageIcon getImage()
public boolean isKeepAspectRatio()
true
if image keep aspect ratio, false
otherwise.public boolean isFitCellRect()
true
if image fit the cell, false
otherwise.public java.lang.String getPathToImage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |