public class GraphicsAxis extends Object
Constructor and Description |
---|
GraphicsAxis()
default
|
Modifier and Type | Method and Description |
---|---|
int |
getAxisDivisions() |
List<LatexText> |
getAxisLabels() |
List<Double> |
getAxisMinorTicks() |
double |
getAxisPosition(double value)
returns position along the axis, the dimension of the
axis has to be set.
|
List<Double> |
getAxisTicks() |
Dimension1D |
getDimension() |
FontProperties |
getLabelFont()
returns properties for the label fonts.
|
double |
getLabelFraction(Graphics2D g2d,
boolean isVertical) |
boolean |
getLog()
returns the logarithmic properties of the axis
|
Dimension1D |
getRange() |
int |
getSize(Graphics2D g2d,
boolean vertical) |
FontProperties |
getTitleFont()
returns properties of the title font
|
static void |
main(String[] args)
main program for testing the axis
|
void |
setAxisDivisions(int ndiv) |
GraphicsAxis |
setDimension(int xmin,
int xmax)
sets the dimension for the axis for plotting.
|
void |
setLog(boolean logflag)
Sets logarithmic scale for the axis
|
GraphicsAxis |
setRange(double min,
double max)
Sets the range of the axis, it also updates the axis labels.
|
void |
show()
prints string representation of the axis.
|
String |
toString()
returns string representation of the axis.
|
public final GraphicsAxis setDimension(int xmin, int xmax)
xmin
- xmax
- public Dimension1D getDimension()
public void setLog(boolean logflag)
logflag
- public boolean getLog()
public final GraphicsAxis setRange(double min, double max)
min
- max
- public Dimension1D getRange()
public void show()
public double getAxisPosition(double value)
value
- public FontProperties getTitleFont()
public FontProperties getLabelFont()
public int getSize(Graphics2D g2d, boolean vertical)
public int getAxisDivisions()
public void setAxisDivisions(int ndiv)
public double getLabelFraction(Graphics2D g2d, boolean isVertical)
public String toString()
public static void main(String[] args)
args
- Jas4pp 1.5 © Java Analysis Studio for Particle Physics