|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent insensa.view.image.map.AbstractInfoReaderImageMap
public abstract class AbstractInfoReaderImageMap
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.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected java.util.List<java.awt.Color> |
colorList
|
protected float |
endColor
|
protected java.awt.image.BufferedImage |
image
|
protected ImageMapPopup |
imageMapPopup
|
protected boolean |
invert
|
protected InfoReader |
iReader
|
protected ILegendComponent |
legend
|
protected java.awt.image.BufferedImage |
origImage
|
protected ImageFrame |
parent
|
protected javax.swing.JProgressBar |
progressBar
|
protected java.util.List<ClassificationRange> |
rangeList
|
protected CRasterFileInformation |
rasterFile
|
private static long |
serialVersionUID
|
protected float |
startColor
|
protected java.lang.String |
title
|
protected CView |
view
|
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 | |
---|---|
AbstractInfoReaderImageMap()
|
Method Summary | |
---|---|
void |
addInfoReader(InfoReader iReader)
Implement this method to check and store one incoming InfoReader |
void |
addInfoReader(java.util.List<InfoReader> iReader)
Implement this method to check and store a List of incoming InfoReader |
protected java.awt.Dimension |
calcOptimalSize(java.awt.Dimension img,
java.awt.Dimension comp)
|
java.awt.image.BufferedImage |
createNewImage(java.awt.Dimension dim)
|
ImageComponent[] |
getChildComponents()
This method will be used by the ImageFrame to put Components in separate Layers. |
java.util.List<java.awt.Color> |
getColorList()
|
IColorListGenerator |
getColorListGenerator()
|
javax.swing.JComponent |
getComponent()
returns the main JComponent (parent JComponent). |
javax.swing.JComponent |
getDropTargetComponent()
Return a JComponent that can be used as a target for Drop actions |
javax.swing.ImageIcon |
getFrameIcon()
|
java.awt.image.BufferedImage |
getImage()
|
ImageFrame |
getImageFrame()
|
InfoReader |
getInfoReader()
|
ILegendComponent |
getLegend()
|
java.util.List<ClassificationRange> |
getRangeList()
|
java.lang.String |
getToolTipText(java.awt.event.MouseEvent event)
|
void |
imagePopupFunction(java.awt.event.MouseEvent e,
ImageComponent iComp)
|
void |
initImage(java.awt.Dimension componentDim)
This method will be executed by the Controller. |
boolean |
isInvert()
|
void |
onDropObjects(java.util.List<java.lang.Object> objectList)
This method allows to deal with Objects droped on the JComponent previsiuly defined in IImageView.getDropTargetComponent() . |
protected void |
paintComponent(java.awt.Graphics g)
|
void |
refresh(java.awt.Dimension dim)
Gets called if the refresh button is pressed or if a refresh is necessary |
void |
resizeImage(java.awt.Dimension dim)
Gets called whenever the ImageFrame is resizing. |
void |
saveImage(java.lang.String outputFileName,
java.awt.Dimension dim)
|
void |
saveLegend(java.lang.String outputFileName,
java.awt.Dimension dim)
|
void |
scaleImage(int width,
int height)
|
void |
setColorList(java.util.List<java.awt.Color> colorList)
|
void |
setCView(CView view)
Reference to the CView |
protected void |
setImage(java.awt.image.BufferedImage image)
|
void |
setImageFrame(ImageFrame parent)
Reference to the ImageFrame |
void |
setInvert(boolean invert)
|
void |
setLegend(ILegendComponent legend)
|
void |
setTitle(java.lang.String title)
Sets the title for this ImageFrame. |
void |
startView(java.awt.Dimension dim,
java.awt.Dimension componentDimension)
This is a secondary starting progress. |
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, 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, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, 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 |
Methods inherited from interface insensa.view.image.map.IImageMap |
---|
createRangeList, getImageMapSettings |
Field Detail |
---|
private static final long serialVersionUID
protected CView view
protected InfoReader iReader
protected java.awt.image.BufferedImage image
protected java.awt.image.BufferedImage origImage
protected java.lang.String title
protected ILegendComponent legend
protected java.util.List<java.awt.Color> colorList
protected java.util.List<ClassificationRange> rangeList
protected CRasterFileInformation rasterFile
protected boolean invert
protected javax.swing.JProgressBar progressBar
protected float startColor
protected float endColor
protected ImageMapPopup imageMapPopup
protected ImageFrame parent
Constructor Detail |
---|
public AbstractInfoReaderImageMap()
Method Detail |
---|
public void addInfoReader(InfoReader iReader)
IInfoReaderImageView
addInfoReader
in interface IInfoReaderImageView
IInfoReaderImageView.addInfoReader(insensa.inforeader.InfoReader)
public void addInfoReader(java.util.List<InfoReader> iReader)
IInfoReaderImageView
addInfoReader
in interface IInfoReaderImageView
IInfoReaderImageView.addInfoReader(java.util.List)
protected java.awt.Dimension calcOptimalSize(java.awt.Dimension img, java.awt.Dimension comp)
img
- comp
-
public java.awt.image.BufferedImage createNewImage(java.awt.Dimension dim) throws java.io.IOException
createNewImage
in interface ImageComponent
java.io.IOException
ImageComponent.createNewImage(java.awt.Dimension)
public ImageComponent[] getChildComponents()
IImageView
getChildComponents
in interface IImageView
IImageView.getChildComponents()
public InfoReader getInfoReader()
getInfoReader
in interface IImageMap
IImageMap.getInfoReader()
public java.util.List<java.awt.Color> getColorList()
getColorList
in interface IImageMap
IImageMap.getColorList()
public javax.swing.JComponent getComponent()
IImageView
getComponent
in interface IImageView
getComponent
in interface ImageComponent
IImageView.getComponent()
public javax.swing.JComponent getDropTargetComponent()
IImageView
getDropTargetComponent
in interface IImageView
IImageView.getDropTargetComponent()
public javax.swing.ImageIcon getFrameIcon()
getFrameIcon
in interface IImageView
IImageView.getFrameIcon()
public java.awt.image.BufferedImage getImage()
getImage
in interface ImageComponent
ImageComponent.getImage()
public ImageFrame getImageFrame()
getImageFrame
in interface IImageView
IImageView.getImageFrame()
public ILegendComponent getLegend()
getLegend
in interface IImageMap
IImageMap.getLegend()
public java.util.List<ClassificationRange> getRangeList()
getRangeList
in interface IImageMap
IImageMap.getRangeList()
public java.lang.String getToolTipText(java.awt.event.MouseEvent event)
getToolTipText
in class javax.swing.JComponent
JComponent.getToolTipText(java.awt.event.MouseEvent)
public void imagePopupFunction(java.awt.event.MouseEvent e, ImageComponent iComp) throws java.io.IOException
e
- iComp
-
java.io.IOException
public void initImage(java.awt.Dimension componentDim) throws java.io.IOException
IImageView
initImage
in interface IImageView
componentDim
- the dimension of the parent ImageFrame
java.io.IOException
IImageView.initImage(java.awt.Dimension)
public boolean isInvert()
isInvert
in interface IImageMap
IImageMap.isInvert()
public void onDropObjects(java.util.List<java.lang.Object> objectList) throws java.io.IOException
IImageView
IImageView.getDropTargetComponent()
.
For example, it could be a List of IInfoReader or CRasterFileInformation
onDropObjects
in interface IImageView
java.io.IOException
IImageView.onDropObjects(java.util.List)
protected void paintComponent(java.awt.Graphics g)
paintComponent
in class javax.swing.JComponent
JComponent.paintComponent(java.awt.Graphics)
public void refresh(java.awt.Dimension dim) throws java.io.IOException
IImageView
refresh
in interface IImageView
refresh
in interface ImageComponent
dim
- The inner dimension of the ImageFrame
java.io.IOException
IImageView.refresh(java.awt.Dimension)
public void resizeImage(java.awt.Dimension dim) throws java.io.IOException
IImageView
resizeImage
in interface IImageView
resizeImage
in interface ImageComponent
dim
- The inner dimension of the ImageFrame
java.io.IOException
IImageView.resizeImage(java.awt.Dimension)
public void saveImage(java.lang.String outputFileName, java.awt.Dimension dim) throws java.io.IOException
outputFileName
- dim
-
java.io.IOException
public void saveLegend(java.lang.String outputFileName, java.awt.Dimension dim) throws java.io.IOException
outputFileName
- dim
-
java.io.IOException
public void scaleImage(int width, int height)
width
- height
- public void setColorList(java.util.List<java.awt.Color> colorList)
setColorList
in interface IImageMap
IImageMap.setColorList(java.util.List)
public void setCView(CView view)
IImageView
setCView
in interface IImageView
IImageView.setCView(insensa.view.CView)
protected void setImage(java.awt.image.BufferedImage image)
image
- public void setImageFrame(ImageFrame parent)
IImageView
setImageFrame
in interface IImageView
IImageView.setImageFrame(insensa.view.image.ImageFrame)
public void setInvert(boolean invert)
setInvert
in interface IImageMap
IImageMap.setInvert(boolean)
public void setLegend(ILegendComponent legend)
legend
- public void setTitle(java.lang.String title)
IImageView
setTitle
in interface IImageView
IImageView.setTitle(java.lang.String)
public void startView(java.awt.Dimension dim, java.awt.Dimension componentDimension) throws java.io.IOException
IImageView
IImageView.initImage(Dimension)
startView
in interface IImageView
dim
- The Dimension of the Internal FramecomponentDimension
- The Component Dimension
java.io.IOException
- IImageView.initImage(Dimension)
IImageView.startView(java.awt.Dimension,
java.awt.Dimension)
public IColorListGenerator getColorListGenerator()
getColorListGenerator
in interface IImageMap
IImageMap.getColorListGenerator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |