|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.aerith.misao.gui.dialog.LevelAdjustmentDialog
The LevelAdjustmentDialog
represents a dialog to
ajudst image level to view.
Inner Class Summary | |
protected class |
LevelAdjustmentDialog.AdjustCommanderThread
The AdjustCommanderThread is a thread to control
the adjust command to the target. |
protected class |
LevelAdjustmentDialog.ApplyListener
The ApplyListener is a listener class of button
push to apply the level to the image component. |
protected class |
LevelAdjustmentDialog.AutoListener
The AutoListener is a listener class of button
push to set the proper level automatically. |
protected class |
LevelAdjustmentDialog.SliderChangeListener
The SliderChangeListener is a listener class of
slider motion. |
Field Summary | |
private javax.swing.JCheckBox |
checkbox_adjust_all
The check box to adjust all images. |
private boolean |
disable_update
True if the it is disabled to update text fields and repaint the image. |
private HistogramComponent |
histogram
The histogram. |
private Statisticable |
image
The target image. |
private javax.swing.JTextField |
max_field
Text field to input maximum value. |
private javax.swing.JTextField |
min_field
Text field to input minimum value. |
private java.lang.Object[] |
objects
Array of objects to show in the dialog. |
private double |
range_maximum
The maximum value of the slider range. |
private double |
range_minimum
The minimum value of the slider range. |
protected boolean |
running
True if the adjust command controller thead is running. |
private javax.swing.JSlider |
slider_maximum
The slider for maximum value. |
private javax.swing.JSlider |
slider_minimum
The slider for minimum value. |
private LevelAdjustmentSet |
stat
The image level and statistics. |
private LevelAdjustable |
target
The target image component. |
private boolean |
textfield_integer
True if the minimum and maximum value should be printed as integer value in the text fields. |
private LevelAdjustmentDialog.AdjustCommanderThread |
thread
The thread to control the adjust command to the target. |
Constructor Summary | |
LevelAdjustmentDialog(Statisticable image,
LevelAdjustable target,
LevelAdjustmentSet stat)
Constructs a LevelAdjustmentDialog . |
Method Summary | |
void |
addAllImagesAdjustmentCheckbox()
Adds a check box to adjust all images at one time. |
void |
adjustLevel(double new_minimum,
double new_maximum)
Adjusts the level of the target. |
protected double |
convertLevelToValue(int level)
Converts the level to the pixel value based on the specified minimum and maximum value. |
protected int |
convertValueToLevel(double value)
Converts the pixel value to the level based on the specified minimum and maximum value. |
private void |
resetSlider()
Resets the slider position so that the current minimum value will be 0.25 and the current maximum value will be 0.75. |
int |
show(java.awt.Component pane)
Shows the dialog. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private Statisticable image
private LevelAdjustable target
private LevelAdjustmentDialog.AdjustCommanderThread thread
private LevelAdjustmentSet stat
private double range_minimum
private double range_maximum
private javax.swing.JSlider slider_minimum
private javax.swing.JSlider slider_maximum
private javax.swing.JCheckBox checkbox_adjust_all
private java.lang.Object[] objects
private javax.swing.JTextField min_field
private javax.swing.JTextField max_field
private HistogramComponent histogram
private boolean disable_update
private boolean textfield_integer
protected boolean running
Constructor Detail |
public LevelAdjustmentDialog(Statisticable image, LevelAdjustable target, LevelAdjustmentSet stat)
LevelAdjustmentDialog
.image
- the target image.target
- the target image component.stat
- the image level and statistics.Method Detail |
public void addAllImagesAdjustmentCheckbox()
public int show(java.awt.Component pane)
pane
- the parent window.private void resetSlider()
protected int convertValueToLevel(double value)
value
- the pixel value.protected double convertLevelToValue(int level)
level
- the level.public void adjustLevel(double new_minimum, double new_maximum)
new_minimum
- the minimum level.new_maximum
- the maximum level.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |