public interface ILookPanel extends ActionListener
| Modifier and Type | Method and Description |
|---|---|
void |
deleteAllROIShapes()
Deletes all ROI shapes on every layer.
|
void |
deleteAllROIShapesOnLayer()
Deletes all ROI shapes on the current ROI layer.
|
void |
deleteSelectedROI()
Deletes the selected ROI on the current ROI layer.
|
void |
destroyGUI()
Destroys the GUI.
|
String |
getAdditionalText()
Gets the additional text of the
ImageInfoPanel. |
ColorChannelSelectorPanel |
getColorChannelSelectorPanel()
Gets the selector panel for color components.
|
ContextPopupListener |
getContextPopupListener()
Get the context menu popup listener for showing pop up menus.
|
javax.media.jai.PlanarImage |
getCurrentImage()
Gets the current image (original).
|
IDrawingLayer |
getCurrentROILayer()
Gets the currently selected ROI layer.
|
double[] |
getDoublePixelValue()
Get the pixel intensity values as double array.
|
float[] |
getFloatPixelValue()
Get the pixel intensity values as float array.
|
int |
getImageHeight()
Gets the width of the original image in pixels.
|
ImageInfoPanel |
getImageInfoPanel()
Gets the image info panel.
|
ImageLayer |
getImageLayer()
Gets the image layer of this panel.
|
int |
getImageWidth()
Gets the width of the original image in pixels.
|
String |
getImgDataBufferType()
Get the image data buffer type.
|
int[] |
getIntPixelValue()
Get the pixel intensity values as integer array.
|
JLayeredPane |
getLayerPane()
Gets the layer container of the panel.
|
short[][] |
getLut()
Gets the lookup table for the indexed image.
|
PropertyChangeSupport |
getPcs()
Get the property change support for this panel.
|
StringBuffer |
getPixelInfo()
Get the pixel information.
|
String |
getPixelInfoString()
This method allows external classes access to the pixel info which was
obtained in the mouseMoved method.
|
javax.media.jai.PlanarImage |
getRenderedImage()
Get the rendered/processed image with current zoom factor.
|
List<IDrawingLayer> |
getROILayers()
Gets all ROI layers.
|
ROILayerSelectorPanel |
getROILayerSelectorPanel()
Gets the selection panel for the ROI layers.
|
JScrollPane |
getScrollPane()
Gets the scroll pane of the current look panel.
|
LookToolboxPanel |
getToolboxPanel()
Get the tool box of the panel.
|
double |
getZoom()
Get the current zoom of the image.
|
ZoomHelper |
getZoomHelper()
Gets the valid zoom stages for the look panel.
|
void |
initialize()
Initializes the look panel.
|
boolean |
isEmpty()
A flag, determining whether or not the panel is currently displaying an
image.
|
boolean |
isIndexed()
Get a flag, whether or not the image is indexed.
|
void |
setAdditionalText(String additionalText)
Set the additional text for the
ImageInfoPanel. |
void |
setCurrentImage(javax.media.jai.PlanarImage currentImage)
Sets the current image (original).
|
void |
setDoublePixelValue(double[] doublePixelValue)
Set the double pixel values in an array.
|
void |
setFloatPixelValue(float[] floatPixelValue)
Set the float pixel values in an array.
|
void |
setImageHeight(int imgHeight)
Set the image height.
|
void |
setImageWidth(int imgWidth)
Set the image width.
|
void |
setImgDataBufferType(String imgDataBufferType)
Set the image data buffer type.
|
void |
setIndexed(boolean isIndexed)
Set a flag whether or not the currently displayed image is indexed.
|
void |
setIntPixelValue(int[] intPixelValue)
Set the integer pixel values in an array.
|
void |
setLut(short[][] lut)
Set the lookup table.
|
void |
setPixelInfo(StringBuffer pixelInfo)
Set the pixel information.
|
void |
setRenderedImage(javax.media.jai.PlanarImage rendImage)
Set the rendered/processed image.
|
void |
setViewOffset(Point p)
This method calculates and sets the offset of the view Mainly for zooming
the image with the mouse
|
void |
setZoom(double zoom)
Set the zoom of the image.
|
void |
updateImageLayer()
Updates the image layer, i.e.
|
void |
updateLayerBounds(Dimension dim)
Updates the layer bounds to new dimensions in the layered pane.
|
void |
updateNavigator()
Updates the image navigator according to the current viewport position
and size.
|
actionPerformedJLayeredPane getLayerPane()
JLayeredPaneList<IDrawingLayer> getROILayers()
List of IDrawingLayerIDrawingLayer getCurrentROILayer()
IDrawingLayervoid setAdditionalText(String additionalText)
ImageInfoPanel.additionalText - String getAdditionalText()
ImageInfoPanel.void setViewOffset(Point p)
p - a Point representing pixel values in the real imagevoid setZoom(double zoom)
zoom - double getZoom()
String getPixelInfoString()
void setPixelInfo(StringBuffer pixelInfo)
pixelInfo - StringBuffer getPixelInfo()
void setIntPixelValue(int[] intPixelValue)
intPixelValue - void setFloatPixelValue(float[] floatPixelValue)
floatPixelValue - void setDoublePixelValue(double[] doublePixelValue)
doublePixelValue - void setLut(short[][] lut)
lut - void setIndexed(boolean isIndexed)
isIndexed - void setCurrentImage(javax.media.jai.PlanarImage currentImage)
currentImage - javax.media.jai.PlanarImage getCurrentImage()
void setRenderedImage(javax.media.jai.PlanarImage rendImage)
rendImage - javax.media.jai.PlanarImage getRenderedImage()
int[] getIntPixelValue()
float[] getFloatPixelValue()
double[] getDoublePixelValue()
short[][] getLut()
boolean isIndexed()
true if the image is indexed, false
otherwisevoid setImgDataBufferType(String imgDataBufferType)
imgDataBufferType - String getImgDataBufferType()
void setImageHeight(int imgHeight)
imgHeight - void setImageWidth(int imgWidth)
imgWidth - int getImageHeight()
int getImageWidth()
LookToolboxPanel getToolboxPanel()
ContextPopupListener getContextPopupListener()
ContextPopupListenerPropertyChangeSupport getPcs()
PropertyChangeSupportImageLayer getImageLayer()
boolean isEmpty()
true, if no image is displayed, false otherwiseImageInfoPanel getImageInfoPanel()
ImageInfoPanelZoomHelper getZoomHelper()
ZoomHelpervoid updateLayerBounds(Dimension dim)
dim - the dimensionJScrollPane getScrollPane()
JScrollPanevoid updateImageLayer()
void deleteSelectedROI()
void deleteAllROIShapesOnLayer()
void deleteAllROIShapes()
ROILayerSelectorPanel getROILayerSelectorPanel()
ROILayerSelectorPanelvoid initialize()
ColorChannelSelectorPanel getColorChannelSelectorPanel()
ColorChannelSelectorPanelvoid updateNavigator()
Copyright © 2009–2017 Helmut Ahammer, Philipp Kainz. All rights reserved.