| jimm.datavision.field.Field jimm.datavision.field.ImageField
ImageField | public class ImageField extends Field (Code) | | Represents an external image. The value instance value
stores the images file's path.
author: Jim Menard, jimm@io.com |
ImageField | public ImageField(Long id, Report report, Section section, Object value, boolean visible)(Code) | | Constructor. We make sure the value (a file path) is an absolute file
path.
Parameters: id - the unique identifier for the new field Parameters: report - the report containing this line Parameters: section - the section containing this line Parameters: value - the value; a file path string Parameters: visible - show/hide flag |
canLoad | public boolean canLoad()(Code) | | |
getHiddenImageIcon | public ImageIcon getHiddenImageIcon()(Code) | | Returns a dimmed version of the the image icon.
a dimmed version of the the image icon |
getImageIcon | public ImageIcon getImageIcon()(Code) | | Returns the image icon, visually dimmed if the field is hidden.
the image icon, dimmed if the field is not visible |
getImageURL | public URL getImageURL()(Code) | | Returns the image URL.
the image URL |
getOutputHeight | public double getOutputHeight()(Code) | | Always returns the bounds height.
|
getVisibleImageIcon | public ImageIcon getVisibleImageIcon()(Code) | | Returns the image icon.
the image icon |
setValue | public void setValue(Object newValue)(Code) | | Sets our value and image URL.
|
|
|