|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gicentre.treemappa.PTreeMappa
public class PTreeMappa
Wrapper class to allow Processing sketches to load, create and draw treemaps.
Constructor Summary | |
---|---|
PTreeMappa(processing.core.PApplet parent)
Creates an object capable of building and representing a treemap. |
|
PTreeMappa(processing.core.PApplet parent,
java.lang.String configFileName)
Creates a treemap from the details supplied in the given configuration file. |
Method Summary | |
---|---|
processing.core.PImage |
createImage()
Draws and provides an image containing the current treemap. |
void |
draw()
Draws the treemap directly in the parent sketch. |
TreeMappa |
getTreeMappa()
Provides the TreeMappa object used to build and display treemaps. |
TreeMapPanel |
getTreeMapPanel()
Provides a TreeMapPanel used to customise the appearance of the treemap. |
void |
readData(java.lang.String dataFileName)
Reads in CSV tree data from the Processing sketch's data folder. |
void |
readData(java.lang.String dataFileName,
java.lang.String fileFormat)
Reads in tree data in the given format from the Processing sketch's data folder. |
void |
setColourTable(java.lang.String cTableFileName)
Sets a new colour table from a colour table file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PTreeMappa(processing.core.PApplet parent)
parent
- Sketch in which this treemap will be used.public PTreeMappa(processing.core.PApplet parent, java.lang.String configFileName)
parent
- Sketch in which this treemap will be used.configFileName
- Name of file containing the treemap configuration.Method Detail |
---|
public void readData(java.lang.String dataFileName)
dataFileName
- Name of CSV file in the data folder representing the tree data.public void readData(java.lang.String dataFileName, java.lang.String fileFormat)
dataFileName
- Name of file in the data folder representing the tree data.fileFormat
- Format of data file, can be 'csv', 'csvSpatial', 'csvCompact' or 'treeML;public processing.core.PImage createImage()
public void draw()
public void setColourTable(java.lang.String cTableFileName)
cTableFileName
- Name of file containing the colour table to use to represent treemap nodes.public TreeMappa getTreeMappa()
public TreeMapPanel getTreeMapPanel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |