jas.plot
Interface PlotGraphics
- All Known Subinterfaces:
- SetablePlotGraphics
- All Known Implementing Classes:
- PlotGraphics11, PlotGraphics12
public interface PlotGraphics
This interface serves two purposes:
- To provide an abstract interface which can be used to drive either a JDK1.1
Graphics class, or a JDK1.2 Graphics2D class.
- To provide an mechanism to allow drawing of graphics objects in plot coordinate
space.
Method Summary |
void |
clearClip()
|
void |
clearTransformation()
|
BufferedImage |
createImage(int width,
int height)
|
void |
drawImage(Image image,
double x,
double y,
ImageObserver observer)
|
void |
drawImage(Image image,
double x,
double y,
int width,
int height,
ImageObserver observer)
|
void |
drawLine(double x1,
double y1,
double x2,
double y2)
|
void |
drawOval(double x,
double y,
double width,
double height)
|
void |
drawPolyLine(double[] x,
double[] y,
int n)
|
void |
drawPolySymbol(double[] x,
double[] y,
double size,
int type,
int n)
|
void |
drawRect(double x1,
double y1,
double x2,
double y2)
|
void |
drawString(String s,
double x,
double y)
|
void |
drawSymbol(double x,
double y,
double size,
int type)
|
void |
fillRect(double x1,
double y1,
double x2,
double y2)
|
Rectangle |
getClipBounds()
|
Font |
getFont()
|
FontMetrics |
getFontMetrics()
|
void |
setClip(int xmin,
int xmax,
int ymin,
int ymax)
|
void |
setColor(Color c)
|
void |
setFont(Font f)
|
void |
setStroke(Stroke s)
|
void |
setTransformation(Transformation x,
Transformation y)
|
SYMBOL_DOT
static final int SYMBOL_DOT
- See Also:
- Constant Field Values
SYMBOL_BOX
static final int SYMBOL_BOX
- See Also:
- Constant Field Values
SYMBOL_TRIANGLE
static final int SYMBOL_TRIANGLE
- See Also:
- Constant Field Values
SYMBOL_DIAMOND
static final int SYMBOL_DIAMOND
- See Also:
- Constant Field Values
SYMBOL_STAR
static final int SYMBOL_STAR
- See Also:
- Constant Field Values
SYMBOL_VERT_LINE
static final int SYMBOL_VERT_LINE
- See Also:
- Constant Field Values
SYMBOL_HORIZ_LINE
static final int SYMBOL_HORIZ_LINE
- See Also:
- Constant Field Values
SYMBOL_CROSS
static final int SYMBOL_CROSS
- See Also:
- Constant Field Values
SYMBOL_CIRCLE
static final int SYMBOL_CIRCLE
- See Also:
- Constant Field Values
SYMBOL_SQUARE
static final int SYMBOL_SQUARE
- See Also:
- Constant Field Values
setStroke
void setStroke(Stroke s)
setColor
void setColor(Color c)
drawLine
void drawLine(double x1,
double y1,
double x2,
double y2)
fillRect
void fillRect(double x1,
double y1,
double x2,
double y2)
drawRect
void drawRect(double x1,
double y1,
double x2,
double y2)
drawString
void drawString(String s,
double x,
double y)
drawPolyLine
void drawPolyLine(double[] x,
double[] y,
int n)
drawOval
void drawOval(double x,
double y,
double width,
double height)
drawSymbol
void drawSymbol(double x,
double y,
double size,
int type)
drawPolySymbol
void drawPolySymbol(double[] x,
double[] y,
double size,
int type,
int n)
drawImage
void drawImage(Image image,
double x,
double y,
ImageObserver observer)
drawImage
void drawImage(Image image,
double x,
double y,
int width,
int height,
ImageObserver observer)
getFontMetrics
FontMetrics getFontMetrics()
setFont
void setFont(Font f)
getFont
Font getFont()
setTransformation
void setTransformation(Transformation x,
Transformation y)
clearTransformation
void clearTransformation()
setClip
void setClip(int xmin,
int xmax,
int ymin,
int ymax)
clearClip
void clearClip()
getClipBounds
Rectangle getClipBounds()
createImage
BufferedImage createImage(int width,
int height)
Copyright © 2000-2009 FreeHEP. All Rights Reserved.