Skip to content

Commit 962916f

Browse files
committed
Correcting some errors
1 parent 1ab5b4d commit 962916f

File tree

1 file changed

+9
-16
lines changed

1 file changed

+9
-16
lines changed

README.md

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ LDViewer is a Google Web Toolkit (GWT) widget containing a [processingjs][0] ske
88

99
Following steps are required:
1010

11-
12-
Either create new interface that extends or create a class that implements the base interface `ProcessingInstance` and annotate it with `@JsType`. To interact with methods on the processing sketch define methods on that interface (i.e. `testMethod`):
13-
1411
```JAVA
1512
LDViewer ldviewer = new LDViewer();
1613
ldviewer.load(new Runnable() {
@@ -22,13 +19,13 @@ ldviewer.load(new Runnable() {
2219
}
2320
});
2421
```
25-
To display data following information users have to call the `showLDValues()` function with following parameter:
26-
- position: Array of integer
27-
- r2Values: multi-dimensional array of floats in a [triangular matrix][7] form.
28-
- start: start position (should be the first position of the position array)
29-
- end: end position (should be the last position of the position array)
22+
To display data following information users have to call the `showLDValues(int[] positions,float[][] r2Values, int start, int end)` function with following parameter:
23+
- `positions`: Array of integer
24+
- `r2Values`: multi-dimensional array of floats in a [triangular matrix][2] form.
25+
- `start`: start position (should be the first position of the position array)
26+
- `end`: end position (should be the last position of the position array)
3027

31-
An [example of this data][8] can be found in the sample application and one could load it this way:
28+
An [example of this data][3] can be found in the sample application and one could load it this way:
3229

3330
```JAVA
3431
final String jsonData = GET_FROM_CLIENTBUNDLE OR AJAX CALL
@@ -69,15 +66,11 @@ file like this:
6966

7067
## Where can I learn more?
7168

72-
* Check out the [sample app][2] ([Source Code][3]) for a full example of using LDViewer.
69+
* Check out the [sample app][5] ([Source Code][6]) for a full example of using LDViewer.
7370

7471
[0]: http://processingjs.org
7572
[1]: http://www.nature.com/nrg/journal/v4/n8/fig_tab/nrg1123_F1.html
76-
[2]: http://search.maven.org/remotecontent?filepath=com/github/timeu/dygraphs-gwt/dygraphs-gwt/1.0.0/dygraphs-gwt-1.0.0.jar
77-
[2]: https://timeu.github.io/processing-js-gwt
78-
[3]: https://github.com/timeu/processing-js-gwt/tree/master/processingjs-gwt-sample
7973
[4]: http://www.gwtproject.org/release-notes.html#Release_Notes_2_7_0_RC1
8074
[5]: https://docs.google.com/document/d/1tir74SB-ZWrs-gQ8w-lOEV3oMY6u6lF2MmNivDEihZ4/edit#
81-
[6]: https://github.com/timeu/LDViewer
82-
[7]: https://en.wikipedia.org/wiki/Triangular_matrix
83-
[8]: https://github.com/timeu/ldviewer/ldviewer-sample/src/main/resources/sample/client/data/ld_sample_data.json
75+
[2]: https://en.wikipedia.org/wiki/Triangular_matrix
76+
[3]: https://github.com/timeu/LDViewer/blob/master/ldviewer-sample/src/main/resources/sample/client/data/ld_sample_data.json

0 commit comments

Comments
 (0)