All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----java.awt.Component | +----java.awt.Canvas | +----resample.RVHistogram
calculateHistoArray();
scaleYToPercent();
xSize,ySize: canvas-dimension ResampleVector: vector with the data to present
the values are listed line by line, the stars offer an immediate overview about the distribution
protected int xSizeySize
protected int ySizerangeLeft
protected int rangeLeftresVec
protected ResampleVector resVecxDescription
protected String xDescriptionxValue
protected String xValue[]yValue
protected double yValue[]arrElements
protected int arrElementsresVecSort
protected ResampleVector resVecSort
public RVHistogram(int xSize, int ySize, ResampleVector resVec)
xSize,ySize: canvas-dimension ResampleVector: vector with the data to present
public String[] getXValues()
public double[] getYValues(boolean fRescaleToAbsolut)
public void write(OutputStream output) throws IOException
the values are listed line by line, the stars offer an immediate overview about the distribution
public Dimension preferredSize()
public Dimension minimumSize()
public void setFont(String fontName, int fontStyle, int fontSize)
Parameters: name, style and size of the font
public void setColor(Color foreColor, Color backColor)
public void paint(Graphics g)
It reads the data from the two arrays xValue and yValue which are filled by the method calculateHistoArray of the actual subclass. There are three predefinded subclasses: Linear, Compressed and PartSums.
Users of this package can define further subclasses by implementing a special calculation-method for presenting the data in exactly the way they want it. They just have to fill the two arrays individually.
All subclasses use the same paint-method. It starts with the first pair of array-elements and proceeds until the end of the array or the size of the canvas is reached.
protected int calculateDeltaX(Graphics g, FontMetrics fm, int deltaCharX)calculateDeltaY
protected int calculateDeltaY(Graphics g, int deltaCharY)scaleYToPercent
protected void scaleYToPercent()calculateHistoArray
protected abstract void calculateHistoArray()
protected int getValueArrayCapacity(ResampleVector resVecSort)
All Packages Class Hierarchy This Package Previous Next Index