Class ImageArgument

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.beans.PropertyChangeListener, java.util.EventListener

    public class ImageArgument
    extends AbstractArgument
    StringArgument class if the argument is a com.lowagie.text.Image.
    Since:
    2.1.1 (imported from itexttoolbox project)
    • Field Detail

      • filter

        private javax.swing.filechooser.FileFilter filter
        a filter to put on the FileChooser.
    • Constructor Detail

      • ImageArgument

        public ImageArgument​(AbstractTool tool,
                             java.lang.String name,
                             java.lang.String description,
                             javax.swing.filechooser.FileFilter filter)
        Constructs a FileArgument.
        Parameters:
        tool - the tool that needs this argument
        name - the name of the argument
        description - the description of the argument
        filter - a custom filter
      • ImageArgument

        public ImageArgument​(AbstractTool tool,
                             java.lang.String name,
                             java.lang.String description)
        Constructs a FileArgument.
        Parameters:
        tool - the tool that needs this argument
        name - the name of the argument
        description - the description of the argument
    • Method Detail

      • getArgument

        public java.lang.Object getArgument()
                                     throws java.lang.InstantiationException
        Gets the argument as an object.
        Overrides:
        getArgument in class AbstractArgument
        Returns:
        an object
        Throws:
        java.lang.InstantiationException - if the specified key cannot be compared with the keys currently in the map
      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent e)
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener
        Specified by:
        actionPerformed in class AbstractArgument
        Parameters:
        e - ActionEvent
        See Also:
        ActionListener.actionPerformed(java.awt.event.ActionEvent)