com.mizar.metadata.mapviewer
Class CustomizedMapImage

java.lang.Object
  extended by com.mizar.metadata.mapviewer.CustomizedMapImage

public abstract class CustomizedMapImage
extends java.lang.Object


Field Summary
protected  java.lang.String attentionMsg
           
protected  java.lang.Integer dpi
           
protected  java.awt.image.BufferedImage ibuf
           
protected  java.awt.Image image
           
protected  java.lang.String imageFormat
           
protected  double[] mapBounds
           
protected  java.io.File oFile
           
protected  java.lang.String outputFileName
           
protected  java.lang.String title
           
 
Constructor Summary
CustomizedMapImage(java.lang.String title, java.lang.String outfile, java.lang.Integer dpi, java.lang.String imgFormat)
           
 
Method Summary
protected abstract  void buildCustomImage(java.lang.Integer pxWidth, java.lang.Integer pxHeight)
           
protected  float dpiFactor()
           
 java.lang.Integer getDpi()
           
 java.awt.Image getImage()
           
 java.lang.String getImageFormat()
           
 double[] getMapBounds()
           
 java.lang.String getOutputFileName()
           
 java.lang.String getTitle()
           
 java.lang.String run()
           
protected  void saveCustomImage()
           
protected  javax.imageio.metadata.IIOMetadata setDPI_JPG(javax.imageio.metadata.IIOMetadata metadata)
           
protected  javax.imageio.metadata.IIOMetadata setDPI_PNG(javax.imageio.metadata.IIOMetadata metadata)
           
 void setDpi(java.lang.Integer dpi)
           
 void setImage(java.awt.Image image)
           
 void setImageFormat(java.lang.String imageFormat)
           
 void setMapBounds(double[] mapBounds)
           
 void setOutputFileName(java.lang.String outputFileName)
           
 void setTitle(java.lang.String title)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ibuf

protected java.awt.image.BufferedImage ibuf

image

protected java.awt.Image image

dpi

protected java.lang.Integer dpi

outputFileName

protected java.lang.String outputFileName

oFile

protected java.io.File oFile

imageFormat

protected java.lang.String imageFormat

mapBounds

protected double[] mapBounds

attentionMsg

protected java.lang.String attentionMsg

title

protected java.lang.String title
Constructor Detail

CustomizedMapImage

public CustomizedMapImage(java.lang.String title,
                          java.lang.String outfile,
                          java.lang.Integer dpi,
                          java.lang.String imgFormat)
Method Detail

run

public java.lang.String run()

dpiFactor

protected float dpiFactor()

buildCustomImage

protected abstract void buildCustomImage(java.lang.Integer pxWidth,
                                         java.lang.Integer pxHeight)

saveCustomImage

protected void saveCustomImage()
                        throws java.io.IOException
Throws:
java.io.IOException

setDPI_PNG

protected javax.imageio.metadata.IIOMetadata setDPI_PNG(javax.imageio.metadata.IIOMetadata metadata)
                                                 throws javax.imageio.metadata.IIOInvalidTreeException
Throws:
javax.imageio.metadata.IIOInvalidTreeException

setDPI_JPG

protected javax.imageio.metadata.IIOMetadata setDPI_JPG(javax.imageio.metadata.IIOMetadata metadata)
                                                 throws javax.imageio.metadata.IIOInvalidTreeException
Throws:
javax.imageio.metadata.IIOInvalidTreeException

setImage

public void setImage(java.awt.Image image)

getImage

public java.awt.Image getImage()

setDpi

public void setDpi(java.lang.Integer dpi)

getDpi

public java.lang.Integer getDpi()

setOutputFileName

public void setOutputFileName(java.lang.String outputFileName)

getOutputFileName

public java.lang.String getOutputFileName()

setImageFormat

public void setImageFormat(java.lang.String imageFormat)

getImageFormat

public java.lang.String getImageFormat()

setMapBounds

public void setMapBounds(double[] mapBounds)

getMapBounds

public double[] getMapBounds()

setTitle

public void setTitle(java.lang.String title)

getTitle

public java.lang.String getTitle()