public class AwtOperationProcessor extends OperationProcessor
OperationProcessor,
uses various AWT dialogs to get parameters from user in a GUI application.| Modifier and Type | Field and Description |
|---|---|
private JiuAwtFrame |
frame |
COLOR, COLOR_ADJUST, COLOR_ADJUST_BRIGHTNESS, COLOR_ADJUST_CONTRAST, COLOR_ADJUST_GAMMA, COLOR_ADJUST_HUESATURATIONVALUE, COLOR_CONVERTTOMINIMUMCOLORTYPE, COLOR_HISTOGRAM, COLOR_HISTOGRAM_COUNTCOLORSUSED, COLOR_HISTOGRAM_EQUALIZE, COLOR_HISTOGRAM_NORMALIZE, COLOR_HISTOGRAM_SAVECOOCCURRENCEFREQUENCYMATRIXAS, COLOR_HISTOGRAM_SAVECOOCCURRENCEMATRIXAS, COLOR_HISTOGRAM_SAVEHISTOGRAMAS, COLOR_HISTOGRAM_TEXTUREPROPERTIES, COLOR_INVERT, COLOR_PALETTE, COLOR_PALETTE_SAVEAS, COLOR_PROMOTE, COLOR_PROMOTE_PROMOTETOGRAY16, COLOR_PROMOTE_PROMOTETOGRAY8, COLOR_PROMOTE_PROMOTETOPALETTED, COLOR_PROMOTE_PROMOTETORGB24, COLOR_PROMOTE_PROMOTETORGB48, COLOR_REDUCE, COLOR_REDUCE_CONVERTTOGRAYSCALE, COLOR_REDUCE_MAPTOARBITRARYPALETTE, COLOR_REDUCE_MEDIANCUT, COLOR_REDUCE_OCTREE, COLOR_REDUCE_REDUCENUMBEROFSHADESOFGRAY, COLOR_REDUCE_REDUCETOBILEVELTHRESHOLD, COLOR_REDUCE_UNIFORMPALETTE, EDIT, EDIT_REDO, EDIT_UNDO, FILE, FILE_CLOSE, FILE_EXIT, FILE_IMAGE_1, FILE_OPEN, FILE_SAVEAS, FILE_SAVEAS_GIF, FILE_SAVEAS_PALM, FILE_SAVEAS_PBM, FILE_SAVEAS_PGM, FILE_SAVEAS_PNG, FILE_SAVEAS_PPM, FILE_SAVEAS_SUNRASTER, FILE_SAVEAS_WINDOWSBMP, FILTERS, FILTERS_BLUR, FILTERS_EDGEDETECTION, FILTERS_EMBOSS, FILTERS_HORIZONTALPREWITT, FILTERS_HORIZONTALSOBEL, FILTERS_LITHOGRAPH, FILTERS_MAXIMUM, FILTERS_MEAN, FILTERS_MEDIAN, FILTERS_MINIMUM, FILTERS_OIL, FILTERS_PSYCHEDELICDISTILLATION, FILTERS_SHARPEN, FILTERS_VERTICALPREWITT, FILTERS_VERTICALSOBEL, HELP, HELP_ABOUT, HELP_SYSTEMINFORMATION, NUM_CONSTANTS, TRANSFORMATIONS, TRANSFORMATIONS_CROP, TRANSFORMATIONS_FLIP, TRANSFORMATIONS_MIRROR, TRANSFORMATIONS_ROTATE180, TRANSFORMATIONS_ROTATELEFT90, TRANSFORMATIONS_ROTATERIGHT90, TRANSFORMATIONS_SCALE, TRANSFORMATIONS_SHEAR, VIEW, VIEW_INTERPOLATIONTYPE, VIEW_INTERPOLATIONTYPE_BICUBIC, VIEW_INTERPOLATIONTYPE_BILINEAR, VIEW_INTERPOLATIONTYPE_NEARESTNEIGHBOR, VIEW_SETORIGINALSIZE, VIEW_ZOOMIN, VIEW_ZOOMOUT| Constructor and Description |
|---|
AwtOperationProcessor(EditorState editorState,
JiuAwtFrame awtFrame) |
| Modifier and Type | Method and Description |
|---|---|
void |
colorAdjustBrightness()
Adjust the brightness of the current image.
|
void |
colorAdjustContrast()
Adjust the contrast of the current image.
|
void |
colorAdjustGamma()
Adjust the gamma value of the current image.
|
void |
colorAdjustHueSaturationValue()
Adjust hue, saturation and value of the current image.
|
void |
colorConvertToMinimumColorType() |
void |
colorHistogramCountColorsUsed()
Count the number of colors used in the current image.
|
void |
colorHistogramEqualize() |
void |
colorHistogramNormalize() |
void |
colorHistogramSaveCoOccurrenceFrequencyMatrixAs() |
void |
colorHistogramSaveCoOccurrenceMatrixAs() |
void |
colorHistogramSaveHistogramAs() |
void |
colorHistogramTextureProperties() |
void |
colorInvert() |
void |
colorPaletteSaveAs() |
void |
colorPromotePromoteToGray16() |
void |
colorPromotePromoteToGray8() |
void |
colorPromotePromoteToPaletted() |
void |
colorPromotePromoteToRgb24() |
void |
colorPromotePromoteToRgb48() |
void |
colorReduceConvertToGrayscale() |
void |
colorReduceMapToArbitraryPalette() |
void |
colorReduceMedianCut() |
void |
colorReduceOctree() |
void |
colorReduceReduceNumberOfShadesOfGray() |
void |
colorReduceReduceToBilevelThreshold() |
void |
colorReduceUniformPalette() |
private int |
convertUniformToErrorDiffusion(int utype) |
void |
editRedo() |
void |
editUndo() |
void |
fileClose()
If there is an image loaded in the application, remove the image.
|
void |
fileExit()
Terminate the application.
|
void |
fileOpen(java.lang.String uri)
Load an image in the application.
|
void |
fileSaveAsBmp()
Save the current image as a Windows BMP file.
|
void |
fileSaveAsGif()
Save the current image as a GIF file.
|
void |
fileSaveAsPalm()
Save the current image as a Palm image file.
|
void |
fileSaveAsPbm()
Save the current image as a Portable Bitmap file.
|
void |
fileSaveAsPgm()
Save the current image as a Portable Graymap file.
|
void |
fileSaveAsPng()
Save the current image as a Portable Network Graphics file.
|
private void |
fileSaveAsPnm() |
void |
fileSaveAsPpm()
Save the current image as a Portable Pixmap file.
|
void |
fileSaveAsRas()
Save the current image as a Sun Raster file.
|
void |
filterConvolutionFilter(int type) |
void |
filtersBlur() |
void |
filtersEdgeDetection() |
void |
filtersEmboss() |
void |
filtersHorizontalPrewitt() |
void |
filtersHorizontalSobel() |
void |
filtersLithograph() |
void |
filtersMaximum() |
void |
filtersMean() |
void |
filtersMedian() |
void |
filtersMinimum() |
void |
filtersOil() |
void |
filtersPsychedelicDistillation() |
void |
filtersSharpen() |
void |
filtersVerticalPrewitt() |
void |
filtersVerticalSobel() |
java.lang.String |
getUserFileName(java.lang.String extension,
int titleIndex,
int fileDialogType) |
java.lang.String |
getUserSaveAsFileName(java.lang.String extension,
int titleIndex) |
void |
helpAbout()
Display information about the application:
name, version, feedback email address, website.
|
void |
helpSystemInformation()
Display information on the system this application
is currently running on.
|
void |
process(ImageToImageOperation op)
This method can be called for ImageToImageOperation objects.
|
void |
setImage(PixelImage newImage,
boolean newModified) |
void |
transformationsCrop() |
void |
transformationsFlip() |
void |
transformationsMirror() |
void |
transformationsRotate180() |
void |
transformationsRotate90Left() |
void |
transformationsRotate90Right() |
void |
transformationsScale() |
void |
transformationsShear() |
void |
updateFrame(PixelImage image) |
void |
viewInterpolationTypeBicubic() |
void |
viewInterpolationTypeBilinear() |
void |
viewInterpolationTypeNearestNeighbor() |
void |
viewSetOriginalSize() |
void |
viewZoomIn() |
void |
viewZoomOut() |
getEditorState, isAvailable, processprivate JiuAwtFrame frame
public AwtOperationProcessor(EditorState editorState, JiuAwtFrame awtFrame)
public void colorAdjustBrightness()
OperationProcessorcolorAdjustBrightness in class OperationProcessorpublic void colorAdjustContrast()
OperationProcessorcolorAdjustContrast in class OperationProcessorpublic void colorAdjustGamma()
OperationProcessorcolorAdjustGamma in class OperationProcessorpublic void colorAdjustHueSaturationValue()
OperationProcessorcolorAdjustHueSaturationValue in class OperationProcessorpublic void colorHistogramCountColorsUsed()
OperationProcessorcolorHistogramCountColorsUsed in class OperationProcessorpublic void colorHistogramEqualize()
colorHistogramEqualize in class OperationProcessorpublic void colorHistogramNormalize()
colorHistogramNormalize in class OperationProcessorpublic void colorHistogramTextureProperties()
colorHistogramTextureProperties in class OperationProcessorpublic void colorHistogramSaveHistogramAs()
colorHistogramSaveHistogramAs in class OperationProcessorpublic void colorHistogramSaveCoOccurrenceMatrixAs()
colorHistogramSaveCoOccurrenceMatrixAs in class OperationProcessorpublic void colorHistogramSaveCoOccurrenceFrequencyMatrixAs()
colorHistogramSaveCoOccurrenceFrequencyMatrixAs in class OperationProcessorpublic void colorPaletteSaveAs()
colorPaletteSaveAs in class OperationProcessorpublic void colorPromotePromoteToPaletted()
colorPromotePromoteToPaletted in class OperationProcessorpublic void colorPromotePromoteToGray8()
colorPromotePromoteToGray8 in class OperationProcessorpublic void colorPromotePromoteToGray16()
colorPromotePromoteToGray16 in class OperationProcessorpublic void colorPromotePromoteToRgb24()
colorPromotePromoteToRgb24 in class OperationProcessorpublic void colorPromotePromoteToRgb48()
colorPromotePromoteToRgb48 in class OperationProcessorpublic void colorReduceReduceNumberOfShadesOfGray()
colorReduceReduceNumberOfShadesOfGray in class OperationProcessorpublic void colorReduceConvertToGrayscale()
colorReduceConvertToGrayscale in class OperationProcessorpublic void colorReduceMedianCut()
colorReduceMedianCut in class OperationProcessorpublic void colorInvert()
colorInvert in class OperationProcessorpublic void colorConvertToMinimumColorType()
colorConvertToMinimumColorType in class OperationProcessorpublic void colorReduceOctree()
colorReduceOctree in class OperationProcessorpublic void colorReduceReduceToBilevelThreshold()
colorReduceReduceToBilevelThreshold in class OperationProcessorprivate int convertUniformToErrorDiffusion(int utype)
public void colorReduceUniformPalette()
colorReduceUniformPalette in class OperationProcessorpublic void colorReduceMapToArbitraryPalette()
colorReduceMapToArbitraryPalette in class OperationProcessorpublic void editRedo()
editRedo in class OperationProcessorpublic void editUndo()
editUndo in class OperationProcessorpublic void fileClose()
OperationProcessorfileClose in class OperationProcessorpublic void fileExit()
OperationProcessorfileExit in class OperationProcessorpublic void fileOpen(java.lang.String uri)
OperationProcessorfileOpen in class OperationProcessorpublic void fileSaveAsBmp()
OperationProcessorfileSaveAsBmp in class OperationProcessorpublic void fileSaveAsGif()
OperationProcessorfileSaveAsGif in class OperationProcessorpublic void fileSaveAsPalm()
OperationProcessorfileSaveAsPalm in class OperationProcessorpublic void fileSaveAsPbm()
OperationProcessorfileSaveAsPbm in class OperationProcessorpublic void fileSaveAsPgm()
OperationProcessorfileSaveAsPgm in class OperationProcessorpublic void fileSaveAsPng()
OperationProcessorfileSaveAsPng in class OperationProcessorprivate void fileSaveAsPnm()
public void fileSaveAsPpm()
OperationProcessorfileSaveAsPpm in class OperationProcessorpublic void fileSaveAsRas()
OperationProcessorfileSaveAsRas in class OperationProcessorpublic void filterConvolutionFilter(int type)
public void filtersBlur()
filtersBlur in class OperationProcessorpublic void filtersSharpen()
filtersSharpen in class OperationProcessorpublic void filtersEdgeDetection()
filtersEdgeDetection in class OperationProcessorpublic void filtersEmboss()
filtersEmboss in class OperationProcessorpublic void filtersPsychedelicDistillation()
filtersPsychedelicDistillation in class OperationProcessorpublic void filtersLithograph()
filtersLithograph in class OperationProcessorpublic void filtersHorizontalSobel()
filtersHorizontalSobel in class OperationProcessorpublic void filtersVerticalSobel()
filtersVerticalSobel in class OperationProcessorpublic void filtersHorizontalPrewitt()
filtersHorizontalPrewitt in class OperationProcessorpublic void filtersVerticalPrewitt()
filtersVerticalPrewitt in class OperationProcessorpublic void filtersMaximum()
filtersMaximum in class OperationProcessorpublic void filtersMedian()
filtersMedian in class OperationProcessorpublic void filtersMean()
filtersMean in class OperationProcessorpublic void filtersMinimum()
filtersMinimum in class OperationProcessorpublic void filtersOil()
filtersOil in class OperationProcessorpublic java.lang.String getUserFileName(java.lang.String extension,
int titleIndex,
int fileDialogType)
public java.lang.String getUserSaveAsFileName(java.lang.String extension,
int titleIndex)
public void helpAbout()
OperationProcessorhelpAbout in class OperationProcessorpublic void helpSystemInformation()
OperationProcessorhelpSystemInformation in class OperationProcessorpublic void process(ImageToImageOperation op)
public void setImage(PixelImage newImage, boolean newModified)
public void transformationsFlip()
transformationsFlip in class OperationProcessorpublic void transformationsMirror()
transformationsMirror in class OperationProcessorpublic void transformationsRotate90Left()
transformationsRotate90Left in class OperationProcessorpublic void transformationsRotate90Right()
transformationsRotate90Right in class OperationProcessorpublic void transformationsRotate180()
transformationsRotate180 in class OperationProcessorpublic void transformationsCrop()
transformationsCrop in class OperationProcessorpublic void transformationsShear()
transformationsShear in class OperationProcessorpublic void transformationsScale()
transformationsScale in class OperationProcessorpublic void updateFrame(PixelImage image)
public void viewInterpolationTypeBicubic()
viewInterpolationTypeBicubic in class OperationProcessorpublic void viewInterpolationTypeBilinear()
viewInterpolationTypeBilinear in class OperationProcessorpublic void viewInterpolationTypeNearestNeighbor()
viewInterpolationTypeNearestNeighbor in class OperationProcessorpublic void viewZoomIn()
viewZoomIn in class OperationProcessorpublic void viewZoomOut()
viewZoomOut in class OperationProcessorpublic void viewSetOriginalSize()
viewSetOriginalSize in class OperationProcessor