Java Reference
In-Depth Information
else
else {
String fileName = args [ 0 ];
iif ( "-" . equals ( fileName )) {
data = GraphReader . read ( new
new InputStreamReader ( System . in ),
"System.in" );
} else
else {
data = GraphReader . read ( fileName );
}
}
grapher . setListData ( data );
f . setVisible ( true
true );
}
}
Most of the complexity of Grapher lies in determining the range and scaling. You could ob-
viously extend this to draw fancier drawings such as bar charts and the like. If pie charts in-
terest you, see ChartBean in the online source.
Search WWH ::




Custom Search