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 Font
awtFont
protected Color
backgroundColor
protected Font
font
protected Color
foregroundColor
protected boolean
hasBackground
protected int
textSize
-
Constructor Summary
Constructors Constructor Description AWTAbstractImageGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configureText(Graphics2D graphic)
protected void
drawBackground(int width, int height, Graphics2D graphic)
protected void
drawBorder(Graphics2D graphic, int width, int height)
Font
getAWTFont()
Color
getBackgroundColor()
Font
getFont()
Color
getForegroundColor()
boolean
hasBackground()
void
setAWTFont(Font font)
void
setBackgroundColor(Color backgroundColor)
void
setFont(Font font)
void
setForegroundColor(Color foregroundColor)
void
setHasBackground(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:
setFont
in interfaceAWTImageGenerator
-
getFont
public Font getFont()
- Specified by:
getFont
in interfaceAWTImageGenerator
-
hasBackground
public boolean hasBackground()
- Specified by:
hasBackground
in interfaceAWTImageGenerator
-
setHasBackground
public void setHasBackground(boolean hasBackground)
- Specified by:
setHasBackground
in interfaceAWTImageGenerator
-
getBackgroundColor
public Color getBackgroundColor()
- Specified by:
getBackgroundColor
in interfaceAWTImageGenerator
-
setBackgroundColor
public void setBackgroundColor(Color backgroundColor)
- Specified by:
setBackgroundColor
in interfaceAWTImageGenerator
-
getForegroundColor
public Color getForegroundColor()
- Specified by:
getForegroundColor
in interfaceAWTImageGenerator
-
setForegroundColor
public void setForegroundColor(Color foregroundColor)
- Specified by:
setForegroundColor
in interfaceAWTImageGenerator
-
getAWTFont
public Font getAWTFont()
- Specified by:
getAWTFont
in interfaceAWTImageGenerator
-
setAWTFont
public void setAWTFont(Font font)
- Specified by:
setAWTFont
in interfaceAWTImageGenerator
-
-