|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.maps.app.MapPlotBuilder
public class MapPlotBuilder
Plots map and returns as version requested through getters. Plot is based off of values set.
Copyright 2008 Partner Software, Inc.
| Constructor Summary | |
|---|---|
MapPlotBuilder(MapApp app)
Constructs a MapPlotBuilder. |
|
| Method Summary | |
|---|---|
java.awt.image.BufferedImage |
getAsImage()
Generates a plot using this class's settings and returns it as an image of some sort. |
com.lowagie.text.pdf.PdfTemplate |
getAsPdfTemplate(com.lowagie.text.pdf.PdfWriter writer)
Generates a plot using this class's settings and returns it as an iText Pdf template. |
void |
setBorderColor(java.awt.Color color)
Sets the color for the border to be drawn. |
void |
setCenterX(double x)
Sets the center X position for this plot on the map. |
void |
setCenterY(double y)
Sets the center Y position for this plot on the map. |
void |
setPixelHeight(int height)
Sets the pixel height for this plot. |
void |
setPixelWidth(int width)
Sets the pixel width for this plot. |
void |
setRotation(double rotation)
Sets the rotation for this plot. |
void |
setScale(double scale)
Sets the scale for this plot. |
void |
setShowBorder(boolean showBorder)
Determines if the plot should be drawn with a border. |
void |
setShowScaleAndArrow(boolean showScaleAndArrow)
Determines if the plot should be drawn with north arrow and map scale. |
void |
setViewFrame(MapViewFrame frame)
The MapViewFrame to use for this plot. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MapPlotBuilder(MapApp app)
app - - A valid MapApp| Method Detail |
|---|
public void setShowBorder(boolean showBorder)
showBorder - - True if border is to be shown. False otherwise.public void setBorderColor(java.awt.Color color)
color - - Color to draw border.public void setShowScaleAndArrow(boolean showScaleAndArrow)
showScaleAndArrow - - True if scale and arrow are to be shown. False otherwise.public void setViewFrame(MapViewFrame frame)
frame - - MapViewFrame with settings to plot with.
java.lang.NullPointerException - if viewFrame is null.public void setPixelWidth(int width)
width - - width in pixels of plot.public void setPixelHeight(int height)
height - - height in pixels of plot.public void setScale(double scale)
scale - - scale of plot.public void setCenterX(double x)
x - - Position on map for center of plot.public void setCenterY(double y)
y - - Position on map for center of plot.public void setRotation(double rotation)
rotation - - rotation of plot.public com.lowagie.text.pdf.PdfTemplate getAsPdfTemplate(com.lowagie.text.pdf.PdfWriter writer)
java.lang.NullPointerException - if viewFrame is null.public java.awt.image.BufferedImage getAsImage()
java.lang.NullPointerException - if viewFrame is null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||