Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 10th, 2012  |  syntax: None  |  size: 8.54 KB  |  hits: 20  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ## NERD_tree_1 [plain_text]
  2. " Press ? for help
  3.  
  4. >----------Bookmarks----------
  5. >dev-uni <mhannen/Develop/uni/
  6. >dev-work-i9 <Develop/work/i9/
  7. >uni <s/mhannen/Documents/uni/
  8. >uni-ba <s/uni/bachelorarbeit/
  9.  
  10. .. (up a dir)
  11. /Users/mhannen/Develop/work/i9/
  12. |+databases/
  13. |~java_sources/
  14. | |+bin/
  15. | |+i9/
  16. | |~weka/
  17. | | |+clusterquality/
  18. | | |~gui/
  19. | | | |~explorer/
  20. | | | | |+coda/
  21. | | | | |+tools/
  22. | | | | |-CodaPanel.java
  23. | | | | |-Explorer.props
  24. | | | | |-KernelPanel.java
  25. | | | | |-MCExplorerPanel.java
  26. | | | | |-OutlierPanel.java
  27. | | | | |-SCObserverPanel.java
  28. | | | | `-SubspaceClustererPanel.java
  29. | | | |+visualize/
  30. | | | |-BracketingPanel.java
  31. | | | |-GenericPropertiesCreator.props
  32. | | | |-OutlierEvaluationPanel.java
  33. | | | `-SubspaceClusterEvaluationPanel.java
  34. | | |+outlier/
  35. | | |+outlierquality/
  36. | | |+subspaceClusterer/
  37. | | `-siam09.fatjar
  38. | |-AbsoluteLayout.jar
  39. | |-collections-generic-4.01.jar
  40. | |-commons-beanutils-1.8.0-bin.zip
  41. | |-commons-beanutils-1.8.0-src.zip
  42. | |-ij.jar
  43. | |-j3dcore.jar
  44. | |-j3dutils.jar
  45. | |-Jama.jar
  46. | |-javaGD.jar
  47. | |-jcommon-1.0.0.jar
  48. | |-jcommon-1.0.13.jar
  49. | |-jcommon-1.0.8.jar
  50. | |-jfreechart-1.0.1.jar
  51. | |-jfreechart-1.0.10.jar
  52. | |-jfreechart-1.0.4.jar
  53. | |-jmf.jar
  54. | |-jRenderer3D.jar
  55. | |-JRI.jar
  56. | |-jung-algorithms-2.0-beta1.jar
  57. | |-jung-api-2.0-beta1.jar
  58. | |-jung-graph-impl-2.0-beta1.jar
  59. | |-jung-io-2.0-beta1.jar
  60. | |-junit-4.5.jar
  61. | |-KDD09.fatjar
  62. | |-log4j-1.2.15.jar
  63. | |-lpsolve55j.jar
  64. | |-mail.jar
  65. | |-poi-3.0.jar
  66. | |-qhull-2003.1.zip
  67. | |-QueryUML.png
  68. | |-RTree-UML(version-2).png
  69. | |-tags
  70. | |-vecmath.jar
  71. | |-visualsubclu.jar
  72. | |-visualsubclu.jardesc
  73. | |-weka.jar
  74. | |-weka.jardesc
  75. | `-xmlgraphics-commons-1.3.1.jar
  76. |+releases/
  77. `+RemoteSystemsTempFiles/
  78.  
  79. ## Develop/work/i9/java_sources/weka/gui/explorer/CodaPanel.java [java]
  80. /**
  81.  * @author Matthias Hannen (matthias.hannen@rwth-aachen.de)
  82.  */
  83. package weka.gui.explorer;
  84.  
  85.  
  86. import java.awt.BorderLayout;
  87.  
  88. import javax.swing.JPanel;
  89. import javax.swing.JTabbedPane;
  90.  
  91. import weka.core.Instances;
  92. import weka.gui.Logger;
  93. import weka.gui.explorer.Explorer.ExplorerPanel;
  94. import weka.gui.explorer.Explorer.LogHandler;
  95. import weka.gui.explorer.coda.AnalysisPanel;
  96. import weka.gui.explorer.coda.DeterminationPanel;
  97.  
  98.  
  99. // TODO: Auto-generated Javadoc
  100. /**
  101.  * The Class CodaPanel.
  102.  */
  103. public class CodaPanel extends JPanel implements ExplorerPanel, LogHandler
  104. {
  105.  
  106.         /** The Constant serialVersionUID. */
  107.         private static final long  serialVersionUID   = -7909659322741533771L;
  108.  
  109.         /** The destination for log/status messages. */
  110.         @SuppressWarnings ("unused")
  111.         private Logger             logger             = null;
  112.  
  113.         /** The main set of instances we're playing with. */
  114.         @SuppressWarnings ("unused")
  115.         private Instances          instances          = null;
  116.  
  117.         /** The main pane. */
  118.         private JTabbedPane        mainPane           = null;
  119.  
  120.         /** The determination panel. */
  121.         private DeterminationPanel determinationPanel = null;
  122.  
  123.         /**
  124.          * Instantiates a new coda panel.
  125.          */
  126.         public CodaPanel ()
  127.         {
  128.                 final AnalysisPanel analysisPanel = new AnalysisPanel ();
  129.  
  130.                 this.determinationPanel = new DeterminationPanel (analysisPanel);
  131.                 this.mainPane = mainPaneLayout (new JPanel[] { this.determinationPanel, analysisPanel });
  132.  
  133.                 setLayout (new BorderLayout ());
  134.                 add (this.mainPane, BorderLayout.CENTER);
  135.  
  136.                 analysisPanel.setParent (this.mainPane);
  137.         }
  138.  
  139.         /**
  140.          * Main panel layout.
  141.          *
  142.          * @param tabs
  143.          *            the tabs
  144.          * @return the j panel
  145.          */
  146.         private JTabbedPane mainPaneLayout (final JPanel[] tabs)
  147.         {
  148.                 final JTabbedPane pane = new JTabbedPane ();
  149.  
  150.                 for (final JPanel tab : tabs)
  151.                         pane.addTab (tab.getName (), tab);
  152.  
  153.                 return pane;
  154.         }
  155.  
  156.         /**
  157.          * Gets the explorer.
  158.          *
  159.          * @return the explorer
  160.          * @see weka.gui.explorer.Explorer.ExplorerPanel#getExplorer()
  161.          */
  162.         @Override
  163.         public Explorer getExplorer ()
  164.         {
  165.                 return null;
  166.         }
  167.  
  168.         /**
  169.          * Gets the tab title.
  170.          *
  171.          * @return the tab title
  172.          * @see weka.gui.explorer.Explorer.ExplorerPanel#getTabTitle()
  173.          */
  174.         @Override
  175.         public String getTabTitle ()
  176.         {
  177.                 return "CoDA";
  178.         }
  179.  
  180.         /**
  181.          * Gets the tab title tool tip.
  182.          *
  183.          * @return the tab title tool tip
  184.          * @see weka.gui.explorer.Explorer.ExplorerPanel#getTabTitleToolTip()
  185.          */
  186.         @Override
  187.         public String getTabTitleToolTip ()
  188.         {
  189.                 return "Interactive Cluster Based Concept Discovery";
  190.         }
  191.  
  192.         /**
  193.          * Sets the explorer.
  194.          *
  195.          * @param explorer
  196.          *            the new explorer
  197.          * @see weka.gui.explorer.Explorer.ExplorerPanel#setExplorer(weka.gui.explorer.Explorer)
  198.          */
  199.         @Override
  200.         public void setExplorer (final Explorer explorer)
  201.         {
  202.         }
  203.  
  204.         /**
  205.          * Sets the instances.
  206.          *
  207.          * @param instances
  208.          *            the new instances
  209.          * @see weka.gui.explorer.Explorer.ExplorerPanel#setInstances(weka.core.Instances)
  210.          */
  211.         @Override
  212.         public void setInstances (final Instances instances)
  213.         {
  214.                 this.instances = instances;
  215.         }
  216.  
  217.         /**
  218.          * Sets the log.
  219.          *
  220.          * @param logger
  221.          *            the new log
  222.          * @see weka.gui.explorer.Explorer.LogHandler#setLog(weka.gui.Logger)
  223.          */
  224.         @Override
  225.         public void setLog (final Logger logger)
  226.         {
  227.                 this.logger = logger;
  228.         }
  229. }
  230.  
  231. ## Develop/work/i9/java_sources/weka/gui/explorer/CodaPanel.java [java]
  232. /**
  233.  * @author Matthias Hannen (matthias.hannen@rwth-aachen.de)
  234.  */
  235. package weka.gui.explorer;
  236.  
  237.  
  238. import java.awt.BorderLayout;
  239.  
  240. import javax.swing.JPanel;
  241. import javax.swing.JTabbedPane;
  242.  
  243. import weka.core.Instances;
  244. import weka.gui.Logger;
  245. import weka.gui.explorer.Explorer.ExplorerPanel;
  246. import weka.gui.explorer.Explorer.LogHandler;
  247. import weka.gui.explorer.coda.AnalysisPanel;
  248. import weka.gui.explorer.coda.DeterminationPanel;
  249.  
  250.  
  251. // TODO: Auto-generated Javadoc
  252. /**
  253.  * The Class CodaPanel.
  254.  */
  255. public class CodaPanel extends JPanel implements ExplorerPanel, LogHandler
  256. {
  257.  
  258.         /** The Constant serialVersionUID. */
  259.         private static final long  serialVersionUID   = -7909659322741533771L;
  260.  
  261.         /** The destination for log/status messages. */
  262.         @SuppressWarnings ("unused")
  263.         private Logger             logger             = null;
  264.  
  265.         /** The main set of instances we're playing with. */
  266.         @SuppressWarnings ("unused")
  267.         private Instances          instances          = null;
  268.  
  269.         /** The main pane. */
  270.         private JTabbedPane        mainPane           = null;
  271.  
  272.         /** The determination panel. */
  273.         private DeterminationPanel determinationPanel = null;
  274.  
  275.         /**
  276.          * Instantiates a new coda panel.
  277.          */
  278.         public CodaPanel ()
  279.         {
  280.                 final AnalysisPanel analysisPanel = new AnalysisPanel ();
  281.  
  282.                 this.determinationPanel = new DeterminationPanel (analysisPanel);
  283.                 this.mainPane = mainPaneLayout (new JPanel[] { this.determinationPanel, analysisPanel });
  284.  
  285.                 setLayout (new BorderLayout ());
  286.                 add (this.mainPane, BorderLayout.CENTER);
  287.  
  288.                 analysisPanel.setParent (this.mainPane);
  289.         }
  290.  
  291.         /**
  292.          * Main panel layout.
  293.          *
  294.          * @param tabs
  295.          *            the tabs
  296.          * @return the j panel
  297.          */
  298.         private JTabbedPane mainPaneLayout (final JPanel[] tabs)
  299.         {
  300.                 final JTabbedPane pane = new JTabbedPane ();
  301.  
  302.                 for (final JPanel tab : tabs)
  303.                         pane.addTab (tab.getName (), tab);
  304.  
  305.                 return pane;
  306.         }
  307.  
  308.         /**
  309.          * Gets the explorer.
  310.          *
  311.          * @return the explorer
  312.          * @see weka.gui.explorer.Explorer.ExplorerPanel#getExplorer()
  313.          */
  314.         @Override
  315.         public Explorer getExplorer ()
  316.         {
  317.                 return null;
  318.         }
  319.  
  320.         /**
  321.          * Gets the tab title.
  322.          *
  323.          * @return the tab title
  324.          * @see weka.gui.explorer.Explorer.ExplorerPanel#getTabTitle()
  325.          */
  326.         @Override
  327.         public String getTabTitle ()
  328.         {
  329.                 return "CoDA";
  330.         }
  331.  
  332.         /**
  333.          * Gets the tab title tool tip.
  334.          *
  335.          * @return the tab title tool tip
  336.          * @see weka.gui.explorer.Explorer.ExplorerPanel#getTabTitleToolTip()
  337.          */
  338.         @Override
  339.         public String getTabTitleToolTip ()
  340.         {
  341.                 return "Interactive Cluster Based Concept Discovery";
  342.         }
  343.  
  344.         /**
  345.          * Sets the explorer.
  346.          *
  347.          * @param explorer
  348.          *            the new explorer
  349.          * @see weka.gui.explorer.Explorer.ExplorerPanel#setExplorer(weka.gui.explorer.Explorer)
  350.          */
  351.         @Override
  352.         public void setExplorer (final Explorer explorer)
  353.         {
  354.         }
  355.  
  356.         /**
  357.          * Sets the instances.
  358.          *
  359.          * @param instances
  360.          *            the new instances
  361.          * @see weka.gui.explorer.Explorer.ExplorerPanel#setInstances(weka.core.Instances)
  362.          */
  363.         @Override
  364.         public void setInstances (final Instances instances)
  365.         {
  366.                 this.instances = instances;
  367.         }
  368.  
  369.         /**
  370.          * Sets the log.
  371.          *
  372.          * @param logger
  373.          *            the new log
  374.          * @see weka.gui.explorer.Explorer.LogHandler#setLog(weka.gui.Logger)
  375.          */
  376.         @Override
  377.         public void setLog (final Logger logger)
  378.         {
  379.                 this.logger = logger;
  380.         }
  381. }