compare
Class hist
- public class hist
- extends Canvas
- class constructor xxdata: observations on x axis data: frequency to the observations yintervals: # of observations for each Y interval clickable: set to true if user can draw the histgram gaps: the gap space between bars
getGap
public int getGap()
- get gap between bars
setDrawYaxis
public void setDrawYaxis(boolean drawYaxis)
- when set true, it will draw Y axis
paint
public void paint(Graphics g)
- Draws frame around histogram.
- Parameters:
frame
- draws frame if true