|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bbn.openmap.image.AbstractImageFormatter | +--com.bbn.openmap.image.AcmeJPEGFormatter
This formatter requires the Acme.JPM.Encoders package. That code can be found at http://www.acme.com/java .
Field Summary | |
static int |
DEFAULT_IMAGE_QUALITY
|
protected int |
imageQuality
The quality number is between 1-100. |
static java.lang.String |
QualityProperty
|
Fields inherited from class com.bbn.openmap.image.AbstractImageFormatter |
bufferedImage, layers, propertiesPrefix |
Fields inherited from interface com.bbn.openmap.PropertyConsumer |
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty |
Constructor Summary | |
AcmeJPEGFormatter()
|
Method Summary | |
byte[] |
formatImage(java.awt.image.BufferedImage bi)
Convert a BufferedImage to a image file format... |
java.lang.String |
getFormatLabel()
Get the Image Type created by the ImageFormatter. |
int |
getImageQuality()
|
ImageFormatter |
makeClone()
Create a new instance of the same type of formatter. |
void |
setImageQuality(int quality)
For this formatter, image quality is a number in the 1-100 range. |
void |
setProperties(java.lang.String prefix,
java.util.Properties props)
Set the properties of the image formatter. |
Methods inherited from class com.bbn.openmap.image.AbstractImageFormatter |
getBufferedImage, getGraphics, getGraphics, getImageBytes, getImageFromMapBean, getImageFromMapBean, getImageFromMapBean, getProperties, getPropertyInfo, getPropertyPrefix, getScaledBufferedImage, getScaledImageBytes, propertyChange, setBufferedImage, setProperties, setPropertyPrefix |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String QualityProperty
public static final int DEFAULT_IMAGE_QUALITY
protected int imageQuality
Constructor Detail |
public AcmeJPEGFormatter()
Method Detail |
public ImageFormatter makeClone()
AbstractImageFormatter
makeClone
in interface ImageFormatter
makeClone
in class AbstractImageFormatter
public void setProperties(java.lang.String prefix, java.util.Properties props)
AbstractImageFormatter
setProperties
in interface ImageFormatter
setProperties
in class AbstractImageFormatter
prefix
- a String used by the PropertyConsumer to prepend
to each property value it wants to look up -
setList.getProperty(prefix.propertyKey). If the prefix
had already been set, then the prefix passed in should
replace that previous value.props
- a Properties object that the PropertyConsumer
can use to retrieve expected properties it can use for
configuration.public int getImageQuality()
public void setImageQuality(int quality)
public byte[] formatImage(java.awt.image.BufferedImage bi)
AbstractImageFormatter
formatImage
in interface ImageFormatter
formatImage
in class AbstractImageFormatter
bi
- a BufferedImage..public java.lang.String getFormatLabel()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |