Landmark
Class LmsWizardPopup.DisplayZoomedImg

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by Landmark.LmsWizardPopup.DisplayZoomedImg
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable
Enclosing class:
LmsWizardPopup

 class LmsWizardPopup.DisplayZoomedImg
extends javax.swing.JComponent


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 int canvasHeight
          canvas height
 int canvasWidth
          canvas width
 int centerPtX
          center point X
 int centerPtY
          center point Y
 java.awt.Dimension curDim
          keep track size, resizing window
 DrawOverlays dol
          instance of DrawOverlays
 boolean drawOverlayBordersFlag
          for drawing a border around separate window
 int dx1
          destination window x1 coord
 int dx2
          destination window x2 coord
 int dy1
          destination window y1 coord
 int dy2
          destination window y2 coord
 java.lang.String flickerTitle
          title for rt flicker window
 boolean flickerWindFlag
          if flicker window or rt window flag
 java.awt.Image img
          image to display
 int origPixHeight
          original picture height
 int origPixWidth
          original picture width
 java.awt.Dimension preferedSize
          preferred size of canvas
 int preferredHeight
          preferred size of canvas
 int preferredWidth
          preferred size of canvas
(package private) static long serialVersionUID
          frame id
 int sx1
          source window x1 coord
 int sx2
          source window x2 coord
 int sy1
          source window y1 coord
 int sy2
          source window y2 coord
 java.lang.String title
          title
(package private)  int tSize
          target Size
 int xImg
          image address (x,y)+(xBase,yBase)
 int yImg
          image address (x,y)+(xBase,yBase)
 int zoomFactor
          zoom factor
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, 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
LmsWizardPopup.DisplayZoomedImg(java.awt.Image img, int canvasWidth, int canvasHeight, int xImg, int yImg, int origPixWidth, int origPixHeight, boolean drawOverlayBordersFlag, java.lang.String title)
          DisplayZoomedImg() - constructor.
 
Method Summary
private  void drawTargetOverlay(java.awt.Graphics g)
          drawTargetOverlay() - Draw Target Overlay in the window.
 java.awt.Dimension getMaximumSize()
          getMaximumSize() - getMaximumSize, must be implemented for window to be displayed correctly.
 java.awt.Dimension getMinimumSize()
          getMinimumSize() - getMinimumSize, must be implemented for window to be displayed correctly.
 java.awt.Dimension getPreferredSize()
          getPreferredSize() - getPreferredSize, must be implemented for window to be displayed correctly.
protected  void paintComponent(java.awt.Graphics g)
          paintComponent() - paint the image wizard zoom panels
 boolean setImage(java.awt.Image img, int xImg, int yImg, int zoomFactor)
          setImage() - reset image center on new coords
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, 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, updateUI
 
Methods inherited from class java.awt.Container
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, transferFocusBackward, 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, 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, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
frame id

See Also:
Constant Field Values

img

public java.awt.Image img
image to display


curDim

public java.awt.Dimension curDim
keep track size, resizing window


canvasWidth

public int canvasWidth
canvas width


canvasHeight

public int canvasHeight
canvas height


xImg

public int xImg
image address (x,y)+(xBase,yBase)


yImg

public int yImg
image address (x,y)+(xBase,yBase)


centerPtX

public int centerPtX
center point X


centerPtY

public int centerPtY
center point Y


preferedSize

public java.awt.Dimension preferedSize
preferred size of canvas


preferredWidth

public int preferredWidth
preferred size of canvas


preferredHeight

public int preferredHeight
preferred size of canvas


tSize

final int tSize
target Size

See Also:
Constant Field Values

zoomFactor

public int zoomFactor
zoom factor


dol

public DrawOverlays dol
instance of DrawOverlays


origPixWidth

public int origPixWidth
original picture width


origPixHeight

public int origPixHeight
original picture height


dx1

public int dx1
destination window x1 coord


dy1

public int dy1
destination window y1 coord


dx2

public int dx2
destination window x2 coord


dy2

public int dy2
destination window y2 coord


sx1

public int sx1
source window x1 coord


sy1

public int sy1
source window y1 coord


sx2

public int sx2
source window x2 coord


sy2

public int sy2
source window y2 coord


drawOverlayBordersFlag

public boolean drawOverlayBordersFlag
for drawing a border around separate window


title

public java.lang.String title
title


flickerWindFlag

public boolean flickerWindFlag
if flicker window or rt window flag


flickerTitle

public java.lang.String flickerTitle
title for rt flicker window

Constructor Detail

LmsWizardPopup.DisplayZoomedImg

public LmsWizardPopup.DisplayZoomedImg(java.awt.Image img,
                                       int canvasWidth,
                                       int canvasHeight,
                                       int xImg,
                                       int yImg,
                                       int origPixWidth,
                                       int origPixHeight,
                                       boolean drawOverlayBordersFlag,
                                       java.lang.String title)
DisplayZoomedImg() - constructor.

Parameters:
img - image to be displayed
canvasWidth - width of jpanel
canvasHeight - height of jpanel
xImg - x coord where user clicked to zoom around
yImg - y coord where user clicked to zoom around
origPixWidth - orig width of img
origPixHeight - orig height of img
Method Detail

setImage

public boolean setImage(java.awt.Image img,
                        int xImg,
                        int yImg,
                        int zoomFactor)
setImage() - reset image center on new coords

Parameters:
img - new image
xImg - x image address (x,y)+(xBase,yBase)
yImg - y image address (x,y)+(xBase,yBase)
zoomFactor - zoom factor

paintComponent

protected void paintComponent(java.awt.Graphics g)
paintComponent() - paint the image wizard zoom panels

Overrides:
paintComponent in class javax.swing.JComponent
Parameters:
g - is graphics context.

drawTargetOverlay

private void drawTargetOverlay(java.awt.Graphics g)
drawTargetOverlay() - Draw Target Overlay in the window.

Parameters:
g - Graphics context.

getMaximumSize

public java.awt.Dimension getMaximumSize()
getMaximumSize() - getMaximumSize, must be implemented for window to be displayed correctly.

Overrides:
getMaximumSize in class javax.swing.JComponent

getMinimumSize

public java.awt.Dimension getMinimumSize()
getMinimumSize() - getMinimumSize, must be implemented for window to be displayed correctly.

Overrides:
getMinimumSize in class javax.swing.JComponent

getPreferredSize

public java.awt.Dimension getPreferredSize()
getPreferredSize() - getPreferredSize, must be implemented for window to be displayed correctly.

Overrides:
getPreferredSize in class javax.swing.JComponent