/** * Default constructor * @param width Width in pixels * @param height Height in pixels * @param timeLength The number of time points to show * @param dataWidth Length of each data line */ public ChronologicalScrollingBarVisualisation3D( final int width, final int height, final int timeLength, final int dataWidth ) { this.barVis = new BarVisualisation3D( width, height ); this.data = new double[timeLength][dataWidth]; this.expectedDataLength = dataWidth; }
/** * @param args */ public static void main( final String[] args ) { final BarVisualisation3D bv = new BarVisualisation3D( 1000, 1000 ); bv.setData( new double[][] { { 6, 7, 8, 9, 10 }, { 5, 6, 7, 8, 9 }, { 4, 5, 6, 7, 8 }, { 3, 4, 5, 6, 7 }, { 2, 3, 4, 5, 6 }, { 1, 2, 3, 4, 5 }, { 0, 1, 2, 3, 4 }, {-1, 0, 1, 2, 3 }, {-2, -1, 0, 1, 2}, {-3, -2, -1, 0, 1}, {-4, -3, -2, -1, 0}, {-5, -4, -3, -2, -1} }); } }