/** * Set the Clusterer to use, given it's class name. A new clusterer will be * instantiated. * * @param newClustererName the clusterer class name. * @exception Exception if the class name is invalid. */ public void setClustererName(String newClustererName) throws Exception { try { setClusterer((DensityBasedClusterer) Class.forName(newClustererName) .newInstance()); } catch (Exception ex) { throw new Exception("Can't find Clusterer with class name: " + newClustererName); } }
/** * Set the Clusterer to use, given it's class name. A new clusterer will be * instantiated. * * @param newClustererName the clusterer class name. * @exception Exception if the class name is invalid. */ public void setClustererName(String newClustererName) throws Exception { try { setClusterer((DensityBasedClusterer) Class.forName(newClustererName) .newInstance()); } catch (Exception ex) { throw new Exception("Can't find Clusterer with class name: " + newClustererName); } }
setClusterer((DensityBasedClusterer) AbstractClusterer.forName(cName, null)); if (getClusterer() instanceof OptionHandler) { ((OptionHandler) getClusterer()).setOptions(Utils
setClusterer((DensityBasedClusterer) AbstractClusterer.forName(cName, null)); if (getClusterer() instanceof OptionHandler) { ((OptionHandler) getClusterer()).setOptions(Utils