Class AbstractGraphicsGenerator

    • Field Detail

      • m_Title

        protected String m_Title
        the title of the dialog.
      • m_Suffix

        protected String m_Suffix
        an optional suffix for the filename (before the extension).
      • m_Width

        protected int m_Width
        the width of the dialog.
      • m_Height

        protected int m_Height
        the height of the dialog.
      • m_Component

        protected JComponent m_Component
        the component to create the screenshot from.
      • m_Frame

        protected BaseFrame m_Frame
        the frame in use.
    • Constructor Detail

      • AbstractGraphicsGenerator

        public AbstractGraphicsGenerator()
    • Method Detail

      • getDefaultTitle

        protected abstract String getDefaultTitle()
        Returns the default title for the dialog.
        Returns:
        the default title
      • getDefaultWidth

        protected abstract int getDefaultWidth()
        Returns the default width for the dialog.
        Returns:
        the default width
      • getDefaultHeight

        protected abstract int getDefaultHeight()
        Returns the default height for the dialog.
        Returns:
        the default height
      • setTitle

        public void setTitle​(String value)
        Sets the title of the dialog.
        Parameters:
        value - the title
      • getTitle

        public String getTitle()
        Returns the currently set title of the dialog.
        Returns:
        the title
      • titleTipText

        public String titleTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setSuffix

        public void setSuffix​(String value)
        Sets the suffix for the filename.
        Parameters:
        value - the suffix
      • getSuffix

        public String getSuffix()
        Returns the currently set suffix for the filename.
        Returns:
        the suffix
      • suffixTipText

        public String suffixTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setWidth

        public void setWidth​(int value)
        Sets the width of the dialog.
        Parameters:
        value - the width
      • getWidth

        public int getWidth()
        Returns the currently set width of the dialog.
        Returns:
        the width
      • widthTipText

        public String widthTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setHeight

        public void setHeight​(int value)
        Sets the height of the dialog.
        Parameters:
        value - the height
      • getHeight

        public int getHeight()
        Returns the currently set height of the dialog.
        Returns:
        the height
      • heightTipText

        public String heightTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setOutput

        public void setOutput​(PlaceholderFile value)
        Sets the output.
        Parameters:
        value - the output
      • getOutput

        public PlaceholderFile getOutput()
        Returns the output.
        Returns:
        the output
      • outputTipText

        public abstract String outputTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setWriter

        public void setWriter​(JComponentWriter value)
        Sets the writer.
        Parameters:
        value - the writer
      • getWriter

        public JComponentWriter getWriter()
        Returns the writer.
        Returns:
        the writer
      • writerTipText

        public String writerTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • generateComponent

        protected abstract JComponent generateComponent()
        Generates the component to display in the frame.
        Returns:
        the component
      • generateFilename

        protected abstract PlaceholderFile generateFilename()
        Generates the filename for the output.
        Returns:
        the file
      • generateFrame

        protected BaseFrame generateFrame()
        Generates a frame with the specified title. Places the component in the CENTER of the frame.
        Returns:
        the generated frame
      • displayFrame

        protected void displayFrame()
        Generates and displays the frame.
      • generateOutput

        protected String generateOutput()
        Generates output for the component, stores it in the specified file.
        Returns:
        null if everything OK, otherwise the error message
      • hideFrame

        protected void hideFrame()
        Hides the frame.
      • disposeComponent

        protected void disposeComponent()
        Disposes the generated component again.
      • doExecute

        protected String doExecute()
        Executes the flow item.
        Specified by:
        doExecute in class AbstractActor
        Returns:
        null if everything is fine, otherwise error message