Class PrefEditor

java.lang.Object
  |
  +--PrefEditor
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Alignment, PrefCalib, PrefComp, PrefDebug, PrefDef, PrefGeneral, PrefImage, PrefMorph, PrefPage, PrefPageNew, PrefSeg, PrefTrans, PrefUnits, Print

public abstract class PrefEditor
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
(package private)  javax.swing.JDialog dialog
           
(package private)  java.util.Vector fields
           
 java.lang.String name
           
(package private)  CartoFrame owner
           
(package private)  java.awt.Container pane
           
(package private)  javax.swing.JScrollPane scroll
           
private static long serialVersionUID
           
(package private)  java.util.Vector targets
           
 
Constructor Summary
PrefEditor()
           
 
Method Summary
 void abandon()
           
(package private)  javax.swing.JCheckBox addCheck(boolean val, java.lang.String label)
           
static javax.swing.JCheckBox addCheck(java.awt.Container pane, boolean val, java.lang.String label)
           
(package private)  ColorBox addColor(java.awt.Color val, java.lang.String label)
           
static ColorBox addColor(java.awt.Container pane, java.awt.Color val, java.lang.String label)
           
static javax.swing.JTextField addDouble(java.awt.Container pane, double val, java.lang.String label)
           
static javax.swing.JTextField addDouble(java.awt.Container pane, double val, java.lang.String label, int width)
           
(package private)  javax.swing.JTextField addDouble(double val, java.lang.String label)
           
static javax.swing.JTextField addInt(java.awt.Container pane, int val, java.lang.String label)
           
(package private)  javax.swing.JTextField addInt(int val, java.lang.String label)
           
static void addlabeled(java.awt.Container pane, javax.swing.JComponent comp, java.lang.String label)
           
(package private)  void addlabeled(javax.swing.JComponent comp, java.lang.String label)
           
(package private)  javax.swing.JRadioButton addRadio(boolean val, java.lang.String label)
           
static javax.swing.JRadioButton addRadio(java.awt.Container pane, boolean val, java.lang.String label)
           
static javax.swing.JTextField addString(java.awt.Container pane, java.lang.String val, java.lang.String label)
           
(package private)  javax.swing.JTextField addString(java.lang.String val, java.lang.String label)
           
static javax.swing.JComboBox addUnit(java.awt.Container pane, java.lang.Object val, java.lang.Object[] posible, java.lang.String label)
           
(package private)  javax.swing.JComboBox addUnit(java.lang.Object val, java.lang.Object[] posible, java.lang.String label)
           
abstract  void apply()
           
 java.awt.Container getBarePane(CartoFrame owner)
           
 javax.swing.JScrollPane getPane(CartoFrame owner)
           
abstract  void newPane()
           
static double readDouble(javax.swing.JTextField field)
           
static int readInt(javax.swing.JTextField field)
           
 void reset()
           
 void save()
           
(package private)  java.awt.Component setParm(java.awt.Container pane, java.lang.reflect.Field target, java.lang.String lab)
           
(package private)  java.awt.Component setParm(java.awt.Container pane, java.lang.String target)
           
(package private)  java.awt.Component setParm(java.awt.Container pane, java.lang.String target, java.lang.String lab)
           
(package private)  java.awt.Component setParm(java.lang.String target)
           
(package private)  java.awt.Component setParm(java.lang.String target, java.lang.String lab)
           
(package private)  javax.swing.JRadioButton setRadio(java.awt.Container pane, java.lang.String targetstring, java.lang.String lab)
           
(package private)  java.awt.Component setUnit(java.awt.Container pane, java.lang.reflect.Field target, java.lang.Object[] posible, java.lang.String label)
           
(package private)  java.awt.Component setUnit(java.awt.Container pane, java.lang.String target, java.lang.Object[] possible, java.lang.String lab)
           
(package private)  java.awt.Component setUnit(java.lang.String target, java.lang.Object[] possible, java.lang.String lab)
           
(package private)  void setup()
           
(package private)  void skip()
           
static void skip(java.awt.Container pane)
           
 java.lang.String toString()
           
 void update()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID

name

public java.lang.String name

pane

transient java.awt.Container pane

scroll

transient javax.swing.JScrollPane scroll

owner

transient CartoFrame owner

dialog

transient javax.swing.JDialog dialog

targets

transient java.util.Vector targets

fields

transient java.util.Vector fields
Constructor Detail

PrefEditor

public PrefEditor()
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getPane

public javax.swing.JScrollPane getPane(CartoFrame owner)

getBarePane

public java.awt.Container getBarePane(CartoFrame owner)

reset

public void reset()

apply

public abstract void apply()

newPane

public abstract void newPane()
                      throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException

setup

void setup()

setUnit

java.awt.Component setUnit(java.lang.String target,
                           java.lang.Object[] possible,
                           java.lang.String lab)
                     throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException

setUnit

java.awt.Component setUnit(java.awt.Container pane,
                           java.lang.String target,
                           java.lang.Object[] possible,
                           java.lang.String lab)
                     throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException

setUnit

java.awt.Component setUnit(java.awt.Container pane,
                           java.lang.reflect.Field target,
                           java.lang.Object[] posible,
                           java.lang.String label)

setParm

java.awt.Component setParm(java.lang.String target)
                     throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException

setParm

java.awt.Component setParm(java.awt.Container pane,
                           java.lang.String target)
                     throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException

setParm

java.awt.Component setParm(java.lang.String target,
                           java.lang.String lab)
                     throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException

setParm

java.awt.Component setParm(java.awt.Container pane,
                           java.lang.String target,
                           java.lang.String lab)
                     throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException

setParm

java.awt.Component setParm(java.awt.Container pane,
                           java.lang.reflect.Field target,
                           java.lang.String lab)

setRadio

javax.swing.JRadioButton setRadio(java.awt.Container pane,
                                  java.lang.String targetstring,
                                  java.lang.String lab)
                            throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException

save

public void save()

update

public void update()

abandon

public void abandon()

addDouble

javax.swing.JTextField addDouble(double val,
                                 java.lang.String label)

addDouble

public static javax.swing.JTextField addDouble(java.awt.Container pane,
                                               double val,
                                               java.lang.String label,
                                               int width)

addDouble

public static javax.swing.JTextField addDouble(java.awt.Container pane,
                                               double val,
                                               java.lang.String label)

readDouble

public static double readDouble(javax.swing.JTextField field)

addInt

public static javax.swing.JTextField addInt(java.awt.Container pane,
                                            int val,
                                            java.lang.String label)

addInt

javax.swing.JTextField addInt(int val,
                              java.lang.String label)

addString

public static javax.swing.JTextField addString(java.awt.Container pane,
                                               java.lang.String val,
                                               java.lang.String label)

addString

javax.swing.JTextField addString(java.lang.String val,
                                 java.lang.String label)

addUnit

public static javax.swing.JComboBox addUnit(java.awt.Container pane,
                                            java.lang.Object val,
                                            java.lang.Object[] posible,
                                            java.lang.String label)

addUnit

javax.swing.JComboBox addUnit(java.lang.Object val,
                              java.lang.Object[] posible,
                              java.lang.String label)

readInt

public static int readInt(javax.swing.JTextField field)

addCheck

public static javax.swing.JCheckBox addCheck(java.awt.Container pane,
                                             boolean val,
                                             java.lang.String label)

addCheck

javax.swing.JCheckBox addCheck(boolean val,
                               java.lang.String label)

addColor

public static ColorBox addColor(java.awt.Container pane,
                                java.awt.Color val,
                                java.lang.String label)

addColor

ColorBox addColor(java.awt.Color val,
                  java.lang.String label)

addRadio

public static javax.swing.JRadioButton addRadio(java.awt.Container pane,
                                                boolean val,
                                                java.lang.String label)

addRadio

javax.swing.JRadioButton addRadio(boolean val,
                                  java.lang.String label)

addlabeled

public static void addlabeled(java.awt.Container pane,
                              javax.swing.JComponent comp,
                              java.lang.String label)

addlabeled

void addlabeled(javax.swing.JComponent comp,
                java.lang.String label)

skip

public static void skip(java.awt.Container pane)

skip

void skip()