|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
weka.gui.beans.ImageSaver
public class ImageSaver
Component that can accept ImageEvents and save their encapsulated images to a file.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.BaselineResizeBehavior |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ImageSaver()
Constructs a new ImageSaver |
|
| Method Summary | |
|---|---|
void |
acceptImage(ImageEvent imageE)
Accept and process an ImageEvent |
boolean |
connectionAllowed(EventSetDescriptor esd)
Returns true if, at this time, the object will accept a connection via the named event |
boolean |
connectionAllowed(String eventName)
Returns true if, at this time, the object will accept a connection via the named event |
void |
connectionNotification(String eventName,
Object source)
Notify this object that it has been registered as a listener with a source for recieving events described by the named event This object is responsible for recording this fact. |
void |
disconnectionNotification(String eventName,
Object source)
Notify this object that it has been deregistered as a listener with a source for named event. |
String |
getCustomName()
Get the custom (descriptive) name for this bean (if one has been set) |
String |
getFilename()
Get the filename to save to |
BeanVisual |
getVisual()
Get the visual representation |
String |
globalInfo()
Global info for this bean |
boolean |
isBusy()
Returns true if. |
void |
setCustomName(String name)
Set a custom (descriptive) name for this bean |
void |
setEnvironment(Environment env)
Set environment variables to use |
void |
setFilename(String filename)
Set the filename to save to |
void |
setLog(Logger logger)
Set a logger |
void |
setVisual(BeanVisual newVisual)
Set a new visual representation |
void |
stop()
Stop any processing that the bean might be doing. |
void |
useDefaultVisual()
Use the default visual representation |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ImageSaver()
| Method Detail |
|---|
public String globalInfo()
String valuepublic void setFilename(String filename)
filename - the filename to save topublic String getFilename()
public void setEnvironment(Environment env)
setEnvironment in interface EnvironmentHandlerenv - the environment variables to usepublic void useDefaultVisual()
Visible
useDefaultVisual in interface Visiblepublic void setVisual(BeanVisual newVisual)
Visible
setVisual in interface VisiblenewVisual - a BeanVisual valuepublic BeanVisual getVisual()
Visible
getVisual in interface VisibleBeanVisual valuepublic void setCustomName(String name)
BeanCommon
setCustomName in interface BeanCommonname - the name to usepublic String getCustomName()
BeanCommon
getCustomName in interface BeanCommonpublic void stop()
BeanCommon
stop in interface BeanCommonpublic boolean isBusy()
BeanCommon
isBusy in interface BeanCommonpublic void setLog(Logger logger)
BeanCommon
setLog in interface BeanCommonlogger - a weka.gui.Logger valuepublic boolean connectionAllowed(EventSetDescriptor esd)
BeanCommon
connectionAllowed in interface BeanCommonesd - the EventSetDescriptor for the event in question
public boolean connectionAllowed(String eventName)
BeanCommon
connectionAllowed in interface BeanCommoneventName - the name of the event
public void connectionNotification(String eventName,
Object source)
BeanCommon
connectionNotification in interface BeanCommoneventName - the eventsource - the source with which this object has been registered as
a listener
public void disconnectionNotification(String eventName,
Object source)
BeanCommon
disconnectionNotification in interface BeanCommoneventName - the eventsource - the source with which this object has been registered as
a listenerpublic void acceptImage(ImageEvent imageE)
acceptImage in interface ImageListenerimageE - the ImageEvent to process
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||