KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jac > aspects > gui > swing > PointEditor


1 /*
2   Copyright (C) 2001-2003 Renaud Pawlak <renaud@aopsys.com>,
3                           Laurent Martelli <laurent@aopsys.com>
4   
5   This program is free software; you can redistribute it and/or modify
6   it under the terms of the GNU Lesser General Public License as
7   published by the Free Software Foundation; either version 2 of the
8   License, or (at your option) any later version.
9
10   This program is distributed in the hope that it will be useful, but
11   WITHOUT ANY WARRANTY; without even the implied warranty of
12   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13   Lesser General Public License for more details.
14
15   You should have received a copy of the GNU Lesser General Public
16   License along with this program; if not, write to the Free Software
17   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
18   USA */

19
20 package org.objectweb.jac.aspects.gui.swing;
21
22 import java.awt.Point JavaDoc;
23 import org.objectweb.jac.aspects.gui.FieldEditor;
24 import org.objectweb.jac.aspects.gui.PointFormat;
25 import org.objectweb.jac.core.rtti.FieldItem;
26
27 /**
28  * A Swing editor component for point values.
29  */

30 public class PointEditor extends FormatEditor
31     implements FieldEditor
32 {
33     /**
34      * Constructs a new Point editor.
35      */

36     public PointEditor(Object JavaDoc substance, FieldItem field) {
37         super(substance,field);
38     }
39
40     protected void initFormat(FieldItem field) {
41         format = new PointFormat(field);
42     }
43 }
44
Popular Tags