Home about services products contact login
   com.smardec.asc

Advanced Swing Components

  animatepanel
  autocomplete
  dropdown
  filechooser
  fontchooser
  gradient
  hyperlink
  outlookpanel
  outlookpanel.renderers
  quick
  rotate
  sliderpanel
  spantable
  splashscreen
  statusbar
  table
  table.renderers
  table.wrappers
  tree
  treetable
  util
  xmlbars
  xmlbars.menubar
  xmlbars.toolbar
  xmlbars.toolbar.layouts
com.smardec.asc.table.wrappers
Class DefaultImageWrapper

java.lang.Object
|
+--com.smardec.asc.table.wrappers.DefaultImageWrapper

public class DefaultImageWrapper
extends java.lang.Object

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
DefaultImageWrapper
public 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.

Parameters:
image -
pathToImage -
fitCellRect -
keepAspectRatio -
Method Detail
getImage
public javax.swing.ImageIcon getImage()
Returns image that holds by this wrapper.

Returns:
image that holds by this wrapper.

isKeepAspectRatio
public boolean isKeepAspectRatio()
Returns:
true if image keep aspect ratio, false otherwise.

isFitCellRect
public boolean isFitCellRect()
Indicates whether the image should fit the cell.

Returns:
true if image fit the cell, false otherwise.

getPathToImage
public java.lang.String getPathToImage()
Returns path to image that wrapper keeps.

Returns:
path to image that wrapper keeps.
Home about services products contact login