info.aduna.graphics.render
Class GlassSphereRenderer
java.lang.Object
info.aduna.graphics.render.GlassSphereRenderer
public class GlassSphereRenderer
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GlassSphereRenderer
public GlassSphereRenderer()
GlassSphereRenderer
public GlassSphereRenderer(double diameter,
Paint basePaint,
GlassSphereInteriorRenderer interior)
getDiameter
public double getDiameter()
setDiameter
public void setDiameter(double diameter)
getBasePaint
public Paint getBasePaint()
setBasePaint
public void setBasePaint(Paint basePaint)
getInterior
public GlassSphereInteriorRenderer getInterior()
setInterior
public void setInterior(GlassSphereInteriorRenderer interior)
render
public void render(Graphics2D g,
double x,
double y)
- Renders a glass sphere to the specified graphics context at the specified
location.
- Parameters:
g - The Graphics2D context to render the glass sphere with.x - The x coordinate of the top left corner of the sphere.y - The y coordinate of the top left corner of the sphere.
getImage
public static BufferedImage getImage(double diameter,
Paint basePaint,
Paint backgroundPaint,
GlassSphereInteriorRenderer interior)
Copyright © 1997-2008 Aduna. All Rights Reserved.