| |
|
| javax.swing.JPanel org.apache.jmeter.visualizers.LineGraph
LineGraph | public class LineGraph extends JPanel (Code) | | Axis graph is used by StatGraphVisualizer, which generates bar graphs
from the statistical data.
|
data | protected double[][] data(Code) | | |
paint_counter | protected int paint_counter(Code) | | |
shape_counter | protected int shape_counter(Code) | | |
titlexAxisTitleyAxisTitle | protected String titlexAxisTitleyAxisTitle(Code) | | |
widthheight | protected int widthheight(Code) | | |
xAxisLabelsyAxisLabel | protected String[] xAxisLabelsyAxisLabel(Code) | | |
LineGraph | public LineGraph()(Code) | | |
LineGraph | public LineGraph(LayoutManager layout, boolean isDoubleBuffered)(Code) | | Parameters: layout - Parameters: isDoubleBuffered - |
createPaint | public Paint[] createPaint(int count)(Code) | | return an array of Paint with different colors. The current
implementation will cycle through 12 colors if a line graph
has more than 12 entries
Parameters: count - an array of Paint with different colors |
createShapes | public Shape[] createShapes(int count)(Code) | | Since we only have 4 shapes, the method will start with the
first shape and keep cycling through the shapes in order.
Parameters: count - the first n shapes |
createStrokes | public Stroke[] createStrokes(int count)(Code) | | Parameters: count - the first count strokes |
nextPaint | public Paint nextPaint()(Code) | | The method will return the next paint color in the PAINT_ARRAY.
Rather than return a random color, we want it to always go through
the same sequence. This way, the same charts will always use the
same color and make it easier to compare side by side.
the next paint color in the PAINT_ARRAY |
nextShape | public Shape nextShape()(Code) | | Return the next shape
the next shape |
nextStroke | public Stroke nextStroke()(Code) | | method always return a new BasicStroke with 1.0f weight
a new BasicStroke with 1.0f weight |
setData | public void setData(double[][] data)(Code) | | |
setHeight | public void setHeight(int h)(Code) | | |
setWidth | public void setWidth(int w)(Code) | | |
setXAxisLabels | public void setXAxisLabels(String[] labels)(Code) | | |
setYAxisLabels | public void setYAxisLabels(String[] label)(Code) | | |
|
|
|