Processing Forum
Here is my code (This method is called repeatedly for each new item to be added):
In the example, the Hashmap consists of object/string pairs but my hashmap has string/integer pairs. Do I need to make an object class for the title, the title and the rank or neither?? I'm assuming I'll need a class for the title but then I'm not sure what to do about its corresponding rank... should it be a field in the title class? The rank will determine the size of the rectangle to be drawn by the way, with one being the smallest and the lower ranks increasing in rectangle size. Would the title class look like this(rank doesn't do anything cause I don't know what to with it yet):
