org.esa.beam.framework.ui.diagram
Class DiagramAxis

java.lang.Object
  extended by org.esa.beam.framework.ui.diagram.DiagramAxis
All Implemented Interfaces:
Serializable

public class DiagramAxis
extends Object
implements Serializable

Represents an axis in a Diagram. By default an axis has no name, no units and a range set to (0,100).

See Also:
Serialized Form

Constructor Summary
DiagramAxis()
           
DiagramAxis(String name, String unit)
           
 
Method Summary
 String[] createTickmarkTexts()
           
 Diagram getDiagram()
           
 double getMajorTickMarkDistance()
           
 double getMaxValue()
           
 double getMinValue()
           
 String getName()
           
 int getNumMajorTicks()
           
 int getNumMinorTicks()
           
static double getOptimalTickDistance(double minValue, double maxValue, int numMajorTicks)
           
 String getUnit()
           
 double getUnitFactor()
           
 void setDiagram(Diagram diagram)
           
 void setName(String name)
           
 void setNumMajorTicks(int numMajorTicks)
           
 void setNumMinorTicks(int numMinorTicks)
           
 void setOptimalSubDivision(int numMajorTicksMin, int numMajorTicksMax, int numMinorTicks)
           
 void setSubDivision(double minValue, double maxValue, int numMajorTicks, int numMinorTicks)
           
 void setUnit(String unit)
           
 void setUnitFactor(double unitFactor)
           
 void setValueRange(double minValue, double maxValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiagramAxis

public DiagramAxis()

DiagramAxis

public DiagramAxis(String name,
                   String unit)
Method Detail

getName

public String getName()

getDiagram

public Diagram getDiagram()

setDiagram

public void setDiagram(Diagram diagram)

setName

public void setName(String name)

getUnit

public String getUnit()

setUnit

public void setUnit(String unit)

getUnitFactor

public double getUnitFactor()

setUnitFactor

public void setUnitFactor(double unitFactor)

getMinValue

public double getMinValue()

getMaxValue

public double getMaxValue()

setValueRange

public void setValueRange(double minValue,
                          double maxValue)

getNumMajorTicks

public int getNumMajorTicks()

setNumMajorTicks

public void setNumMajorTicks(int numMajorTicks)

getNumMinorTicks

public int getNumMinorTicks()

setNumMinorTicks

public void setNumMinorTicks(int numMinorTicks)

getMajorTickMarkDistance

public double getMajorTickMarkDistance()

setSubDivision

public void setSubDivision(double minValue,
                           double maxValue,
                           int numMajorTicks,
                           int numMinorTicks)

setOptimalSubDivision

public void setOptimalSubDivision(int numMajorTicksMin,
                                  int numMajorTicksMax,
                                  int numMinorTicks)

getOptimalTickDistance

public static double getOptimalTickDistance(double minValue,
                                            double maxValue,
                                            int numMajorTicks)

createTickmarkTexts

public String[] createTickmarkTexts()


Copyright © 2002-2013 Brockmann Consult GmbH. All Rights Reserved.