tools.docrobot
Class ImageWatermarkRobot

java.lang.Object
  extended by tools.docrobot.ImageWatermarkRobot
Direct Known Subclasses:
ImageWatermarkAngelina, ImageWatermarkBeyonce, ImageWatermarkDominic, ImageWatermarkTerry

public abstract class ImageWatermarkRobot
extends java.lang.Object

The base class for taking a single screenshot for Substance documentation.

Author:
Kirill Grouchnikov

Field Summary
protected  java.lang.String screenshotFilename
          The screenshot filename.
protected  javax.swing.JFrame sf
          The frame instance.
 
Constructor Summary
ImageWatermarkRobot(java.lang.String screenshotFilename)
          Creates the new screenshot robot.
 
Method Summary
protected abstract  void apply()
          Applies instance-specific Substance settings before taking the screenshot.
 void makeScreenshot()
          Creates the screenshot and saves it on the disk.
 void run()
          Runs the screenshot process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

screenshotFilename

protected java.lang.String screenshotFilename
The screenshot filename.


sf

protected javax.swing.JFrame sf
The frame instance.

Constructor Detail

ImageWatermarkRobot

public ImageWatermarkRobot(java.lang.String screenshotFilename)
Creates the new screenshot robot.

Parameters:
screenshotFilename - The screenshot filename.
Method Detail

run

public void run()
Runs the screenshot process.


apply

protected abstract void apply()
Applies instance-specific Substance settings before taking the screenshot.


makeScreenshot

public void makeScreenshot()
Creates the screenshot and saves it on the disk.