|
||||||||||
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.ImageIOFormatter
com.bbn.openmap.image.PNG8ImageFormatter
public class PNG8ImageFormatter
Field Summary |
---|
Fields inherited from class com.bbn.openmap.image.ImageIOFormatter |
---|
formatName |
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 | |
---|---|
PNG8ImageFormatter()
|
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. |
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. |
Methods inherited from class com.bbn.openmap.image.ImageIOFormatter |
---|
getFormatName, setFormatName |
Methods inherited from class com.bbn.openmap.image.AbstractImageFormatter |
---|
getBufferedImage, getGraphics, getGraphics, getImageBytes, getImageFromMapBean, getImageFromMapBean, getImageFromMapBean, getProperties, getPropertyInfo, getPropertyPrefix, getScaledBufferedImage, getScaledImageBytes, propertyChange, setBufferedImage, setProperties, setProperties, setPropertyPrefix |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PNG8ImageFormatter()
Method Detail |
---|
public byte[] formatImage(java.awt.image.BufferedImage bi)
AbstractImageFormatter
formatImage
in interface ImageFormatter
formatImage
in class ImageIOFormatter
bi
- a BufferedImage..public java.awt.Graphics getGraphics(int width, int height)
ImageIOFormatter
getGraphics
in interface ImageFormatter
getGraphics
in class ImageIOFormatter
width
- pixel width of Graphics.height
- pixel height of Graphics.
BufferedImage
public ImageFormatter makeClone()
AbstractImageFormatter
makeClone
in interface ImageFormatter
makeClone
in class AbstractImageFormatter
public java.lang.String getContentType()
ImageFormatter
public java.lang.String getFormatLabel()
ImageFormatter
protected boolean imageFormatSupportAlphaChannel()
AbstractImageFormatter
imageFormatSupportAlphaChannel
in class AbstractImageFormatter
protected boolean imageFormatSupportTransparentPixel()
AbstractImageFormatter
imageFormatSupportTransparentPixel
in class AbstractImageFormatter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |