Package org.jzy3d.plot2d.primitive
Class AWTAbstractImageGenerator
- java.lang.Object
-
- org.jzy3d.plot2d.primitive.AWTAbstractImageGenerator
-
- All Implemented Interfaces:
AWTImageGenerator
- Direct Known Subclasses:
AWTColorbarImageGenerator
public abstract class AWTAbstractImageGenerator extends Object implements AWTImageGenerator
-
-
Field Summary
Fields Modifier and Type Field Description protected FontawtFontprotected ColorbackgroundColorprotected Fontfontprotected ColorforegroundColorprotected booleanhasBackgroundprotected inttextSize
-
Constructor Summary
Constructors Constructor Description AWTAbstractImageGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigureText(Graphics2D graphic)protected voiddrawBackground(int width, int height, Graphics2D graphic)protected voiddrawBorder(Graphics2D graphic, int width, int height)FontgetAWTFont()ColorgetBackgroundColor()FontgetFont()ColorgetForegroundColor()booleanhasBackground()voidsetAWTFont(Font font)voidsetBackgroundColor(Color backgroundColor)voidsetFont(Font font)voidsetForegroundColor(Color foregroundColor)voidsetHasBackground(boolean hasBackground)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jzy3d.plot2d.primitive.AWTImageGenerator
toImage
-
-
-
-
Method Detail
-
configureText
protected void configureText(Graphics2D graphic)
-
drawBackground
protected void drawBackground(int width, int height, Graphics2D graphic)
-
drawBorder
protected void drawBorder(Graphics2D graphic, int width, int height)
-
setFont
public void setFont(Font font)
- Specified by:
setFontin interfaceAWTImageGenerator
-
getFont
public Font getFont()
- Specified by:
getFontin interfaceAWTImageGenerator
-
hasBackground
public boolean hasBackground()
- Specified by:
hasBackgroundin interfaceAWTImageGenerator
-
setHasBackground
public void setHasBackground(boolean hasBackground)
- Specified by:
setHasBackgroundin interfaceAWTImageGenerator
-
getBackgroundColor
public Color getBackgroundColor()
- Specified by:
getBackgroundColorin interfaceAWTImageGenerator
-
setBackgroundColor
public void setBackgroundColor(Color backgroundColor)
- Specified by:
setBackgroundColorin interfaceAWTImageGenerator
-
getForegroundColor
public Color getForegroundColor()
- Specified by:
getForegroundColorin interfaceAWTImageGenerator
-
setForegroundColor
public void setForegroundColor(Color foregroundColor)
- Specified by:
setForegroundColorin interfaceAWTImageGenerator
-
getAWTFont
public Font getAWTFont()
- Specified by:
getAWTFontin interfaceAWTImageGenerator
-
setAWTFont
public void setAWTFont(Font font)
- Specified by:
setAWTFontin interfaceAWTImageGenerator
-
-