public class AcmeGifFormatter extends AbstractImageFormatter
bufferedImage, layers, propertiesPrefix
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty
Constructor and Description |
---|
AcmeGifFormatter() |
Modifier and Type | Method and Description |
---|---|
byte[] |
formatImage(java.awt.image.BufferedImage bi)
Convert a BufferedImage to a image file format...
|
java.lang.String |
getContentType()
Get the Mime Content Type created by the ImageFormatter.
|
java.lang.String |
getFormatLabel()
Get the Image Type created by the ImageFormatter.
|
java.awt.Graphics |
getGraphics(int width,
int height)
Return the applicable Graphics to use to paint the layers into.
|
protected boolean |
imageFormatSupportAlphaChannel()
Return true if the image format support alpha channel.
|
protected boolean |
imageFormatSupportTransparentPixel()
Return true if the image format support fully transparent pixels.
|
ImageFormatter |
makeClone()
Create a new instance of the same type of formatter.
|
void |
setProperties(java.lang.String prefix,
java.util.Properties props)
Set the properties of the image formatter.
|
getBufferedImage, getGraphics, getGraphics, getImageBytes, getImageFromMapBean, getImageFromMapBean, getImageFromMapBean, getProperties, getPropertyInfo, getPropertyPrefix, getScaledBufferedImage, getScaledImageBytes, propertyChange, setBufferedImage, setProperties, setPropertyPrefix
public void setProperties(java.lang.String prefix, java.util.Properties props)
AbstractImageFormatter
setProperties
in interface ImageFormatter
setProperties
in interface PropertyConsumer
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 ImageFormatter makeClone()
AbstractImageFormatter
makeClone
in interface ImageFormatter
makeClone
in class AbstractImageFormatter
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()
public java.awt.Graphics getGraphics(int width, int height)
getGraphics
in interface ImageFormatter
getGraphics
in class AbstractImageFormatter
width
- pixel width of Graphics.height
- pixel height of Graphics.BufferedImage
public java.lang.String getContentType()
ImageFormatter
protected boolean imageFormatSupportAlphaChannel()
AbstractImageFormatter
imageFormatSupportAlphaChannel
in class AbstractImageFormatter
protected boolean imageFormatSupportTransparentPixel()
AbstractImageFormatter
imageFormatSupportTransparentPixel
in class AbstractImageFormatter
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details