|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bbn.openmap.image.AbstractImageFormatter
com.bbn.openmap.image.AcmeGifFormatter
This formatter requires the Acme.JPM.Encoders package. That code can be found at http://www.acme.com/java .
Field Summary |
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 | |
AcmeGifFormatter()
|
Method Summary | |
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. |
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. |
Methods inherited from class com.bbn.openmap.image.AbstractImageFormatter |
getBufferedImage, 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 |
Constructor Detail |
public AcmeGifFormatter()
Method Detail |
public void setProperties(java.lang.String prefix, java.util.Properties props)
AbstractImageFormatter
setProperties
in interface ImageFormatter
setProperties
in class AbstractImageFormatter
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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |