|
||||||||||
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
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.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. |
KernelEditor |
getHorizontalEditor()
Returns the horizontal kernel editor. |
KernelEditor |
getVerticalEditor()
Returns the vertical kernel editor. |
static void |
main(String[] args)
Show the dialog box. |
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 boolean showDialog(Component owner, String title)
owner
is contained into a
JDesktopPane
, the dialog box will appears as an internal frame. This
method can be invoked from any thread (may or may not be the Swing thread).
owner
- 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).public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |