public class RgbFilterEditor extends java.lang.Object implements FilterEditor
Modifier and Type | Field and Description |
---|---|
(package private) javax.swing.JTextField |
blue
The blue threshold.
|
(package private) javax.swing.JTextField |
green
The green threshold.
|
(package private) javax.swing.SpringLayout |
layout
The layout.
|
(package private) javax.swing.JTextField |
lower
The output lower bound.
|
(package private) javax.swing.JPanel |
panel
The panel containing the components.
|
(package private) javax.swing.JTextField |
red
The red threshold.
|
(package private) javax.swing.JTextField |
upper
The output upper bound.
|
Constructor and Description |
---|
RgbFilterEditor()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
Filter |
createFilter()
Create a new instance of Filter from the properties of this filter
editor.
|
java.awt.Component |
getEditorComponent()
Return the editor component for this filter editor.
|
(package private) int |
getIntValue(javax.swing.JTextField panel)
Returns the int value of the provided text field.
|
java.lang.String |
toString() |
javax.swing.JPanel panel
javax.swing.SpringLayout layout
javax.swing.JTextField red
javax.swing.JTextField green
javax.swing.JTextField blue
javax.swing.JTextField lower
javax.swing.JTextField upper
public Filter createFilter() throws FilterEditorException
createFilter
in interface FilterEditor
FilterEditorException
- if a Filter cannot properly be created from
the properties of this filter editorint getIntValue(javax.swing.JTextField panel)
panel
- The panel to get value from.public java.awt.Component getEditorComponent()
getEditorComponent
in interface FilterEditor
public java.lang.String toString()
toString
in class java.lang.Object