Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.watsonnet.jcap
Class JCap  view JCap download JCap.java

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Frame
                  extended byjavax.swing.JFrame
                      extended bycom.watsonnet.jcap.JCap
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.dnd.DropTargetListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable, javax.swing.WindowConstants

public class JCap
extends javax.swing.JFrame
implements java.awt.dnd.DropTargetListener


Nested Class Summary
 
Nested classes inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
 
Nested classes inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Nested classes inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
static java.lang.String APP_TITLE
           
static java.lang.String APP_VERSION
           
(package private)  javax.swing.JButton btnApplyKeywords
           
(package private)  javax.swing.JButton btnChooser
           
(package private)  javax.swing.JButton btnExif
           
(package private)  javax.swing.JButton btnFolderInfo
           
(package private)  javax.swing.JButton btnNext
           
(package private)  javax.swing.JButton btnNextEmpty
           
(package private)  javax.swing.JButton btnPrev
           
(package private)  javax.swing.JButton btnSearch
           
(package private)  javax.swing.JButton btnZoom
           
(package private)  ExifTableModel exifData
           
static int imageIndex
           
static java.io.File[] images
           
private static java.lang.String INI_FILE
           
(package private)  javax.swing.JLabel labelFilename
           
(package private)  javax.swing.JMenuBar menuBar
           
private static int MODE_BOTH
           
private static int MODE_NEXT
           
private static int MODE_PREV
           
(package private)  javax.swing.JPanel panelBottom
           
(package private)  javax.swing.JPanel panelExif
           
(package private)  ImagePanel panelImage
           
(package private)  javax.swing.JPanel panelImageInfo
           
(package private)  javax.swing.JPanel panelMain
           
(package private)  javax.swing.JPanel panelText
           
(package private)  javax.swing.JPanel panelTop
           
static java.util.Properties prop
           
(package private)  javax.swing.JScrollPane scrollDescription
           
(package private)  javax.swing.JScrollPane scrollExif
           
private  SearchPanel searchPanel
           
 boolean searchPanelVisible
           
(package private)  javax.swing.JSplitPane splitComment
           
(package private)  javax.swing.JSplitPane splitImageExif
           
(package private)  javax.swing.JTable tableExif
           
(package private)  javax.swing.JTextField textCaption
           
(package private)  javax.swing.JTextArea textDescription
           
(package private)  javax.swing.JTextField textKeywords
           
(package private)  javax.swing.JTextField textPath
           
(package private)  javax.swing.JToolBar toolbarMain
           
 
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Window
 
Fields inherited from class java.awt.Container
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
JCap()
           
 
Method Summary
private  void addExifData(ExifTableModel m, int n)
           
private  void applyKeywordsToAll()
           
private  void chooseFolder()
           
private  void clearText()
           
private  void closeApplication()
           
private  void copyExifToComment(int n)
           
 void dragEnter(java.awt.dnd.DropTargetDragEvent dtde)
          Called when the cursor hotspot enters a drop site which will accept the drag.
 void dragExit(java.awt.dnd.DropTargetEvent dte)
          Called when the cursor hotspot moves outside of a drop site which will accept the drag.
 void dragOver(java.awt.dnd.DropTargetDragEvent dtde)
          Called when the cursor hotspot moves inside of a drop site which will accept the drag.
 void drop(java.awt.dnd.DropTargetDropEvent dtde)
          Called when the drag operation has terminated with a drop.
 void dropActionChanged(java.awt.dnd.DropTargetDragEvent dtde)
          Called when the user modifies the drop gesture.
private  java.lang.String getCaptionFileName(int n)
           
private  java.lang.String getExifData(int n)
           
 void getImages(java.lang.String folder)
           
private  java.lang.String getIniFilename()
           
private  java.lang.String getKeywordsFileName(int n)
           
private  java.lang.String getLastFolder()
           
private  void getNextImage()
           
private  void getNextImageNoComment()
           
private  void getPreviousImage()
           
private  java.lang.String getTextFileName(int n)
           
private  void loadIni()
           
private  void loadText(int n)
           
private  void loadText(int n, boolean focus)
           
static void main(java.lang.String[] args)
           
private  void openFolder(java.lang.String folder)
           
private  void saveFile(java.io.File f, java.lang.String data)
           
 void saveIni()
           
private  void saveText(int n)
           
private  void setLastFolder(java.lang.String folder)
           
private  void showFirstImage()
           
private  void showFullSize(int n)
           
 void showImage(java.awt.Image img)
           
 void showImage(java.awt.Image img, boolean focus)
           
private  void showSearchDialog()
           
private  void updateFolderInfo()
           
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getPreferredSize, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processKeyEvent, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getGraphicsConfiguration, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

APP_TITLE

public static final java.lang.String APP_TITLE
See Also:
Constant Field Values

APP_VERSION

public static final java.lang.String APP_VERSION
See Also:
Constant Field Values

INI_FILE

private static final java.lang.String INI_FILE
See Also:
Constant Field Values

MODE_NEXT

private static final int MODE_NEXT
See Also:
Constant Field Values

MODE_PREV

private static final int MODE_PREV
See Also:
Constant Field Values

MODE_BOTH

private static final int MODE_BOTH
See Also:
Constant Field Values

prop

public static java.util.Properties prop

images

public static java.io.File[] images

imageIndex

public static int imageIndex

searchPanel

private SearchPanel searchPanel

searchPanelVisible

public boolean searchPanelVisible

panelMain

javax.swing.JPanel panelMain

panelTop

javax.swing.JPanel panelTop

panelBottom

javax.swing.JPanel panelBottom

toolbarMain

javax.swing.JToolBar toolbarMain

btnChooser

javax.swing.JButton btnChooser

btnNext

javax.swing.JButton btnNext

btnPrev

javax.swing.JButton btnPrev

btnExif

javax.swing.JButton btnExif

btnNextEmpty

javax.swing.JButton btnNextEmpty

btnZoom

javax.swing.JButton btnZoom

btnFolderInfo

javax.swing.JButton btnFolderInfo

btnSearch

javax.swing.JButton btnSearch

btnApplyKeywords

javax.swing.JButton btnApplyKeywords

panelExif

javax.swing.JPanel panelExif

exifData

ExifTableModel exifData

tableExif

javax.swing.JTable tableExif

scrollExif

javax.swing.JScrollPane scrollExif

panelImageInfo

javax.swing.JPanel panelImageInfo

panelImage

ImagePanel panelImage

labelFilename

javax.swing.JLabel labelFilename

textPath

javax.swing.JTextField textPath

panelText

javax.swing.JPanel panelText

textDescription

javax.swing.JTextArea textDescription

scrollDescription

javax.swing.JScrollPane scrollDescription

textCaption

javax.swing.JTextField textCaption

textKeywords

javax.swing.JTextField textKeywords

splitComment

javax.swing.JSplitPane splitComment

splitImageExif

javax.swing.JSplitPane splitImageExif

menuBar

javax.swing.JMenuBar menuBar
Constructor Detail

JCap

public JCap()
Method Detail

showSearchDialog

private void showSearchDialog()

showFirstImage

private void showFirstImage()

showImage

public void showImage(java.awt.Image img,
                      boolean focus)

showImage

public void showImage(java.awt.Image img)

showFullSize

private void showFullSize(int n)

getPreviousImage

private void getPreviousImage()

getNextImage

private void getNextImage()

getNextImageNoComment

private void getNextImageNoComment()

applyKeywordsToAll

private void applyKeywordsToAll()

getTextFileName

private java.lang.String getTextFileName(int n)

getKeywordsFileName

private java.lang.String getKeywordsFileName(int n)

getCaptionFileName

private java.lang.String getCaptionFileName(int n)

loadText

private void loadText(int n,
                      boolean focus)

loadText

private void loadText(int n)

clearText

private void clearText()

saveFile

private void saveFile(java.io.File f,
                      java.lang.String data)

saveText

private void saveText(int n)

copyExifToComment

private void copyExifToComment(int n)

getExifData

private java.lang.String getExifData(int n)

addExifData

private void addExifData(ExifTableModel m,
                         int n)

chooseFolder

private void chooseFolder()

openFolder

private void openFolder(java.lang.String folder)

setLastFolder

private void setLastFolder(java.lang.String folder)

getLastFolder

private java.lang.String getLastFolder()

updateFolderInfo

private void updateFolderInfo()

getImages

public void getImages(java.lang.String folder)

getIniFilename

private java.lang.String getIniFilename()

loadIni

private void loadIni()

saveIni

public void saveIni()

closeApplication

private void closeApplication()

dragEnter

public void dragEnter(java.awt.dnd.DropTargetDragEvent dtde)
Description copied from interface: java.awt.dnd.DropTargetListener
Called when the cursor hotspot enters a drop site which will accept the drag.

Specified by:
dragEnter in interface java.awt.dnd.DropTargetListener

dragExit

public void dragExit(java.awt.dnd.DropTargetEvent dte)
Description copied from interface: java.awt.dnd.DropTargetListener
Called when the cursor hotspot moves outside of a drop site which will accept the drag. This could also happen if the drop site is no longer active, or no longer accepts the drag.

Specified by:
dragExit in interface java.awt.dnd.DropTargetListener

dragOver

public void dragOver(java.awt.dnd.DropTargetDragEvent dtde)
Description copied from interface: java.awt.dnd.DropTargetListener
Called when the cursor hotspot moves inside of a drop site which will accept the drag.

Specified by:
dragOver in interface java.awt.dnd.DropTargetListener

drop

public void drop(java.awt.dnd.DropTargetDropEvent dtde)
Description copied from interface: java.awt.dnd.DropTargetListener
Called when the drag operation has terminated with a drop.

Specified by:
drop in interface java.awt.dnd.DropTargetListener

dropActionChanged

public void dropActionChanged(java.awt.dnd.DropTargetDragEvent dtde)
Description copied from interface: java.awt.dnd.DropTargetListener
Called when the user modifies the drop gesture. This is often the case when additional mouse or key events are received during the drag.

Specified by:
dropActionChanged in interface java.awt.dnd.DropTargetListener

main

public static void main(java.lang.String[] args)