Modifier and Type | Class and Description |
---|---|
static class |
YAxis.Position
The position of the Y axis.
|
Constructor and Description |
---|
YAxis(LineChart chart)
Constructor for a
LineChart . |
Modifier and Type | Method and Description |
---|---|
YAxis.Position |
getPosition()
Returns the position of the y axis.
|
void |
paintOn(GraphicContext gc,
PaintInstructions instructions)
Paints the current content onto the graphic context.
|
YAxis |
position(YAxis.Position newPosition)
Sets the position of the y axis.
|
void |
setPosition(YAxis.Position position)
Sets the position of the y axis.
|
addRefreshListener, arrowSize, bigTickSize, bigTickSteps, getArrowSize, getBigTickSize, getBigTickSteps, getTickSize, getTickSteps, removeRefreshListener, setArrowSize, setBigTickSize, setBigTickSteps, setTickSize, setTickSteps, tickSize, tickSteps
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
snipNecessarySpace
public void paintOn(GraphicContext gc, PaintInstructions instructions)
ChartPart
gc
- graphic context; coordinates are relative to the Chart
instructions
- additional instructions like the area to paint onpublic YAxis.Position getPosition()
public YAxis position(YAxis.Position newPosition)
newPosition
- the position; cannot be nullpublic void setPosition(YAxis.Position position)
position
- the position; cannot be nullCopyright © 2020. All rights reserved.