public class GraphicsAxisLabels extends Object
Constructor and Description |
---|
GraphicsAxisLabels() |
Modifier and Type | Method and Description |
---|---|
int |
getAxisLabelsHeight(Graphics2D g2d)
returns combined height of all axis labels.
|
int |
getAxisLabelsWidth(Graphics2D g2d)
returns combined width of all labels.
|
int |
getAxisMaxHeight(Graphics2D g2d) |
int |
getAxisMaxWidth(Graphics2D g2d) |
List<LatexText> |
getLabels() |
int |
getSignificantFigures(List<Double> array)
calculates significant figures between two end points.
|
List<Double> |
getTicks() |
GraphicsAxisLabels |
setFontName(String name)
set Font name for all axis labels.
|
GraphicsAxisLabels |
setFontSize(int size)
set font size for all axis labels.
|
String |
toString() |
void |
update(double[] numbers)
updates the array with given ticks and constructs a
LatexText array with strings for axis labels;
|
void |
update(double[] numbers,
String[] labels) |
void |
update(List<Double> numbers)
updates the array with given ticks and constructs a
LatexText array with strings for axis labels;
|
void |
updateLog(List<Double> numbers) |
public void update(double[] numbers, String[] labels)
public GraphicsAxisLabels setFontSize(int size)
size
- public GraphicsAxisLabels setFontName(String name)
name
- public void update(double[] numbers)
numbers
- public void update(List<Double> numbers)
numbers
- public int getSignificantFigures(List<Double> array)
array
- public int getAxisLabelsWidth(Graphics2D g2d)
g2d
- public int getAxisLabelsHeight(Graphics2D g2d)
g2d
- public int getAxisMaxWidth(Graphics2D g2d)
public int getAxisMaxHeight(Graphics2D g2d)
Jas4pp 1.5 © Java Analysis Studio for Particle Physics