|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
javamorph.CConfig
public class CConfig
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JDialog |
---|
JDialog.AccessibleJDialog |
Nested classes/interfaces inherited from class java.awt.Dialog |
---|
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityType |
Nested classes/interfaces inherited from class java.awt.Window |
---|
Window.AccessibleAWTWindow |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
private CEditField |
columns_of_mesh
Edit field for the property with the same name. |
static int |
COLUMNS_OF_MESH
Columns of the mesh. |
static int |
EDIT_MESH_ADD
User is adding mesh points with the GUI. |
static int |
EDIT_MESH_OFF
User is moving mesh points with the GUI. |
static int |
EDIT_MESH_SUB
User is removing mesh points with the GUI. |
static int |
EDIT_POLYGON_ADD
User is adding polygon points with the GUI. |
static int |
EDIT_POLYGON_OFF
User is moving polygon points with the GUI. |
static int |
EDIT_POLYGON_SUB
User is removing polygon points with the GUI. |
static int |
edit_state
Equal edit mode of both picture display viewers. |
private CFrame |
left
Left morph picture componenent. |
static double[][] |
left_clip
Smoothed clip polygon matrix of the left picture. |
static BufferedImage |
left_image
Left input image. |
static Vector<Point> |
left_mesh
Collection of points which represent the left picture's mesh. |
static Vector<Point> |
left_polygon
Collection of points which represent the left picture's polygon. |
static Vector<CTriangle> |
left_triangles
Triangulation of the left picture. |
private CEditField |
mark_size
Size of cursor and also point marks. |
static int |
MARK_SIZE
Size of the marker points for mesh & polygon. |
private CEditField |
num_of_morph_steps
Edit field for the property with the same name. |
static int |
NUM_OF_MORPH_STEPS
Number of morph steps. |
private JFrame |
parent
Parent JFrame to enable modal behavior. |
private CEditField |
points_of_polygon
Edit field for the property with the same name. |
static int |
POINTS_OF_POLYGON
Points of the left polygon. |
private Properties |
props
Property object. |
static BufferedImage |
result_image
Current result image to be saved to disk. |
static Vector<CTriangle> |
result_triangles
Current result triangulation. |
private CFrame |
right
Right morph picture component. |
static double[][] |
right_clip
Smoothed clip polygon matrix of the right picture. |
static BufferedImage |
right_image
Right input image. |
static Vector<Point> |
right_mesh
Collection of points which represent the right picture's mesh. |
static Vector<Point> |
right_polygon
Collection of points which represent the right picture's polygon. |
static Vector<CTriangle> |
right_triangles
Triangulation of the right picture. |
private CEditField |
rows_of_mesh
Edit field for the property with the same name. |
static int |
ROWS_OF_MESH
Rows of the mesh. |
private static long |
serialVersionUID
Java API. |
private CEditField |
smooth_radius
Edit field for the property with the same name. |
static int |
SMOOTH_RADIUS
Smooth radius of the polygon. |
private CEditField |
working_dir
Display field for the working directory with the same name. |
Fields inherited from class javax.swing.JDialog |
---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Dialog |
---|
DEFAULT_MODALITY_TYPE |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
CConfig(JFrame parent,
CFrame left,
CFrame right)
Constructor. |
Method Summary | |
---|---|
void |
open()
Show the config dialog when requested by user's menu. |
void |
run()
Shutdown hook. |
void |
windowActivated(WindowEvent e)
Event API. |
void |
windowClosed(WindowEvent e)
Event API. |
void |
windowClosing(WindowEvent e)
When the user closes the dialog -> assign the dialog content to this program's global configuration. |
void |
windowDeactivated(WindowEvent e)
Event API. |
void |
windowDeiconified(WindowEvent e)
Event API. |
void |
windowIconified(WindowEvent e)
Event API. |
void |
windowOpened(WindowEvent e)
When the user opens the dialog then read this application's global data into the shown dialog. |
Methods inherited from class java.awt.Dialog |
---|
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, setVisible, show, toBack |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
public static final int EDIT_MESH_ADD
public static final int EDIT_MESH_SUB
public static final int EDIT_MESH_OFF
public static final int EDIT_POLYGON_ADD
public static final int EDIT_POLYGON_SUB
public static final int EDIT_POLYGON_OFF
public static int ROWS_OF_MESH
public static int COLUMNS_OF_MESH
public static int POINTS_OF_POLYGON
public static int NUM_OF_MORPH_STEPS
public static int SMOOTH_RADIUS
public static int MARK_SIZE
public static final Vector<Point> left_mesh
public static final Vector<Point> right_mesh
public static final Vector<Point> left_polygon
public static final Vector<Point> right_polygon
public static BufferedImage left_image
public static BufferedImage right_image
public static BufferedImage result_image
public static double[][] left_clip
public static double[][] right_clip
public static int edit_state
public static final Vector<CTriangle> left_triangles
public static final Vector<CTriangle> right_triangles
public static final Vector<CTriangle> result_triangles
private Properties props
private JFrame parent
private CFrame left
private CFrame right
private CEditField rows_of_mesh
private CEditField columns_of_mesh
private CEditField points_of_polygon
private CEditField num_of_morph_steps
private CEditField smooth_radius
private CEditField mark_size
private CEditField working_dir
Constructor Detail |
---|
public CConfig(JFrame parent, CFrame left, CFrame right)
parent
- The parent JFrame.left
- Left picture displaying component.right
- Right picture displaying component.Method Detail |
---|
public void open()
public void run()
run
in interface Runnable
public void windowActivated(WindowEvent e)
windowActivated
in interface WindowListener
public void windowClosed(WindowEvent e)
windowClosed
in interface WindowListener
public void windowClosing(WindowEvent e)
windowClosing
in interface WindowListener
public void windowDeactivated(WindowEvent e)
windowDeactivated
in interface WindowListener
public void windowDeiconified(WindowEvent e)
windowDeiconified
in interface WindowListener
public void windowIconified(WindowEvent e)
windowIconified
in interface WindowListener
public void windowOpened(WindowEvent e)
windowOpened
in interface WindowListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |