Now I am able to create a thread which can run this template but i am confused as to how to make a train move through this thread.....any help would be greatly appreciated.....
Provided below are the trains, station and tracks class:
I have a graph with various points marked. These data are marked based on the various values i have in a CSV file.Now, when I click the mouse on one of the data points, the entire data with respect to the same is to be displayed;How to do that???
Provided below is the snippet for reference.The override in this code should come in The display which is another class.
No,I havent tried as I am unaware where the axes are actually.If I am able to create the axes in the initial stage , perhaps I can try on to the arithmetic,Could you advice on How to start as I think I have missed a point somewhere
The lines 31 and 32 are the shifting of the points with respect to the axis (both x and Y).I am unable to bring in a idea on how to shift and plot the same.If there is any idea in which I could bring in the plot with the same.
I have provided a sample code what I have done,but apparently the plot is not getting displayed on the screen
Ideally, when I click the open button from the Frame class, after the file is been opened the graph should be displayed. There is a point class which has the attributes as the columns in the CSV file.So, as soon as I get the file name , the file is read and the values are stored in an arraylist of class Point type.And based on the values in the ArrayList, the data is to be plotted.
I have a CSV File containing bond trades which has 3 columns namely Yield, amount of maturity and days to maturity.I want a scatterplot to be generated using Graphics 2D, paint component.I took the entities in a class and created an object of the same and stored the contents in an arraylist.But when i am trying to plot the same, it doesnt work,throws a null point exception error .