source: trunk/greenstone3-extensions/vishnu/src/vishnu/testvis/visual/Pnt2DTupleNode.java@ 8189

Last change on this file since 8189 was 8189, checked in by kjdon, 20 years ago

first version of Imperial College's Visualiser code

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.1 KB
Line 
1/**
2* The head of the rows of floating point lists contains drawing and
3* title information about a document as well as the document index
4* @author Matthew Carey
5*/
6package vishnu.testvis.visual;
7
8import vishnu.datablock.*;
9
10public class Pnt2DTupleNode
11{
12 /** index of the document */
13 public int index;
14 /** start of linked list */
15 public SparseNode row;
16 /** cartesian floating point location */
17 public Point2D pnt;
18 /** raster integer locatoin */
19 public Ipoint2D iPnt;
20 /** drawn or not */
21 public boolean state;
22 /** document title */
23 public String ref;
24 /**
25 * Constructor
26 * @param cartesian x
27 * @param cartesain y
28 * @param index
29 * @param linked list of data
30 * @param title
31 */
32 Pnt2DTupleNode(float x, float y ,int i, SparseNode fn, String reference)
33 {
34 state = false;
35 index = i;
36 pnt = new Point2D(x,y);
37 iPnt = new Ipoint2D(0,0);
38 ref=reference;
39 if (reference==null) ref = "Not defined";
40 row=fn;
41 }
42}
Note: See TracBrowser for help on using the repository browser.