org.apache.jmeter.report.gui.action

Class ReportSaveGraphics

Implemented Interfaces:
Command

public class ReportSaveGraphics
extends Object
implements Command

SaveGraphics action is meant to be a generic reusable Action. The class will use GUIPackage to get the current gui. Once it does, it checks to see if the element implements Printable interface. If it does, it call getPrintable() to get the JComponent. By default, it will use SaveGraphicsService to save a PNG file if no extension is provided. If either .png or .tif is in the filename, it will call SaveGraphicsService to save in the format.

Field Summary

static String
SAVE_GRAPHICS

Constructor Summary

ReportSaveGraphics()
Constructor for the Save object.

Method Summary

void
doAction(ActionEvent e)
Set
getActionNames()
Gets the ActionNames attribute of the Save object.

Field Details

SAVE_GRAPHICS

public static final String SAVE_GRAPHICS

Constructor Details

ReportSaveGraphics

public ReportSaveGraphics()
Constructor for the Save object.

Method Details

doAction

public void doAction(ActionEvent e)
            throws IllegalUserActionException
Specified by:
doAction in interface Command

getActionNames

public Set getActionNames()
Gets the ActionNames attribute of the Save object.
Specified by:
getActionNames in interface Command
Returns:
the ActionNames value

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.