org.math.plot.plotObjects
Class Axe

java.lang.Object
  extended by org.math.plot.plotObjects.Axe
All Implemented Interfaces:
BaseDependant, Editable, Plotable

public class Axe
extends Object
implements Plotable, BaseDependant, Editable

BSD License

Author:
Yann RICHET

Field Summary
protected  Base base
           
protected  Color color
           
protected  BaseLabel darkLabel
           
protected  double[] darkLabel_base_position
           
protected  double darkLabelAngle
           
protected  Font darkLabelFont
           
protected  BaseLine darkLine
           
protected  double[] end
           
(package private)  boolean gridVisible
           
protected  int index
           
protected  double[] labelsSlicing
           
protected  double lightLabelAngle
           
protected  Font lightLabelFont
           
protected  String[] lightLabelNames
           
protected  Label[] lightLabels
           
protected  double lightLabels_base_offset
           
protected  Line[][] lightLines
           
protected  int linear_slicing
           
protected  double[] linesSlicing
           
protected  String name
           
protected  int note_precision
           
protected  double[] origin
           
(package private)  boolean visible
           
 
Constructor Summary
Axe(Base b, String aS, Color c, int i)
           
 
Method Summary
 void edit(Object plotCanvas)
           
 void editnote(AbstractDrawer draw)
           
private  double floor(double x)
           
 Color getColor()
           
 String getLegend()
           
 double[] getLegendCoord()
           
 boolean getVisible()
           
 void init()
           
private  void initDarkLabels()
           
private  void initDarkLines()
           
private  void initOriginEnd()
           
 double[] isSelected(int[] screenCoordTest, AbstractDrawer draw)
           
private  double log(double x)
           
 void plot(AbstractDrawer draw)
           
 void resetBase()
           
 void setColor(Color c)
           
 void setEnd(double[] _end)
           
 void setGridVisible(boolean v)
           
 void setLabelAngle(double angle)
           
 void setLabelFont(Font f)
           
 void setLabelPosition(double... _p)
           
 void setLabelText(String _t)
           
 void setLegend(String n)
           
 void setLightLabelAngle(double angle)
           
 void setLightLabelFont(Font f)
           
private  void setLightLabels()
           
 void setLightLabelText(String[] _lightLabelnames)
           
private  void setLightLines()
           
 void setOrigin(double[] _origin)
           
private  void setSlicing()
           
 void setVisible(boolean v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

linear_slicing

protected int linear_slicing

note_precision

protected int note_precision

index

protected int index

base

protected Base base

visible

boolean visible

color

protected Color color

name

protected String name

gridVisible

boolean gridVisible

linesSlicing

protected double[] linesSlicing

labelsSlicing

protected double[] labelsSlicing

origin

protected double[] origin

end

protected double[] end

darkLine

protected BaseLine darkLine

lightLines

protected Line[][] lightLines

darkLabel

protected BaseLabel darkLabel

lightLabels

protected Label[] lightLabels

lightLabelFont

protected Font lightLabelFont

darkLabelFont

protected Font darkLabelFont

lightLabelAngle

protected double lightLabelAngle

darkLabelAngle

protected double darkLabelAngle

lightLabelNames

protected String[] lightLabelNames

lightLabels_base_offset

protected double lightLabels_base_offset

darkLabel_base_position

protected double[] darkLabel_base_position
Constructor Detail

Axe

public Axe(Base b,
           String aS,
           Color c,
           int i)
Method Detail

setVisible

public void setVisible(boolean v)
Specified by:
setVisible in interface Plotable

setGridVisible

public void setGridVisible(boolean v)

getVisible

public boolean getVisible()
Specified by:
getVisible in interface Plotable

setColor

public void setColor(Color c)
Specified by:
setColor in interface Plotable

getColor

public Color getColor()
Specified by:
getColor in interface Plotable

setLegend

public void setLegend(String n)

getLegend

public String getLegend()

getLegendCoord

public double[] getLegendCoord()

initOriginEnd

private void initOriginEnd()

setSlicing

private void setSlicing()

plot

public void plot(AbstractDrawer draw)
Specified by:
plot in interface Plotable

setLightLabels

private void setLightLabels()

setLightLines

private void setLightLines()

initDarkLines

private void initDarkLines()

initDarkLabels

private void initDarkLabels()

init

public void init()

resetBase

public void resetBase()
Specified by:
resetBase in interface BaseDependant

setEnd

public void setEnd(double[] _end)

setOrigin

public void setOrigin(double[] _origin)

setLightLabelText

public void setLightLabelText(String[] _lightLabelnames)

setLabelText

public void setLabelText(String _t)

setLightLabelFont

public void setLightLabelFont(Font f)

setLabelFont

public void setLabelFont(Font f)

setLightLabelAngle

public void setLightLabelAngle(double angle)

setLabelAngle

public void setLabelAngle(double angle)

setLabelPosition

public void setLabelPosition(double... _p)

log

private double log(double x)

floor

private double floor(double x)

edit

public void edit(Object plotCanvas)
Specified by:
edit in interface Editable

isSelected

public double[] isSelected(int[] screenCoordTest,
                           AbstractDrawer draw)
Specified by:
isSelected in interface Editable

editnote

public void editnote(AbstractDrawer draw)
Specified by:
editnote in interface Editable