public class PaIntEGraph
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.awt.Color |
DEFAULT_BORDER_COLOR |
static java.awt.Color |
DEFAULT_GRID_COLOR |
static GridStyle |
DEFAULT_GRID_STYLE |
static boolean |
DEFAULT_PAINT_BORDER |
static boolean |
DEFAULT_PAINT_GRID |
static boolean |
DEFAULT_PAINT_X_AXIS |
static boolean |
DEFAULT_PAINT_Y_AXIS |
Constructor and Description |
---|
PaIntEGraph() |
PaIntEGraph(Axis xAxis,
Axis yAxis,
PaIntECurve curve) |
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getBorderColor() |
PaIntECurve |
getCurve() |
java.awt.Color |
getGridColor() |
GridStyle |
getGridStyle() |
Axis |
getXAxis() |
Axis |
getYAxis() |
boolean |
isPaintBorder() |
boolean |
isPaintGrid() |
boolean |
isPaintXAxis() |
boolean |
isPaintYAxis() |
void |
paint(java.awt.Graphics graphics,
PaIntEParams params,
java.awt.Rectangle area) |
void |
setBorderColor(java.awt.Color borderColor) |
void |
setGridColor(java.awt.Color gridColor) |
void |
setGridStyle(GridStyle gridStyle) |
void |
setPaintBorder(boolean paintBorder) |
void |
setPaintGrid(boolean paintGrid) |
void |
setPaintXAxis(boolean paintXAxis) |
void |
setPaintYAxis(boolean paintYAxis) |
void |
setXAxis(Axis xAxis) |
void |
setYAxis(Axis yAxis) |
PaIntEHitBox |
translate(int x,
int y,
java.awt.Graphics graphics,
java.awt.Rectangle area,
PaIntEParams params,
double accuracy)
Translates the given
Point into coordinates
of the underlying curve if the point is reasonably close
to the curve. |
public static final boolean DEFAULT_PAINT_X_AXIS
public static final boolean DEFAULT_PAINT_Y_AXIS
public static final boolean DEFAULT_PAINT_BORDER
public static final boolean DEFAULT_PAINT_GRID
public static final GridStyle DEFAULT_GRID_STYLE
public static final java.awt.Color DEFAULT_GRID_COLOR
public static final java.awt.Color DEFAULT_BORDER_COLOR
public PaIntEGraph()
public PaIntEGraph(Axis xAxis, Axis yAxis, PaIntECurve curve)
public void paint(java.awt.Graphics graphics, PaIntEParams params, java.awt.Rectangle area)
public boolean isPaintBorder()
public boolean isPaintXAxis()
public boolean isPaintYAxis()
public boolean isPaintGrid()
public GridStyle getGridStyle()
public java.awt.Color getGridColor()
public void setGridColor(java.awt.Color gridColor)
gridColor
- the gridColor to setpublic java.awt.Color getBorderColor()
public void setBorderColor(java.awt.Color borderColor)
borderColor
- the borderColor to setpublic void setPaintGrid(boolean paintGrid)
paintGrid
- the paintGrid to setpublic void setGridStyle(GridStyle gridStyle)
gridStyle
- the gridStyle to setpublic void setPaintBorder(boolean paintBorder)
paintBorder
- the paintBorder to setpublic void setPaintXAxis(boolean paintXAxis)
paintXAxis
- the paintXAxis to setpublic void setPaintYAxis(boolean paintYAxis)
paintYAxis
- the paintYAxis to setpublic Axis getXAxis()
public Axis getYAxis()
public void setXAxis(Axis xAxis)
public PaIntECurve getCurve()
public void setYAxis(Axis yAxis)
public PaIntEHitBox translate(int x, int y, java.awt.Graphics graphics, java.awt.Rectangle area, PaIntEParams params, double accuracy)
Point
into coordinates
of the underlying curve if the point is reasonably close
to the curve. The point is expected to be already translated
to this graph's painting rectangle, specified by the area
argument.