|
The Meta-Environment API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nl.cwi.sen1.visplugin.VisualizationPluginWindow nl.cwi.sen1.visplugin.piechart.PCVisualizationWindow
public class PCVisualizationWindow
PieChart Plugin VisualisationWindow. Shows a pie chart.
Field Summary |
---|
Fields inherited from class nl.cwi.sen1.visplugin.VisualizationPluginWindow |
---|
m_factory |
Constructor Summary | |
---|---|
PCVisualizationWindow()
|
Method Summary | |
---|---|
org.jfree.data.general.DefaultPieDataset |
convertRTupleToDataset(nl.cwi.sen1.relationstores.types.RTuple fact)
Convert RTuple into a PieChart Dataset. |
private org.jfree.chart.JFreeChart |
createPieChart(java.lang.String name,
org.jfree.data.general.DefaultPieDataset dataset)
Create the pie chart. |
java.lang.String |
getRTupleName(nl.cwi.sen1.relationstores.types.RTuple fact)
Get the name of the RTuple. |
private boolean |
isRelInt(nl.cwi.sen1.relationstores.types.RTuple fact)
Check to see if the RTuple is indeed a int relation. |
private boolean |
isRelIntStr(nl.cwi.sen1.relationstores.types.RTuple fact)
/** Check to see if the RTuple is indeed a str,int relation. |
private boolean |
isRelStrInt(nl.cwi.sen1.relationstores.types.RTuple fact)
Check to see if the RTuple is indeed a str,int relation. |
boolean |
isTypeSupported(nl.cwi.sen1.relationstores.types.RTuple fact)
Check if a given RType is supported by this visualisation. |
javax.swing.JPanel |
render(nl.cwi.sen1.relationstores.types.RTuple fact)
Render the RTuple in a Pie Chart. |
void |
setFactory(nl.cwi.sen1.relationstores.Factory factory)
Set a new Factory object, for testing purposes. |
Methods inherited from class nl.cwi.sen1.visplugin.VisualizationPluginWindow |
---|
createExtensionMenu, disconnectComponent, displayVisualization, executeOnLoad, exportToCsv, exportToCsvClicked, exportToImage, factOutOfDate, getController, getFactId, getStoreId, getStudio, getWindowId, initializeWindow, openLocationInEditor, rstoreUnloaded, showPopUp |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PCVisualizationWindow()
Method Detail |
---|
public javax.swing.JPanel render(nl.cwi.sen1.relationstores.types.RTuple fact)
render
in class nl.cwi.sen1.visplugin.VisualizationPluginWindow
fact
- RTuple with the information
public void setFactory(nl.cwi.sen1.relationstores.Factory factory)
factory
- Factory to usepublic boolean isTypeSupported(nl.cwi.sen1.relationstores.types.RTuple fact)
fact
- The facts for which to verify if the type is supported
private boolean isRelStrInt(nl.cwi.sen1.relationstores.types.RTuple fact)
fact
- RTuple to test
private boolean isRelInt(nl.cwi.sen1.relationstores.types.RTuple fact)
fact
- RTuple to test
private boolean isRelIntStr(nl.cwi.sen1.relationstores.types.RTuple fact)
fact
- RTuple to test
public java.lang.String getRTupleName(nl.cwi.sen1.relationstores.types.RTuple fact)
fact
- RTuple holding information
private org.jfree.chart.JFreeChart createPieChart(java.lang.String name, org.jfree.data.general.DefaultPieDataset dataset)
name
- Name to display on screendataset
- Dataset to show
public org.jfree.data.general.DefaultPieDataset convertRTupleToDataset(nl.cwi.sen1.relationstores.types.RTuple fact)
fact
- RTuple with the data
|
The Meta-Environment API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |