| Modifier and Type | Class and Description |
|---|---|
static interface |
FunctionLine.Function
The function a
FunctionLine is based on. |
| Constructor and Description |
|---|
FunctionLine(FunctionLine.Function function)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Area |
getPreferredArea()
Returns the area this line would like to display.
|
double |
getStepSize()
Returns the value that is used to determine which x values are drawn in
paintOn(GraphicContext, PaintInstructions), i.e. |
void |
paintOn(GraphicContext gc,
PaintInstructions instructions)
Paints the current content onto the graphic context.
|
FunctionLine |
preferredArea(Area newPreferredArea)
Sets the area this line would like to display.
|
void |
setPreferredArea(Area preferredArea)
Sets the area this line would like to display.
|
void |
setStepSize(double stepSize)
Sets the value that is used to determine which x values are drawn in
paintOn(GraphicContext, PaintInstructions), i.e. |
FunctionLine |
stepSize(double newStepSize)
Sets the value that is used to determine which x values are drawn in
paintOn(GraphicContext, PaintInstructions), i.e. |
addRefreshListener, color, getColor, removeRefreshListener, setColorpublic FunctionLine(FunctionLine.Function function)
function - the function; cannot be nullpublic void paintOn(GraphicContext gc, PaintInstructions instructions)
Drawablegc - graphic context; coordinates are relative to the Chartinstructions - additional instructions like the area to paint onpublic Area getPreferredArea()
Lines.public FunctionLine preferredArea(Area newPreferredArea)
Lines.newPreferredArea - the preferred area; cannot be nullpublic void setPreferredArea(Area preferredArea)
Lines.preferredArea - the preferred area; cannot be nullpublic double getStepSize()
paintOn(GraphicContext, PaintInstructions), i.e. a step size of 0.5 will
draw the x values: 0, 0.5, 1, 1.5, ...public FunctionLine stepSize(double newStepSize)
paintOn(GraphicContext, PaintInstructions), i.e. a step size of 0.5 will
draw the x values: 0, 0.5, 1, 1.5, ...newStepSize - the step sizepublic void setStepSize(double stepSize)
paintOn(GraphicContext, PaintInstructions), i.e. a step size of 0.5 will
draw the x values: 0, 0.5, 1, 1.5, ...stepSize - the step sizeCopyright © 2020. All rights reserved.