|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
gov.nih.mipav.view.ViewJPanelHistoLUT
public class ViewJPanelHistoLUT
Panel containing the histogram component (the graph) and the lut component (the gradient vertical bar).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static int |
GRAY_LUT
Indicates a grayscale LUT. |
static int |
RGB_LUT
Indicates a RGB LUT. |
| 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 | |
|---|---|
ViewJPanelHistoLUT(HistoLUTParent parent,
ModelImage image,
ModelLUT lut,
ModelHistogram histogram)
Create this panel. |
|
ViewJPanelHistoLUT(HistoLUTParent parent,
ModelImage image,
ModelRGB RGBT,
ModelHistogram histogram)
Creates a new ViewJPanelHistoLUT object. |
|
| Method Summary | |
|---|---|
void |
dragPoint(MouseEvent mouseEvent)
Handle the dragging of a transfer function point. |
void |
finalize()
Clean up the panel memory. |
ViewJComponentHLUTBase |
getHistoLUTComponent()
Get the histogram LUT component. |
ViewJComponentLUT |
getLUTComponent()
Get the LUT component. |
JDialogRecordLUT |
getLUTRecorder()
Get the LUT recorder reference. |
void |
initGUI()
Construct the panel. |
boolean |
isImageUpdate()
Indicates if real-time update of the image should take place. |
void |
mouseClicked(MouseEvent mouseEvent)
Calls color chooser. |
void |
mouseDragged(MouseEvent mouseEvent)
Continually updates the image depending on where the mouse is. |
void |
mouseEntered(MouseEvent mouseEvent)
Unchanged. |
void |
mouseExited(MouseEvent mouseEvent)
Unchanged. |
void |
mouseMoved(MouseEvent mouseEvent)
Changes the LUT text field display based on the Y value of the mouse when inside ViewJComponentLUT. |
void |
mousePressed(MouseEvent mouseEvent)
Checks whether the user is making new points in the lut function or not. |
void |
mouseReleased(MouseEvent mouseEvent)
Updates the image and shows it in case a new point has been added to the function (or removed). |
void |
setAllOff()
Accessor to disable the all RGB color channels button if one of the lines has moved. |
void |
setLUT(ModelLUT newLUT)
Replaces the LUT and builds a new LUT component. |
void |
setRangeText(float x,
float y,
int _index)
Set the range value of the text field. |
void |
showLUTRecorder()
Show the LUT recorder dialog. |
void |
updateComponentLUT()
Redraw the componentLUT. |
void |
updateFrames(boolean flag)
Update all of the image frames that display the image this histo lut is for. |
void |
updateLUTPositionString(String str)
Sets the position string in the LUT text field. |
void |
updateLUTRecorder()
Update the LUT recorder table transfer function. |
void |
updateLUTRecorder(ModelLUT _lut)
Update the LUT table of LUTRecorder. |
void |
updateThresholdFields(float lower,
float upper)
Method to update the threshold text fields when the lower or upper threshold changes. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int GRAY_LUT
public static final int RGB_LUT
| Constructor Detail |
|---|
public ViewJPanelHistoLUT(HistoLUTParent parent,
ModelImage image,
ModelLUT lut,
ModelHistogram histogram)
parent - component which will hold this panelimage - the imagelut - the image luthistogram - the image histogram
public ViewJPanelHistoLUT(HistoLUTParent parent,
ModelImage image,
ModelRGB RGBT,
ModelHistogram histogram)
parent - HistoLUTParentimage - ModelImageRGBT - ModelRGBhistogram - ModelHistogram| Method Detail |
|---|
public void dragPoint(MouseEvent mouseEvent)
dragPoint in interface HistoLUTParentmouseEvent - the point dragging eventpublic void finalize()
finalize in class Objectpublic ViewJComponentHLUTBase getHistoLUTComponent()
public ViewJComponentLUT getLUTComponent()
public JDialogRecordLUT getLUTRecorder()
public void initGUI()
public boolean isImageUpdate()
isImageUpdate in interface HistoLUTParenttrue if real time update should take placepublic void mouseClicked(MouseEvent mouseEvent)
mouseClicked in interface MouseListenermouseEvent - Event that triggered functionpublic void mouseDragged(MouseEvent mouseEvent)
mouseDragged in interface MouseMotionListenermouseEvent - event that triggered this functionpublic void mouseEntered(MouseEvent mouseEvent)
mouseEntered in interface MouseListenermouseEvent - eventpublic void mouseExited(MouseEvent mouseEvent)
mouseExited in interface MouseListenermouseEvent - eventpublic void mouseMoved(MouseEvent mouseEvent)
mouseMoved in interface MouseMotionListenermouseEvent - Event that triggered this functionpublic void mousePressed(MouseEvent mouseEvent)
mousePressed in interface MouseListenermouseEvent - event that triggered functionpublic void mouseReleased(MouseEvent mouseEvent)
mouseReleased in interface MouseListenermouseEvent - the event that triggered this functionpublic void setAllOff()
setAllOff in interface HistoLUTParentpublic void setLUT(ModelLUT newLUT)
setLUT in interface HistoLUTParentnewLUT - New LUT
public void setRangeText(float x,
float y,
int _index)
setRangeText in interface HistoLUTParentx - the x threshold range valuey - the y threshold range value_index - the cursor indexpublic void showLUTRecorder()
public void updateComponentLUT()
updateComponentLUT in interface HistoLUTParentpublic void updateFrames(boolean flag)
updateFrames in interface HistoLUTParentflag - this boolean indicates if the frame that displays the image should re-export the image and apply
new LUTModelImage.notifyImageDisplayListeners()public void updateLUTPositionString(String str)
updateLUTPositionString in interface HistoLUTParentstr - the position stringpublic void updateLUTRecorder()
public void updateLUTRecorder(ModelLUT _lut)
_lut - ModelLUT lut table
public void updateThresholdFields(float lower,
float upper)
updateThresholdFields in interface HistoLUTParentlower - the lower threshold valueupper - the upper threshold value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||