/** * Accept a new text result and add it to the result list * * @param name the name of the result * @param text the text of the result */ @Override public void acceptTextResult(String name, String text) { m_history.addResult(name, new StringBuffer().append(text)); m_history.setSingle(name); }
/** * Accept a new text result and add it to the result list * * @param name the name of the result * @param text the text of the result */ @Override public void acceptTextResult(String name, String text) { m_history.addResult(name, new StringBuffer().append(text)); m_history.setSingle(name); }
jf.getContentPane().setLayout(new BorderLayout()); final ResultHistoryPanel jd = new ResultHistoryPanel(null); jd.addResult("blah", new StringBuffer("Nothing to see here")); jd.addResult("blah1", new StringBuffer("Nothing to see here1")); jd.addResult("blah2", new StringBuffer("Nothing to see here2")); jd.addResult("blah3", new StringBuffer("Nothing to see here3")); jf.getContentPane().add(jd, BorderLayout.CENTER); jf.addWindowListener(new java.awt.event.WindowAdapter() {
jf.getContentPane().setLayout(new BorderLayout()); final ResultHistoryPanel jd = new ResultHistoryPanel(null); jd.addResult("blah", new StringBuffer("Nothing to see here")); jd.addResult("blah1", new StringBuffer("Nothing to see here1")); jd.addResult("blah2", new StringBuffer("Nothing to see here2")); jd.addResult("blah3", new StringBuffer("Nothing to see here3")); jf.getContentPane().add(jd, BorderLayout.CENTER); jf.addWindowListener(new java.awt.event.WindowAdapter() {
/** * Accept a graph * * @param e a <code>GraphEvent</code> value */ @Override public synchronized void acceptGraph(GraphEvent e) { ArrayList<Object> graphInfo = new ArrayList<Object>(); if (m_history == null) { setUpResultHistory(); } String name = (new SimpleDateFormat("HH:mm:ss - ")).format(new Date()); name += e.getGraphTitle(); graphInfo.add(new Integer(e.getGraphType())); graphInfo.add(e.getGraphString()); m_history.addResult(name, new StringBuffer()); m_history.addObject(name, graphInfo); }
/** * Accept a graph * * @param e a <code>GraphEvent</code> value */ @Override public synchronized void acceptGraph(GraphEvent e) { ArrayList<Object> graphInfo = new ArrayList<Object>(); if (m_history == null) { setUpResultHistory(); } String name = (new SimpleDateFormat("HH:mm:ss - ")).format(new Date()); name += e.getGraphTitle(); graphInfo.add(new Integer(e.getGraphType())); graphInfo.add(e.getGraphString()); m_history.addResult(name, new StringBuffer()); m_history.addObject(name, graphInfo); }
@Override public synchronized void acceptImage(ImageEvent imageE) { BufferedImage image = imageE.getImage(); String name = (new SimpleDateFormat("HH:mm:ss:SS")).format(new Date()); name = (imageE.getImageName() == null || imageE.getImageName().length() == 0 ? "Image at " : imageE.getImageName() + " ") + name; m_history.addResult(name, new StringBuffer()); m_history.addObject(name, image); m_plotter.setImage(image); m_plotter.repaint(); }
@Override public synchronized void acceptImage(ImageEvent imageE) { BufferedImage image = imageE.getImage(); String name = (new SimpleDateFormat("HH:mm:ss:SS")).format(new Date()); name = (imageE.getImageName() == null || imageE.getImageName().length() == 0 ? "Image at " : imageE.getImageName() + " ") + name; m_history.addResult(name, new StringBuffer()); m_history.addObject(name, image); m_plotter.setImage(image); m_plotter.repaint(); }
mod++; m_history.addResult(name, result); m_history.setSingle(name);
mod++; m_history.addResult(name, result); m_history.setSingle(name);
outBuff .append("Available resultsets\n" + m_TTester.resultsetKey() + "\n\n"); m_History.addResult(name, outBuff); m_History.setSingle(name);
outBuff .append("Available resultsets\n" + m_TTester.resultsetKey() + "\n\n"); m_History.addResult(name, outBuff); m_History.setSingle(name);
@Override public void newPlotStarted(String description) { BufferedImage currentImage = ((BoundaryPlotter) getStep()).getCurrentImage(); if (currentImage != null) { m_history.addResult(description, new StringBuffer()); m_history.addObject(description, currentImage); m_history.setSelectedListValue(description); m_plotter.setImage(currentImage); m_plotter.repaint(); } }
@Override public void newPlotStarted(String description) { BufferedImage currentImage = ((BoundaryPlotter) getStep()).getCurrentImage(); if (currentImage != null) { m_history.addResult(description, new StringBuffer()); m_history.addObject(description, currentImage); m_history.setSelectedListValue(description); m_plotter.setImage(currentImage); m_plotter.repaint(); } }
outBuff.append(m_TTester.header(compareCol)); outBuff.append("\n"); m_History.addResult(name, outBuff); m_History.setSingle(name); m_TTester.setDisplayedResultsets(m_DisplayedList.getSelectedIndices());
outBuff.append(m_TTester.header(compareCol)); outBuff.append("\n"); m_History.addResult(name, outBuff); m_History.setSingle(name); m_TTester.setDisplayedResultsets(m_DisplayedList.getSelectedIndices());
for (Map.Entry<String, String> e : runResults.entrySet()) { m_history .addResult(e.getKey(), new StringBuffer().append(e.getValue())); lastName = e.getKey();
for (Map.Entry<String, String> e : runResults.entrySet()) { m_history .addResult(e.getKey(), new StringBuffer().append(e.getValue())); lastName = e.getKey();
for (Map.Entry<String, BufferedImage> e : ((ImageViewer) getStep()) .getImages().entrySet()) { m_history.addResult(e.getKey(), new StringBuffer()); m_history.addObject(e.getKey(), e.getValue()); if (first) {
if (images != null) { for (Map.Entry<String, BufferedImage> e : images.entrySet()) { m_history.addResult(e.getKey(), new StringBuffer()); m_history.addObject(e.getKey(), e.getValue()); if (first) {