public class Editor extends JPanel implements ItemListener, ImageOutputConfigFacade, SelectorObserver, CamInitializationObserver, FpsObserver, ExportAbortInformer, WindowListener
Modifier and Type | Class and Description |
---|---|
static class |
Editor.EditorView
Possible viewport configurations within the editor.
|
static class |
Editor.ImageExportState
States that picture upload can be in.
|
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
Editor() |
Modifier and Type | Method and Description |
---|---|
void |
camFailed()
Invoked when web cam device failed to initialize.
|
void |
camReady()
Invoked when web cam device has been fully and successfully
initialized and has just began operating.
|
void |
camScanComplete(List<VideoDevice> devices,
ActionListener listener)
Fired when a scan of all available video capture devices has completed.
|
void |
fpsComputed(double fpsLive,
double fpsAverage)
Fired when the most recent frame per second values were obtained.
|
ImageOutputFormat |
getImageOutputFormat() |
float |
getSelectorFactor() |
String |
getSubmitUrl() |
boolean |
getSuggestedColorComboBoxVisibility()
Computes visibility for color combo box component based on the state
of other related controls.
|
int |
getTargetHeight() |
int |
getTargetShape() |
int |
getTargetWidth() |
boolean |
isExportAborted()
Allows to check during the export in progress if abort request has been
issued.
|
boolean |
isRatioPreserved() |
void |
itemStateChanged(ItemEvent e) |
void |
onFilterEventQueue(ImageFilterQueueEvent ev) |
void |
onImageOpen(ImageLoadEvent ev) |
void |
onModelLifecycle(ModelLifecycleEvent ev) |
void |
onModelRotated(ModelRotateEvent ev) |
void |
selectorClosed()
Fired when selector becomes hidden.
|
void |
selectorMoved(int x,
int y)
Fired when selector was moved
|
void |
selectorResized(int width,
int height)
Fired when selector size was modified
|
void |
windowActivated(WindowEvent e) |
void |
windowClosed(WindowEvent e) |
void |
windowClosing(WindowEvent e) |
void |
windowDeactivated(WindowEvent e) |
void |
windowDeiconified(WindowEvent e) |
void |
windowIconified(WindowEvent e) |
void |
windowOpened(WindowEvent e) |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public void onImageOpen(ImageLoadEvent ev)
public void itemStateChanged(ItemEvent e)
itemStateChanged
in interface ItemListener
public boolean getSuggestedColorComboBoxVisibility()
public boolean isExportAborted()
ExportAbortInformer
isExportAborted
in interface ExportAbortInformer
public int getTargetWidth()
getTargetWidth
in interface ImageOutputConfigFacade
public boolean isRatioPreserved()
isRatioPreserved
in interface ImageOutputConfigFacade
public int getTargetHeight()
getTargetHeight
in interface ImageOutputConfigFacade
public int getTargetShape()
getTargetShape
in interface ImageOutputConfigFacade
public float getSelectorFactor()
getSelectorFactor
in interface ImageOutputConfigFacade
public String getSubmitUrl()
getSubmitUrl
in interface ImageOutputConfigFacade
public ImageOutputFormat getImageOutputFormat()
getImageOutputFormat
in interface ImageOutputConfigFacade
public void selectorMoved(int x, int y)
SelectorObserver
selectorMoved
in interface SelectorObserver
x
- - new x-coordinate of selector's right upper cornery
- - new y-coordinate of selector's right upper cornerpublic void selectorResized(int width, int height)
SelectorObserver
selectorResized
in interface SelectorObserver
width
- - new widthheight
- - new heightpublic void selectorClosed()
SelectorObserver
selectorClosed
in interface SelectorObserver
public void onModelLifecycle(ModelLifecycleEvent ev)
public void onModelRotated(ModelRotateEvent ev)
public void camReady()
CamInitializationObserver
camReady
in interface CamInitializationObserver
public void camFailed()
CamInitializationObserver
camFailed
in interface CamInitializationObserver
public void camScanComplete(List<VideoDevice> devices, ActionListener listener)
CamInitializationObserver
camScanComplete
in interface CamInitializationObserver
devices
- list of devices found on the host systemlistener
- the listener object that wishes to be informed of gui
action invoked as a result of this event; null if nonepublic void fpsComputed(double fpsLive, double fpsAverage)
FpsObserver
fpsComputed
in interface FpsObserver
fpsLive
- most recently calculated live valuefpsAverage
- most recently calculated average fps over a
historical samplepublic void onFilterEventQueue(ImageFilterQueueEvent ev)
public void windowOpened(WindowEvent e)
windowOpened
in interface WindowListener
public void windowClosing(WindowEvent e)
windowClosing
in interface WindowListener
public void windowClosed(WindowEvent e)
windowClosed
in interface WindowListener
public void windowIconified(WindowEvent e)
windowIconified
in interface WindowListener
public void windowDeiconified(WindowEvent e)
windowDeiconified
in interface WindowListener
public void windowActivated(WindowEvent e)
windowActivated
in interface WindowListener
public void windowDeactivated(WindowEvent e)
windowDeactivated
in interface WindowListener
Copyright © 2012-2013 Bambi Software Foundation. All Rights Reserved.