Revision 38564 branches/v2_0_0_prep/extensions/org.gvsig.annotation.app/org.gvsig.annotation.app.extension/src/main/java/org/gvsig/annotation/app/extension/AnnotationPreferencesPage.java
AnnotationPreferencesPage.java | ||
---|---|---|
49 | 49 |
import javax.swing.JPanel; |
50 | 50 |
import javax.swing.JTextField; |
51 | 51 |
|
52 |
import org.gvsig.andami.IconThemeHelper; |
|
52 | 53 |
import org.gvsig.andami.PluginServices; |
53 | 54 |
import org.gvsig.andami.preferences.AbstractPreferencePage; |
54 | 55 |
import org.gvsig.andami.preferences.StoreException; |
... | ... | |
56 | 57 |
import org.gvsig.annotation.AnnotationManager; |
57 | 58 |
import org.gvsig.annotation.swing.AnnotationSwingLocator; |
58 | 59 |
import org.gvsig.annotation.swing.JAnnotationPreferencesPanel; |
59 |
import org.gvsig.app.gui.panels.ColorChooserPanel; |
|
60 |
import org.gvsig.utils.swing.JComboBox; |
|
61 | 60 |
/** |
62 | 61 |
* Default configuration page. |
63 | 62 |
* <b><b> |
... | ... | |
67 | 66 |
* @author Vicente Caballero Navarro |
68 | 67 |
*/ |
69 | 68 |
public class AnnotationPreferencesPage extends AbstractPreferencePage { |
69 |
/** |
|
70 |
* |
|
71 |
*/ |
|
72 |
private static final long serialVersionUID = -472617080926223575L; |
|
70 | 73 |
protected String id; |
71 |
private ImageIcon icon; |
|
74 |
//private ImageIcon icon;
|
|
72 | 75 |
private JTextField txtDefaultText; |
73 |
private JComboBox cmbDefaultTypeFont; |
|
74 |
private JComboBox cmbDefaultStyleFont; |
|
75 |
private JTextField txtDefaultRotate; |
|
76 |
private JTextField txtDefaultHeight; |
|
77 |
private ColorChooserPanel jccDefaultColor; |
|
76 |
// private JComboBox cmbDefaultTypeFont;
|
|
77 |
// private JComboBox cmbDefaultStyleFont;
|
|
78 |
// private JTextField txtDefaultRotate;
|
|
79 |
// private JTextField txtDefaultHeight;
|
|
80 |
// private ColorChooserPanel jccDefaultColor;
|
|
78 | 81 |
private JAnnotationPreferencesPanel panel = null; |
79 | 82 |
|
80 | 83 |
private AnnotationManager annotationManager = null; |
... | ... | |
132 | 135 |
} |
133 | 136 |
|
134 | 137 |
public ImageIcon getIcon() { |
135 |
if (icon==null) |
|
136 |
icon = PluginServices.getIconTheme().get("annotation-properties"); |
|
137 |
return icon; |
|
138 |
return IconThemeHelper.getImageIcon("annotation-preferences"); |
|
138 | 139 |
} |
139 | 140 |
|
140 | 141 |
public boolean isValueChanged() { |
Also available in: Unified diff