@Override public void useDefaultVisual() { m_visual.loadIcons( BeanVisual.ICON_PATH + "FlowByExpression.png", BeanVisual.ICON_PATH + "FlowByExpression.png"); m_visual.setText("FlowByExpression"); }
/** * Set the clusterer for this wrapper * * @param c a <code>weka.clusterers.Clusterer</code> value */ public void setClusterer(weka.clusterers.Clusterer c) { boolean loadImages = true; if (c.getClass().getName().compareTo(m_Clusterer.getClass().getName()) == 0) { loadImages = false; } else { // clusterer has changed so any batch training status is now // invalid m_trainingSet = null; } m_Clusterer = c; String clustererName = c.getClass().toString(); clustererName = clustererName.substring(clustererName.lastIndexOf('.') + 1, clustererName.length()); if (loadImages) { if (!m_visual.loadIcons( BeanVisual.ICON_PATH + clustererName + ".gif", BeanVisual.ICON_PATH + clustererName + "_animated.gif")) { useDefaultVisual(); } } m_visual.setText(clustererName); // get global info m_globalInfo = KnowledgeFlowApp.getGlobalInfo(m_Clusterer); }
@Override public void setCustomName(String name) { m_visual.setText(name); }
/** Use the default visual representation */ @Override public void useDefaultVisual() { m_visual.loadIcons( BeanVisual.ICON_PATH + "Sorter.gif", BeanVisual.ICON_PATH + "Sorter_animated.gif"); m_visual.setText("Sorter"); }