public class WebFigureRenderParameters
extends java.lang.Object
WebFigureRenderer| Constructor and Description |
|---|
WebFigureRenderParameters(WebFigure webFigure)
Initialize render parameters from the defaults of the given WebFigure.
|
WebFigureRenderParameters(WebFigureRenderParameters that)
Initialize render parameters by copying all parameters from that.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
getCropBottom() |
int |
getCropLeft() |
int |
getCropRight() |
int |
getCropTop() |
double |
getElevation() |
int |
getHeight() |
java.lang.String |
getImageFormat() |
double |
getRotation() |
WebFigure |
getWebFigure() |
int |
getWidth() |
int |
hashCode() |
void |
setCropBottom(int cropBottom)
Set the number of pixels to crop from the bottom of the render image.
|
void |
setCropLeft(int cropLeft)
Set the number of pixels to crop from the left side of the render image.
|
void |
setCropRight(int cropRight)
Set the number of pixels to crop from the right side of the render image.
|
void |
setCropTop(int cropTop)
Set the number of pixels to crop from the top of the render image.
|
void |
setElevation(double elevation)
Set the camera elevation
|
void |
setHeight(int height)
Set the uncropped rendered image height
|
void |
setImageFormat(java.lang.String imageFormat)
Set the image encoding to use, if calling renderEncoded.
|
void |
setRotation(double rotation)
Set the camera azimuth.
|
void |
setWebFigure(WebFigure webFigure)
Set the WebFigure to render.
|
void |
setWidth(int width)
Set the uncropped rendered image width
|
java.lang.String |
toString() |
public WebFigureRenderParameters(WebFigure webFigure)
webFigure - the figure to renderpublic WebFigureRenderParameters(WebFigureRenderParameters that)
that - the render parameters to copypublic WebFigure getWebFigure()
public double getRotation()
public double getElevation()
public int getWidth()
public int getHeight()
public java.lang.String getImageFormat()
public int getCropLeft()
public int getCropRight()
public int getCropTop()
public int getCropBottom()
public void setWebFigure(WebFigure webFigure)
webFigure - the WebFigure to renderpublic void setRotation(double rotation)
rotation - the camera azimuth, in degreespublic void setElevation(double elevation)
elevation - the camera elevation, in degreespublic void setWidth(int width)
width - the uncropped width, in pixelspublic void setHeight(int height)
height - the uncropped height, in pixelspublic void setImageFormat(java.lang.String imageFormat)
imageFormat - any image format accepted by javax.imageio.ImageIO.writepublic void setCropLeft(int cropLeft)
cropLeft - number of pixels to croppublic void setCropRight(int cropRight)
cropRight - number of pixels to croppublic void setCropTop(int cropTop)
cropTop - number of pixels to croppublic void setCropBottom(int cropBottom)
cropBottom - number of pixels to croppublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object© 1994-2008 The MathWorks, Inc. Terms of Use Patents Trademarks