|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.gui.visualize.JComponentWriter
weka.gui.visualize.BMPWriter
public class BMPWriter
This class takes any JComponent and outputs it to a BMP-file. Scaling is by default disabled, since we always take a screenshot.
| Constructor Summary | |
|---|---|
BMPWriter()
initializes the object |
|
BMPWriter(javax.swing.JComponent c)
initializes the object with the given Component |
|
BMPWriter(javax.swing.JComponent c,
java.io.File f)
initializes the object with the given Component and filename |
|
| Method Summary | |
|---|---|
void |
generateOutput()
generates the actual output |
java.awt.Color |
getBackground()
returns the current background color |
java.lang.String |
getDescription()
returns the name of the writer, to display in the FileChooser. |
java.lang.String |
getExtension()
returns the extension (incl. |
void |
initialize()
further initialization |
static void |
main(java.lang.String[] args)
for testing only |
void |
setBackground(java.awt.Color c)
sets the background color to use in creating the JPEG |
| Methods inherited from class weka.gui.visualize.JComponentWriter |
|---|
getComponent, getCustomHeight, getCustomWidth, getFile, getScalingEnabled, getUseCustomDimensions, getXScale, getYScale, setComponent, setCustomHeight, setCustomWidth, setFile, setScale, setScalingEnabled, setUseCustomDimensions, toOutput, toOutput, toOutput |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BMPWriter()
public BMPWriter(javax.swing.JComponent c)
c - the component to print in the output format
public BMPWriter(javax.swing.JComponent c,
java.io.File f)
c - the component to print in the output formatf - the file to store the output in| Method Detail |
|---|
public void initialize()
public java.lang.String getDescription()
getDescription in class JComponentWriterpublic java.lang.String getExtension()
getExtension in class JComponentWriterpublic java.awt.Color getBackground()
public void setBackground(java.awt.Color c)
c - the color to use for background
public void generateOutput()
throws java.lang.Exception
java.lang.Exception - if something goes wrong
public static void main(java.lang.String[] args)
throws java.lang.Exception
args - the commandline arguments
java.lang.Exception - if something goes wrong
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||