Ed Comstock

Greenhorn

Posts: 1

posted 13 years ago

Hi all,

May be an odd question, but here goes. I have a .gif image of a 'nomograph', which is basically a graph with a scale at the top and bottom and a line between the scales with a results value. You select a value on the top row, then the bottom row, draw a line between the two, and the intersection on the third line is your value. Being new to this, my questions are:

1) How can I relate the values on the scales of the .gif file to

an object that can be used in a java applet?

2) I could probably just do this visually by allowing the user to draw

a line themselves between scale A and B, and then just read the

result on line C. But, is there a way for java to interpolate a

value when a line intersects another line? Ex:

Scale A : 100-200-300-4*0-500-600-700

Line w/ values: --1--2--3--4-*5--6--7--8--0--10

Scale B : 1000-2000-300*-4000-5000-6000

So, scale A is 400, scale B is 3000, the line between the scales

is the row of *'s, and the result from the intersection should be

approx 4.9 (just before the value 5). So, this is all on a .gif

file, but can you draw a line on the .gif to derive an answer?

Any help would be greatly appreciated!

May be an odd question, but here goes. I have a .gif image of a 'nomograph', which is basically a graph with a scale at the top and bottom and a line between the scales with a results value. You select a value on the top row, then the bottom row, draw a line between the two, and the intersection on the third line is your value. Being new to this, my questions are:

1) How can I relate the values on the scales of the .gif file to

an object that can be used in a java applet?

2) I could probably just do this visually by allowing the user to draw

a line themselves between scale A and B, and then just read the

result on line C. But, is there a way for java to interpolate a

value when a line intersects another line? Ex:

Scale A : 100-200-300-4*0-500-600-700

Line w/ values: --1--2--3--4-*5--6--7--8--0--10

Scale B : 1000-2000-300*-4000-5000-6000

So, scale A is 400, scale B is 3000, the line between the scales

is the row of *'s, and the result from the intersection should be

approx 4.9 (just before the value 5). So, this is all on a .gif

file, but can you draw a line on the .gif to derive an answer?

Any help would be greatly appreciated!

Don't get me started about those stupid light bulbs. |