hard time at making treemap
I'm working on a treemap based on chapter 7 from visualizing data, the book made by Ben Fry.
I think having worked with this chapter is higly recomended in able to help me.
I'm working on a treemap based on chapter 7 from visualizing data, the book made by Ben Fry.
I think having worked with this chapter is higly recomended in able to help me.
starting....
ID = 0; name = null; description = null
ID = 0; name = null; description = null
ID = 0; name = null; description = null
ID = 0; name = null; description = null
ID = 0; name = null; description = null
ID = 0; name = null; description = null
ID = 0; name = null; description = null
ID = 0; name = null; description = null
ID = 0; name = null; description = null
ID = 0; name = null; description = null
ID = 0; name = null; description = null
ID = 0; name = null; description = null
ID = 0; name = null; description = null
ID = 0; name = null; description = null
ID = 0; name = null; description = null
end of setup()....
Both FileItem and FolderItem are 'things' that can be found on the hard drive. In both cases we want to store information about the item i.e.why does FolderItem extend FileItem?, why not the other way around since it's a folder that hold's files and not the other way around.
it is possible for the FolderItem to not extend FileItem by copy past all things from FileItem that it needs right?If so that might be a good practice for me to get further.
In my case SubProject should extend Project right?
I think i understand why the hours should be nested into the sub project.
Processing allows you to define the location and size of a rectangle to be drawn in three different ways. The way used is controlled with the method rectMode(mode)Also w is like x2 and h is like y2 (right bottom corner).This is really confusing.
You are not wrong it is still possible because the map data is a collection of rectangles of known position and size - you only have to loop through these to see which one contains the mouse coordinates.Also i would like that you can click on a treemap (project/subProject) and that the one that's get clicked on get sized to the size that holds all treemaps (let's say window size).Is that still possible or am working totally wrong.
but when I look at the software V5 there is nothing inside this class that could be used for a TreeMap.
But there will be something similar right?I nearly forgot - XMLElement will be removed from Processing V2.
The classes
Project
SubProject
also have to implement the MapModel interface. This means each of these classes should have a getItems() method which returns an array of mappable items. In the Project class you have an array list of SubProjects so I would add the following code to the Project class
In the SubProject class it would return an array of Jobs
- Mappable[] getItems() {
- return subProjects.toArray(new Mappable[subProjects.size()]);
- }