|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectComponent
Container
JComponent
GradientKernelEditor
public class GradientKernelEditor
A widget for editing the horizontal and vertical kernels for a
gradient magnitude operation.
This widget combine two KernelEditor side-by-side: one for the
horizontal component and one for the vertical component.
|
|
KernelEditor,
GradientMagnitudeDescriptor,
GradientMagnitude,
Serialized Form
| display/geotk-widgets-swing (download) | View source code for this class |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static KernelJAI |
ISOTROPIC_HORIZONTAL
Horizontal gradient mask (isotropic). |
static KernelJAI |
ISOTROPIC_VERTICAL
Vertical gradient mask (isotropic). |
static KernelJAI |
KIRSCH_HORIZONTAL
Horizontal gradient mask according Kirsch. |
static KernelJAI |
KIRSCH_VERTICAL
Vertical gradient mask according Kirsch. |
static KernelJAI |
PREWITT_HORIZONTAL
Horizontal gradient mask according Prewitt (also know as smoothed). |
static KernelJAI |
PREWITT_VERTICAL
Vertical gradient mask according Prewitt (also know as smoothed). |
static KernelJAI |
SOBEL_HORIZONTAL
Horizontal gradient mask according Sobel. |
static KernelJAI |
SOBEL_VERTICAL
Vertical gradient mask according Sobel. |
| Fields inherited from class 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 Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
GradientKernelEditor()
Constructs a new editor for gradient kernels. |
|
| Method Summary | |
|---|---|
void |
addDefaultKernels()
Adds a set of predefined kernels. |
void |
commitEdit()
Forces the current value to be taken from the editable fields and set them as the current values. |
KernelEditor |
getHorizontalEditor()
Returns the horizontal kernel editor. |
KernelEditor |
getVerticalEditor()
Returns the vertical kernel editor. |
boolean |
showDialog(Component owner,
String title)
Shows a dialog box requesting input from the user. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final KernelJAI PREWITT_HORIZONTAL
public static final KernelJAI PREWITT_VERTICAL
public static final KernelJAI ISOTROPIC_HORIZONTAL
public static final KernelJAI ISOTROPIC_VERTICAL
public static final KernelJAI SOBEL_HORIZONTAL
public static final KernelJAI SOBEL_VERTICAL
public static final KernelJAI KIRSCH_HORIZONTAL
public static final KernelJAI KIRSCH_VERTICAL
| Constructor Detail |
|---|
public GradientKernelEditor()
| Method Detail |
|---|
public void addDefaultKernels()
KernelEditor.addDefaultKernels() on both horizontal and vertical kernel editors.
The default implementation for those editors will add a set of Sobel kernels.
public KernelEditor getHorizontalEditor()
public KernelEditor getVerticalEditor()
public void commitEdit()
throws ParseException
This method is typically invoked after Dialog.showDialog(Component, String)
returned true and before to read the values from the dialog widget.
commitEdit in interface DialogParseException - If at least one values couldn't be commited.JFormattedTextField.commitEdit(),
JSpinner.commitEdit()
public boolean showDialog(Component owner,
String title)
owner. If owner is contained into a JDesktopPane,
the dialog box will appears as an internal frame.
Multi-threading
Geotk implementations allow this method to be invoked from any thread. If the caller
thread is not the Swing thread, then the execution of this method will be
registered in the AWT Event Queue and the caller thread will block until completion.
showDialog in interface Dialogowner - The parent component for the dialog box, or null if there is no parent.title - The dialog box title.
true if user pressed the "Ok" button, or false otherwise
(e.g. pressing "Cancel" or closing the dialog box from the title bar).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||