Revision 47250
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/project/documents/view/expressionevaluator/ViewElement.java | ||
---|---|---|
11 | 11 |
import org.gvsig.app.project.documents.view.ViewManager; |
12 | 12 |
import org.gvsig.app.project.documents.view.expressionevaluator.viewcapturepoint.ViewCapturePointElement; |
13 | 13 |
import org.gvsig.app.project.documents.view.expressionevaluator.viewcapturerectangle.ViewCaptureRectangleElement; |
14 |
import org.gvsig.app.project.documents.view.expressionevaluator.viewpastegeom.ViewPasteGeomElement; |
|
14 | 15 |
import org.gvsig.expressionevaluator.Function; |
15 | 16 |
import org.gvsig.expressionevaluator.swing.Element; |
16 | 17 |
import org.gvsig.expressionevaluator.swing.Element.GroupElement; |
... | ... | |
43 | 44 |
this.values = new ArrayList<>(); |
44 | 45 |
|
45 | 46 |
this.values.add(new ViewCaptureRectangleElement()); |
47 |
this.values.add(new ViewPasteGeomElement()); |
|
46 | 48 |
this.values.add(new ViewCapturePointElement()); |
47 | 49 |
this.values.add(new ViewTakeProjectionCodeElement()); |
48 | 50 |
|
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/project/documents/view/expressionevaluator/ViewElementFactory.java | ||
---|---|---|
36 | 36 |
IconThemeHelper.registerIcon("element", "expressionbuilder-element-view-capture-bbox", factory); |
37 | 37 |
IconThemeHelper.registerIcon("element", "expressionbuilder-element-view-projection-code", factory); |
38 | 38 |
IconThemeHelper.registerIcon("element", "expressionbuilder-element-view", factory); |
39 |
IconThemeHelper.registerIcon("element", "expressionbuilder-element-view-paste-geometry", factory); |
|
39 | 40 |
} |
40 | 41 |
|
41 | 42 |
} |
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/project/documents/view/expressionevaluator/viewpastegeom/ViewPasteGeomPanelView.java | ||
---|---|---|
1 |
package org.gvsig.app.project.documents.view.expressionevaluator.viewpastegeom; |
|
2 |
|
|
3 |
import com.jeta.open.i18n.I18NUtils; |
|
4 |
import com.jgoodies.forms.layout.CellConstraints; |
|
5 |
import com.jgoodies.forms.layout.FormLayout; |
|
6 |
import java.awt.BorderLayout; |
|
7 |
import java.awt.ComponentOrientation; |
|
8 |
import java.awt.Container; |
|
9 |
import java.awt.Dimension; |
|
10 |
import java.awt.Font; |
|
11 |
import javax.swing.Box; |
|
12 |
import javax.swing.ButtonGroup; |
|
13 |
import javax.swing.ImageIcon; |
|
14 |
import javax.swing.JFrame; |
|
15 |
import javax.swing.JLabel; |
|
16 |
import javax.swing.JPanel; |
|
17 |
import javax.swing.JRadioButton; |
|
18 |
|
|
19 |
|
|
20 |
public class ViewPasteGeomPanelView extends JPanel |
|
21 |
{ |
|
22 |
JLabel lblConstantRectangle = new JLabel(); |
|
23 |
JLabel lblDescription = new JLabel(); |
|
24 |
JLabel lblCaptureAPointFromCurrentView = new JLabel(); |
|
25 |
JLabel lblUseWktOrWkb = new JLabel(); |
|
26 |
JRadioButton rdoInsertAsWKT = new JRadioButton(); |
|
27 |
ButtonGroup buttongroup1 = new ButtonGroup(); |
|
28 |
JRadioButton rdoInsertAsWKB = new JRadioButton(); |
|
29 |
JLabel lblUseGeometryOrText = new JLabel(); |
|
30 |
JRadioButton rdoInsertAsGeometry = new JRadioButton(); |
|
31 |
ButtonGroup buttongroup2 = new ButtonGroup(); |
|
32 |
JRadioButton rdoInsertAsString = new JRadioButton(); |
|
33 |
|
|
34 |
/** |
|
35 |
* Default constructor |
|
36 |
*/ |
|
37 |
public ViewPasteGeomPanelView() |
|
38 |
{ |
|
39 |
initializePanel(); |
|
40 |
} |
|
41 |
|
|
42 |
/** |
|
43 |
* Adds fill components to empty cells in the first row and first column of the grid. |
|
44 |
* This ensures that the grid spacing will be the same as shown in the designer. |
|
45 |
* @param cols an array of column indices in the first row where fill components should be added. |
|
46 |
* @param rows an array of row indices in the first column where fill components should be added. |
|
47 |
*/ |
|
48 |
void addFillComponents( Container panel, int[] cols, int[] rows ) |
|
49 |
{ |
|
50 |
Dimension filler = new Dimension(10,10); |
|
51 |
|
|
52 |
boolean filled_cell_11 = false; |
|
53 |
CellConstraints cc = new CellConstraints(); |
|
54 |
if ( cols.length > 0 && rows.length > 0 ) |
|
55 |
{ |
|
56 |
if ( cols[0] == 1 && rows[0] == 1 ) |
|
57 |
{ |
|
58 |
/** add a rigid area */ |
|
59 |
panel.add( Box.createRigidArea( filler ), cc.xy(1,1) ); |
|
60 |
filled_cell_11 = true; |
|
61 |
} |
|
62 |
} |
|
63 |
|
|
64 |
for( int index = 0; index < cols.length; index++ ) |
|
65 |
{ |
|
66 |
if ( cols[index] == 1 && filled_cell_11 ) |
|
67 |
{ |
|
68 |
continue; |
|
69 |
} |
|
70 |
panel.add( Box.createRigidArea( filler ), cc.xy(cols[index],1) ); |
|
71 |
} |
|
72 |
|
|
73 |
for( int index = 0; index < rows.length; index++ ) |
|
74 |
{ |
|
75 |
if ( rows[index] == 1 && filled_cell_11 ) |
|
76 |
{ |
|
77 |
continue; |
|
78 |
} |
|
79 |
panel.add( Box.createRigidArea( filler ), cc.xy(1,rows[index]) ); |
|
80 |
} |
|
81 |
|
|
82 |
} |
|
83 |
|
|
84 |
/** |
|
85 |
* Helper method to load an image file from the CLASSPATH |
|
86 |
* @param imageName the package and name of the file to load relative to the CLASSPATH |
|
87 |
* @return an ImageIcon instance with the specified image file |
|
88 |
* @throws IllegalArgumentException if the image resource cannot be loaded. |
|
89 |
*/ |
|
90 |
public ImageIcon loadImage( String imageName ) |
|
91 |
{ |
|
92 |
try |
|
93 |
{ |
|
94 |
ClassLoader classloader = getClass().getClassLoader(); |
|
95 |
java.net.URL url = classloader.getResource( imageName ); |
|
96 |
if ( url != null ) |
|
97 |
{ |
|
98 |
ImageIcon icon = new ImageIcon( url ); |
|
99 |
return icon; |
|
100 |
} |
|
101 |
} |
|
102 |
catch( Exception e ) |
|
103 |
{ |
|
104 |
e.printStackTrace(); |
|
105 |
} |
|
106 |
throw new IllegalArgumentException( "Unable to load image: " + imageName ); |
|
107 |
} |
|
108 |
|
|
109 |
/** |
|
110 |
* Method for recalculating the component orientation for |
|
111 |
* right-to-left Locales. |
|
112 |
* @param orientation the component orientation to be applied |
|
113 |
*/ |
|
114 |
public void applyComponentOrientation( ComponentOrientation orientation ) |
|
115 |
{ |
|
116 |
// Not yet implemented... |
|
117 |
// I18NUtils.applyComponentOrientation(this, orientation); |
|
118 |
super.applyComponentOrientation(orientation); |
|
119 |
} |
|
120 |
|
|
121 |
public JPanel createPanel() |
|
122 |
{ |
|
123 |
JPanel jpanel1 = new JPanel(); |
|
124 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE"); |
|
125 |
CellConstraints cc = new CellConstraints(); |
|
126 |
jpanel1.setLayout(formlayout1); |
|
127 |
|
|
128 |
lblConstantRectangle.setFont(new Font("Dialog",Font.BOLD,11)); |
|
129 |
lblConstantRectangle.setName("lblConstantRectangle"); |
|
130 |
lblConstantRectangle.setText("_Constant_Geometry"); |
|
131 |
jpanel1.add(lblConstantRectangle,cc.xywh(2,2,3,1)); |
|
132 |
|
|
133 |
lblDescription.setFont(new Font("Dialog",Font.BOLD,11)); |
|
134 |
lblDescription.setName("lblDescription"); |
|
135 |
lblDescription.setText("_Description"); |
|
136 |
jpanel1.add(lblDescription,cc.xy(2,4)); |
|
137 |
|
|
138 |
lblCaptureAPointFromCurrentView.setName("lblCaptureAPointFromCurrentView"); |
|
139 |
lblCaptureAPointFromCurrentView.setText("_Paste_a_geometry_from_clipboard"); |
|
140 |
jpanel1.add(lblCaptureAPointFromCurrentView,cc.xywh(2,5,3,1)); |
|
141 |
|
|
142 |
jpanel1.add(createPanel1(),cc.xywh(2,7,3,1)); |
|
143 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7,8 }); |
|
144 |
return jpanel1; |
|
145 |
} |
|
146 |
|
|
147 |
public JPanel createPanel1() |
|
148 |
{ |
|
149 |
JPanel jpanel1 = new JPanel(); |
|
150 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:8DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE","CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE"); |
|
151 |
CellConstraints cc = new CellConstraints(); |
|
152 |
jpanel1.setLayout(formlayout1); |
|
153 |
|
|
154 |
lblUseWktOrWkb.setName("lblUseWktOrWkb"); |
|
155 |
lblUseWktOrWkb.setText("_Use_WKT_or_WKB"); |
|
156 |
jpanel1.add(lblUseWktOrWkb,cc.xywh(2,1,2,1)); |
|
157 |
|
|
158 |
rdoInsertAsWKT.setActionCommand("Insert as WKT"); |
|
159 |
rdoInsertAsWKT.setName("rdoInsertAsWKT"); |
|
160 |
rdoInsertAsWKT.setOpaque(false); |
|
161 |
rdoInsertAsWKT.setText("_Insert_as_WKT"); |
|
162 |
buttongroup1.add(rdoInsertAsWKT); |
|
163 |
jpanel1.add(rdoInsertAsWKT,cc.xy(3,2)); |
|
164 |
|
|
165 |
rdoInsertAsWKB.setActionCommand("Insert as WKB"); |
|
166 |
rdoInsertAsWKB.setName("rdoInsertAsWKB"); |
|
167 |
rdoInsertAsWKB.setOpaque(false); |
|
168 |
rdoInsertAsWKB.setSelected(true); |
|
169 |
rdoInsertAsWKB.setText("_Insert_as_WKB"); |
|
170 |
buttongroup1.add(rdoInsertAsWKB); |
|
171 |
jpanel1.add(rdoInsertAsWKB,cc.xy(3,4)); |
|
172 |
|
|
173 |
lblUseGeometryOrText.setName("lblUseGeometryOrText"); |
|
174 |
lblUseGeometryOrText.setText("_Use_Geometry_or_Text"); |
|
175 |
jpanel1.add(lblUseGeometryOrText,cc.xywh(2,6,2,1)); |
|
176 |
|
|
177 |
rdoInsertAsGeometry.setActionCommand("Insert as geometry"); |
|
178 |
rdoInsertAsGeometry.setName("rdoInsertAsGeometry"); |
|
179 |
rdoInsertAsGeometry.setOpaque(false); |
|
180 |
rdoInsertAsGeometry.setSelected(true); |
|
181 |
rdoInsertAsGeometry.setText("_Insert_as_Geometry"); |
|
182 |
buttongroup2.add(rdoInsertAsGeometry); |
|
183 |
jpanel1.add(rdoInsertAsGeometry,cc.xy(3,8)); |
|
184 |
|
|
185 |
rdoInsertAsString.setActionCommand("Insert as String"); |
|
186 |
rdoInsertAsString.setName("rdoInsertAsString"); |
|
187 |
rdoInsertAsString.setOpaque(false); |
|
188 |
rdoInsertAsString.setText("_Insert_as_Text"); |
|
189 |
buttongroup2.add(rdoInsertAsString); |
|
190 |
jpanel1.add(rdoInsertAsString,cc.xy(3,10)); |
|
191 |
|
|
192 |
addFillComponents(jpanel1,new int[]{ 1,3,4 },new int[]{ 1,2,3,4,5,6,7,8,9,10 }); |
|
193 |
return jpanel1; |
|
194 |
} |
|
195 |
|
|
196 |
/** |
|
197 |
* Initializer |
|
198 |
*/ |
|
199 |
protected void initializePanel() |
|
200 |
{ |
|
201 |
setLayout(new BorderLayout()); |
|
202 |
add(createPanel(), BorderLayout.CENTER); |
|
203 |
} |
|
204 |
|
|
205 |
|
|
206 |
} |
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/project/documents/view/expressionevaluator/viewpastegeom/ViewPasteGeomPanel.java | ||
---|---|---|
1 |
package org.gvsig.app.project.documents.view.expressionevaluator.viewpastegeom; |
|
2 |
|
|
3 |
import javax.swing.JComponent; |
|
4 |
import org.gvsig.tools.swing.api.Component; |
|
5 |
import org.gvsig.tools.swing.api.ToolsSwingLocator; |
|
6 |
import org.gvsig.tools.swing.api.ToolsSwingManager; |
|
7 |
|
|
8 |
/** |
|
9 |
* |
|
10 |
* @author jjdelcerro |
|
11 |
*/ |
|
12 |
@SuppressWarnings("UseSpecificCatch") |
|
13 |
public class ViewPasteGeomPanel extends ViewPasteGeomPanelView implements Component { |
|
14 |
|
|
15 |
public ViewPasteGeomPanel() { |
|
16 |
this.initComponents(); |
|
17 |
} |
|
18 |
|
|
19 |
private void initComponents() { |
|
20 |
ToolsSwingManager toolsSwingManager = ToolsSwingLocator.getToolsSwingManager(); |
|
21 |
|
|
22 |
toolsSwingManager.translate(this.lblConstantRectangle); |
|
23 |
toolsSwingManager.translate(this.lblDescription); |
|
24 |
toolsSwingManager.translate(this.lblCaptureAPointFromCurrentView); |
|
25 |
toolsSwingManager.translate(this.lblUseWktOrWkb); |
|
26 |
toolsSwingManager.translate(this.lblUseGeometryOrText); |
|
27 |
toolsSwingManager.translate(this.rdoInsertAsGeometry); |
|
28 |
toolsSwingManager.translate(this.rdoInsertAsString); |
|
29 |
toolsSwingManager.translate(this.rdoInsertAsWKB); |
|
30 |
toolsSwingManager.translate(this.rdoInsertAsWKT); |
|
31 |
} |
|
32 |
|
|
33 |
@Override |
|
34 |
public JComponent asJComponent() { |
|
35 |
return this; |
|
36 |
} |
|
37 |
|
|
38 |
boolean insertAsWKT() { |
|
39 |
return this.rdoInsertAsWKT.isSelected(); |
|
40 |
} |
|
41 |
|
|
42 |
boolean insertAsGeometry() { |
|
43 |
return this.rdoInsertAsGeometry.isSelected(); |
|
44 |
} |
|
45 |
|
|
46 |
} |
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/project/documents/view/expressionevaluator/viewpastegeom/ViewPasteGeomElement.java | ||
---|---|---|
1 |
package org.gvsig.app.project.documents.view.expressionevaluator.viewpastegeom; |
|
2 |
|
|
3 |
import java.util.Objects; |
|
4 |
import javax.json.JsonArray; |
|
5 |
import javax.json.JsonObject; |
|
6 |
import javax.json.JsonValue; |
|
7 |
import org.apache.commons.lang3.StringUtils; |
|
8 |
import org.cresques.cts.IProjection; |
|
9 |
import org.gvsig.app.ApplicationLocator; |
|
10 |
import org.gvsig.app.ApplicationManager; |
|
11 |
import org.gvsig.app.project.documents.view.ViewDocument; |
|
12 |
import org.gvsig.expressionevaluator.GeometryExpressionBuilder; |
|
13 |
import org.gvsig.expressionevaluator.GeometryExpressionUtils; |
|
14 |
import org.gvsig.expressionevaluator.GeometryExpressionBuilderHelper.GeometrySupportType; |
|
15 |
import org.gvsig.expressionevaluator.swing.Element.CalculatedElement; |
|
16 |
import org.gvsig.expressionevaluator.swing.Element.SimpleElement; |
|
17 |
import org.gvsig.expressionevaluator.swing.JExpressionBuilder; |
|
18 |
import org.gvsig.expressionevaluator.swing.spi.AbstractElement; |
|
19 |
import org.gvsig.fmap.geom.Geometry; |
|
20 |
import org.gvsig.fmap.geom.GeometryLocator; |
|
21 |
import org.gvsig.fmap.geom.GeometryManager; |
|
22 |
import org.gvsig.json.Json; |
|
23 |
import org.gvsig.tools.ToolsLocator; |
|
24 |
import org.gvsig.tools.swing.api.Component; |
|
25 |
import org.gvsig.tools.swing.api.ToolsSwingLocator; |
|
26 |
import org.gvsig.tools.swing.api.ToolsSwingManager; |
|
27 |
|
|
28 |
/** |
|
29 |
* |
|
30 |
* @author jjdelcerro |
|
31 |
*/ |
|
32 |
@SuppressWarnings("UseSpecificCatch") |
|
33 |
public class ViewPasteGeomElement |
|
34 |
extends AbstractElement |
|
35 |
implements SimpleElement, CalculatedElement |
|
36 |
{ |
|
37 |
private ViewPasteGeomPanel aditionalPanel; |
|
38 |
|
|
39 |
public ViewPasteGeomElement() { |
|
40 |
super( |
|
41 |
"ViewPasteGeometry", |
|
42 |
ToolsLocator.getI18nManager().getTranslation("_Paste_geometry"), |
|
43 |
"expressionbuilder-element-view-paste-geometry" |
|
44 |
); |
|
45 |
} |
|
46 |
|
|
47 |
@Override |
|
48 |
public Object getValue() { |
|
49 |
if (this.aditionalPanel == null) { |
|
50 |
return null; |
|
51 |
} |
|
52 |
try { |
|
53 |
Geometry geom = this.getGeometry(); |
|
54 |
if (geom == null) { |
|
55 |
return null; |
|
56 |
} |
|
57 |
GeometryExpressionBuilder builder = GeometryExpressionUtils.createExpressionBuilder(); |
|
58 |
if (this.aditionalPanel.insertAsWKT()) { |
|
59 |
if (this.aditionalPanel.insertAsGeometry()) { |
|
60 |
builder.geometry_support_type(GeometrySupportType.WKT); |
|
61 |
return builder.geometry(geom).toString(); |
|
62 |
} else { |
|
63 |
String wkt = geom.convertToWKT(); |
|
64 |
return "'" + wkt + "'"; |
|
65 |
} |
|
66 |
} else { |
|
67 |
if (this.aditionalPanel.insertAsGeometry()) { |
|
68 |
builder.geometry_support_type(GeometrySupportType.WKB); |
|
69 |
return builder.geometry(geom).toString(); |
|
70 |
} else { |
|
71 |
byte[] wkb = geom.convertToWKB(); |
|
72 |
return builder.bytearray_hex(wkb); |
|
73 |
} |
|
74 |
} |
|
75 |
} catch (Exception ex) { |
|
76 |
LOGGER.warn("Can't get geometry value.", ex); |
|
77 |
return null; |
|
78 |
} |
|
79 |
} |
|
80 |
|
|
81 |
@Override |
|
82 |
public String getRenderedValue() { |
|
83 |
Object v = this.getValue(); |
|
84 |
if( v == null ) { |
|
85 |
return super.getRenderedValue(); |
|
86 |
} |
|
87 |
return v.toString(); |
|
88 |
} |
|
89 |
|
|
90 |
@Override |
|
91 |
public Component getAditionalPanel(JExpressionBuilder expressionBuilder) { |
|
92 |
if (aditionalPanel == null) { |
|
93 |
this.aditionalPanel = new ViewPasteGeomPanel(); |
|
94 |
} |
|
95 |
return this.aditionalPanel; |
|
96 |
} |
|
97 |
|
|
98 |
@Override |
|
99 |
public boolean isEnabled() { |
|
100 |
ApplicationManager application = ApplicationLocator.getManager(); |
|
101 |
return ! application.getUIManager().isModalDialogShowing(); |
|
102 |
} |
|
103 |
|
|
104 |
private Geometry getGeometry() { |
|
105 |
ToolsSwingManager toolsSwingManager = ToolsSwingLocator.getToolsSwingManager(); |
|
106 |
|
|
107 |
String s = toolsSwingManager.getFromClipboard(); |
|
108 |
if( StringUtils.isBlank(s) ) { |
|
109 |
return null; |
|
110 |
} |
|
111 |
Geometry geom = createGeometry(s); |
|
112 |
if( geom!=null ) { |
|
113 |
return geom; |
|
114 |
} |
|
115 |
|
|
116 |
JsonObject json = Json.createObject(s); |
|
117 |
geom = getGeometry(json); |
|
118 |
if( geom!=null ) { |
|
119 |
return geom; |
|
120 |
} |
|
121 |
JsonArray jsarr = Json.createArray(s); |
|
122 |
if( jsarr!=null ) { |
|
123 |
for (JsonValue value : jsarr) { |
|
124 |
if( value instanceof JsonObject ) { |
|
125 |
geom = getGeometry((JsonObject) value); |
|
126 |
if( geom!=null ) { |
|
127 |
return geom; |
|
128 |
} |
|
129 |
} else { |
|
130 |
Object x = Json.toObject(value); |
|
131 |
s = Objects.toString(x, null); |
|
132 |
if( StringUtils.isNotBlank(s) ) { |
|
133 |
geom = this.createGeometry(s); |
|
134 |
if( geom!=null ) { |
|
135 |
return geom; |
|
136 |
} |
|
137 |
} |
|
138 |
} |
|
139 |
} |
|
140 |
} |
|
141 |
return null; |
|
142 |
} |
|
143 |
|
|
144 |
private Geometry getGeometry(JsonObject json) { |
|
145 |
if( json==null ) { |
|
146 |
return null; |
|
147 |
} |
|
148 |
Geometry geom = null; |
|
149 |
|
|
150 |
for (JsonValue value : json.values()) { |
|
151 |
Object x = Json.toObject(value); |
|
152 |
String s = Objects.toString(x, null); |
|
153 |
if( StringUtils.isNotBlank(s) ) { |
|
154 |
geom = this.createGeometry(s); |
|
155 |
if( geom!=null ) { |
|
156 |
return geom; |
|
157 |
} |
|
158 |
} |
|
159 |
} |
|
160 |
return null; |
|
161 |
} |
|
162 |
|
|
163 |
private Geometry createGeometry(String s) { |
|
164 |
GeometryManager geomManager = GeometryLocator.getGeometryManager(); |
|
165 |
try { |
|
166 |
Geometry geom = geomManager.createFrom(s); |
|
167 |
if( geom.getProjection()==null ) { |
|
168 |
geom.setProjection(this.getCurrentProjection()); |
|
169 |
} |
|
170 |
return geom; |
|
171 |
} catch(Exception ex) { |
|
172 |
LOGGER.debug("???",ex); |
|
173 |
} |
|
174 |
return null; |
|
175 |
} |
|
176 |
|
|
177 |
private IProjection getCurrentProjection() { |
|
178 |
ApplicationManager application = ApplicationLocator.getManager(); |
|
179 |
ViewDocument viewDoc = (ViewDocument) application.getActiveDocument(ViewDocument.class); |
|
180 |
if( viewDoc == null ) { |
|
181 |
return null; |
|
182 |
} |
|
183 |
IProjection proj = viewDoc.getMapContext().getProjection(); |
|
184 |
return proj; |
|
185 |
} |
|
186 |
} |
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/project/documents/view/expressionevaluator/viewpastegeom/ViewPasteGeomPanelView.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
|
|
3 |
<object classname="com.jeta.forms.store.memento.FormPackage"> |
|
4 |
<at name="fileversion"> |
|
5 |
<object classname="com.jeta.forms.store.memento.FormsVersion2"> |
|
6 |
<at name="major">2</at> |
|
7 |
<at name="minor">0</at> |
|
8 |
<at name="sub">0</at> |
|
9 |
</object> |
|
10 |
</at> |
|
11 |
<at name="form"> |
|
12 |
<object classname="com.jeta.forms.store.memento.FormMemento"> |
|
13 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
14 |
<at name="cellconstraints"> |
|
15 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
16 |
<at name="column">1</at> |
|
17 |
<at name="row">1</at> |
|
18 |
<at name="colspan">1</at> |
|
19 |
<at name="rowspan">1</at> |
|
20 |
<at name="halign">default</at> |
|
21 |
<at name="valign">default</at> |
|
22 |
<at name="insets" object="insets">0,0,0,0</at> |
|
23 |
</object> |
|
24 |
</at> |
|
25 |
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at> |
|
26 |
</super> |
|
27 |
<at name="id">/home/jjdelcerro/datos/devel/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/project/documents/view/expressionevaluator/viewpastegeom/ViewPasteGeomPanelView.xml</at> |
|
28 |
<at name="rowspecs">CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE</at> |
|
29 |
<at name="colspecs">FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE</at> |
|
30 |
<at name="components"> |
|
31 |
<object classname="java.util.LinkedList"> |
|
32 |
<item > |
|
33 |
<at name="value"> |
|
34 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
35 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
36 |
<at name="cellconstraints"> |
|
37 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
38 |
<at name="column">2</at> |
|
39 |
<at name="row">2</at> |
|
40 |
<at name="colspan">3</at> |
|
41 |
<at name="rowspan">1</at> |
|
42 |
<at name="halign">default</at> |
|
43 |
<at name="valign">default</at> |
|
44 |
<at name="insets" object="insets">0,0,0,0</at> |
|
45 |
</object> |
|
46 |
</at> |
|
47 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
48 |
</super> |
|
49 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
50 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
51 |
<at name="beanproperties"> |
|
52 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
53 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
54 |
<at name="properties"> |
|
55 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
56 |
<at name="border"> |
|
57 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
58 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
59 |
<at name="name">border</at> |
|
60 |
</super> |
|
61 |
<at name="borders"> |
|
62 |
<object classname="java.util.LinkedList"> |
|
63 |
<item > |
|
64 |
<at name="value"> |
|
65 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
66 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
67 |
<at name="name">border</at> |
|
68 |
</super> |
|
69 |
</object> |
|
70 |
</at> |
|
71 |
</item> |
|
72 |
</object> |
|
73 |
</at> |
|
74 |
</object> |
|
75 |
</at> |
|
76 |
<at name="name">lblConstantRectangle</at> |
|
77 |
<at name="width">1591</at> |
|
78 |
<at name="text">_Constant_Geometry</at> |
|
79 |
<at name="fill"> |
|
80 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
81 |
<at name="name">fill</at> |
|
82 |
</object> |
|
83 |
</at> |
|
84 |
<at name="font"> |
|
85 |
<object classname="com.jeta.forms.store.properties.FontProperty"> |
|
86 |
<at name="family">Dialog</at> |
|
87 |
<at name="style">1</at> |
|
88 |
<at name="size">11</at> |
|
89 |
</object> |
|
90 |
</at> |
|
91 |
<at name="height">16</at> |
|
92 |
</object> |
|
93 |
</at> |
|
94 |
</object> |
|
95 |
</at> |
|
96 |
</object> |
|
97 |
</at> |
|
98 |
</item> |
|
99 |
<item > |
|
100 |
<at name="value"> |
|
101 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
102 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
103 |
<at name="cellconstraints"> |
|
104 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
105 |
<at name="column">2</at> |
|
106 |
<at name="row">4</at> |
|
107 |
<at name="colspan">1</at> |
|
108 |
<at name="rowspan">1</at> |
|
109 |
<at name="halign">default</at> |
|
110 |
<at name="valign">default</at> |
|
111 |
<at name="insets" object="insets">0,0,0,0</at> |
|
112 |
</object> |
|
113 |
</at> |
|
114 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
115 |
</super> |
|
116 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
117 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
118 |
<at name="beanproperties"> |
|
119 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
120 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
121 |
<at name="properties"> |
|
122 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
123 |
<at name="border"> |
|
124 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
125 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
126 |
<at name="name">border</at> |
|
127 |
</super> |
|
128 |
<at name="borders"> |
|
129 |
<object classname="java.util.LinkedList"> |
|
130 |
<item > |
|
131 |
<at name="value"> |
|
132 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
133 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
134 |
<at name="name">border</at> |
|
135 |
</super> |
|
136 |
</object> |
|
137 |
</at> |
|
138 |
</item> |
|
139 |
</object> |
|
140 |
</at> |
|
141 |
</object> |
|
142 |
</at> |
|
143 |
<at name="name">lblDescription</at> |
|
144 |
<at name="width">68</at> |
|
145 |
<at name="text">_Description</at> |
|
146 |
<at name="fill"> |
|
147 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
148 |
<at name="name">fill</at> |
|
149 |
</object> |
|
150 |
</at> |
|
151 |
<at name="font"> |
|
152 |
<object classname="com.jeta.forms.store.properties.FontProperty"> |
|
153 |
<at name="family">Dialog</at> |
|
154 |
<at name="style">1</at> |
|
155 |
<at name="size">11</at> |
|
156 |
</object> |
|
157 |
</at> |
|
158 |
<at name="height">16</at> |
|
159 |
</object> |
|
160 |
</at> |
|
161 |
</object> |
|
162 |
</at> |
|
163 |
</object> |
|
164 |
</at> |
|
165 |
</item> |
|
166 |
<item > |
|
167 |
<at name="value"> |
|
168 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
169 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
170 |
<at name="cellconstraints"> |
|
171 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
172 |
<at name="column">2</at> |
|
173 |
<at name="row">5</at> |
|
174 |
<at name="colspan">3</at> |
|
175 |
<at name="rowspan">1</at> |
|
176 |
<at name="halign">default</at> |
|
177 |
<at name="valign">default</at> |
|
178 |
<at name="insets" object="insets">0,0,0,0</at> |
|
179 |
</object> |
|
180 |
</at> |
|
181 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
182 |
</super> |
|
183 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
184 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
185 |
<at name="beanproperties"> |
|
186 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
187 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
188 |
<at name="properties"> |
|
189 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
190 |
<at name="border"> |
|
191 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
192 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
193 |
<at name="name">border</at> |
|
194 |
</super> |
|
195 |
<at name="borders"> |
|
196 |
<object classname="java.util.LinkedList"> |
|
197 |
<item > |
|
198 |
<at name="value"> |
|
199 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
200 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
201 |
<at name="name">border</at> |
|
202 |
</super> |
|
203 |
</object> |
|
204 |
</at> |
|
205 |
</item> |
|
206 |
</object> |
|
207 |
</at> |
|
208 |
</object> |
|
209 |
</at> |
|
210 |
<at name="name">lblCaptureAPointFromCurrentView</at> |
|
211 |
<at name="width">1591</at> |
|
212 |
<at name="text">_Paste_a_geometry_from_clipboard</at> |
|
213 |
<at name="fill"> |
|
214 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
215 |
<at name="name">fill</at> |
|
216 |
</object> |
|
217 |
</at> |
|
218 |
<at name="height">16</at> |
|
219 |
</object> |
|
220 |
</at> |
|
221 |
</object> |
|
222 |
</at> |
|
223 |
</object> |
|
224 |
</at> |
|
225 |
</item> |
|
226 |
<item > |
|
227 |
<at name="value"> |
|
228 |
<object classname="com.jeta.forms.store.memento.FormMemento"> |
|
229 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
230 |
<at name="cellconstraints"> |
|
231 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
232 |
<at name="column">2</at> |
|
233 |
<at name="row">7</at> |
|
234 |
<at name="colspan">3</at> |
|
235 |
<at name="rowspan">1</at> |
|
236 |
<at name="halign">default</at> |
|
237 |
<at name="valign">default</at> |
|
238 |
<at name="insets" object="insets">0,0,0,0</at> |
|
239 |
</object> |
|
240 |
</at> |
|
241 |
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at> |
|
242 |
</super> |
|
243 |
<at name="id">embedded.296594447</at> |
|
244 |
<at name="rowspecs">CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE</at> |
|
245 |
<at name="colspecs">FILL:DEFAULT:GROW(1.0),FILL:8DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE</at> |
|
246 |
<at name="components"> |
|
247 |
<object classname="java.util.LinkedList"> |
|
248 |
<item > |
|
249 |
<at name="value"> |
|
250 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
251 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
252 |
<at name="cellconstraints"> |
|
253 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
254 |
<at name="column">2</at> |
|
255 |
<at name="row">1</at> |
|
256 |
<at name="colspan">2</at> |
|
257 |
<at name="rowspan">1</at> |
|
258 |
<at name="halign">default</at> |
|
259 |
<at name="valign">default</at> |
|
260 |
<at name="insets" object="insets">0,0,0,0</at> |
|
261 |
</object> |
|
262 |
</at> |
|
263 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
264 |
</super> |
|
265 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
266 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
267 |
<at name="beanproperties"> |
|
268 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
269 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
270 |
<at name="properties"> |
|
271 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
272 |
<at name="border"> |
|
273 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
274 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
275 |
<at name="name">border</at> |
|
276 |
</super> |
|
277 |
<at name="borders"> |
|
278 |
<object classname="java.util.LinkedList"> |
|
279 |
<item > |
|
280 |
<at name="value"> |
|
281 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
282 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
283 |
<at name="name">border</at> |
|
284 |
</super> |
|
285 |
</object> |
|
286 |
</at> |
|
287 |
</item> |
|
288 |
</object> |
|
289 |
</at> |
|
290 |
</object> |
|
291 |
</at> |
|
292 |
<at name="name">lblUseWktOrWkb</at> |
|
293 |
<at name="width">140</at> |
|
294 |
<at name="text">_Use_WKT_or_WKB</at> |
|
295 |
<at name="fill"> |
|
296 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
297 |
<at name="name">fill</at> |
|
298 |
</object> |
|
299 |
</at> |
|
300 |
<at name="height">16</at> |
|
301 |
</object> |
|
302 |
</at> |
|
303 |
</object> |
|
304 |
</at> |
|
305 |
</object> |
|
306 |
</at> |
|
307 |
</item> |
|
308 |
<item > |
|
309 |
<at name="value"> |
|
310 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
311 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
312 |
<at name="cellconstraints"> |
|
313 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
314 |
<at name="column">3</at> |
|
315 |
<at name="row">2</at> |
|
316 |
<at name="colspan">1</at> |
|
317 |
<at name="rowspan">1</at> |
|
318 |
<at name="halign">default</at> |
|
319 |
<at name="valign">default</at> |
|
320 |
<at name="insets" object="insets">0,0,0,0</at> |
|
321 |
</object> |
|
322 |
</at> |
|
323 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
324 |
</super> |
|
325 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
326 |
<at name="beanclass">javax.swing.JRadioButton</at> |
|
327 |
<at name="beanproperties"> |
|
328 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
329 |
<at name="classname">javax.swing.JRadioButton</at> |
|
330 |
<at name="properties"> |
|
331 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
332 |
<at name="border"> |
|
333 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
334 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
335 |
<at name="name">border</at> |
|
336 |
</super> |
|
337 |
<at name="borders"> |
|
338 |
<object classname="java.util.LinkedList"> |
|
339 |
<item > |
|
340 |
<at name="value"> |
|
341 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
342 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
343 |
<at name="name">border</at> |
|
344 |
</super> |
|
345 |
</object> |
|
346 |
</at> |
|
347 |
</item> |
|
348 |
</object> |
|
349 |
</at> |
|
350 |
</object> |
|
351 |
</at> |
|
352 |
<at name="actionCommand">Insert as WKT</at> |
|
353 |
<at name="buttonGroup"> |
|
354 |
<object classname="com.jeta.forms.store.properties.ButtonGroupProperty"> |
|
355 |
<at name="name">buttonGroup</at> |
|
356 |
<at name="groupname">1</at> |
|
357 |
</object> |
|
358 |
</at> |
|
359 |
<at name="opaque">false</at> |
|
360 |
<at name="name">rdoInsertAsWKT</at> |
|
361 |
<at name="width">128</at> |
|
362 |
<at name="text">_Insert_as_WKT</at> |
|
363 |
<at name="height">18</at> |
|
364 |
</object> |
|
365 |
</at> |
|
366 |
</object> |
|
367 |
</at> |
|
368 |
</object> |
|
369 |
</at> |
|
370 |
</item> |
|
371 |
<item > |
|
372 |
<at name="value"> |
|
373 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
374 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
375 |
<at name="cellconstraints"> |
|
376 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
377 |
<at name="column">3</at> |
|
378 |
<at name="row">4</at> |
|
379 |
<at name="colspan">1</at> |
|
380 |
<at name="rowspan">1</at> |
|
381 |
<at name="halign">default</at> |
|
382 |
<at name="valign">default</at> |
|
383 |
<at name="insets" object="insets">0,0,0,0</at> |
|
384 |
</object> |
|
385 |
</at> |
|
386 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
387 |
</super> |
|
388 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
389 |
<at name="beanclass">javax.swing.JRadioButton</at> |
|
390 |
<at name="beanproperties"> |
|
391 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
392 |
<at name="classname">javax.swing.JRadioButton</at> |
|
393 |
<at name="properties"> |
|
394 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
395 |
<at name="border"> |
|
396 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
397 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
398 |
<at name="name">border</at> |
|
399 |
</super> |
|
400 |
<at name="borders"> |
|
401 |
<object classname="java.util.LinkedList"> |
|
402 |
<item > |
|
403 |
<at name="value"> |
|
404 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
405 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
406 |
<at name="name">border</at> |
|
407 |
</super> |
|
408 |
</object> |
|
409 |
</at> |
|
410 |
</item> |
|
411 |
</object> |
|
412 |
</at> |
|
413 |
</object> |
|
414 |
</at> |
|
415 |
<at name="actionCommand">Insert as WKB</at> |
|
416 |
<at name="buttonGroup"> |
|
417 |
<object classname="com.jeta.forms.store.properties.ButtonGroupProperty"> |
|
418 |
<at name="name">buttonGroup</at> |
|
419 |
<at name="groupname">1</at> |
|
420 |
</object> |
|
421 |
</at> |
|
422 |
<at name="opaque">false</at> |
|
423 |
<at name="name">rdoInsertAsWKB</at> |
|
424 |
<at name="width">128</at> |
|
425 |
<at name="text">_Insert_as_WKB</at> |
|
426 |
<at name="selected">true</at> |
|
427 |
<at name="height">18</at> |
|
428 |
</object> |
|
429 |
</at> |
|
430 |
</object> |
|
431 |
</at> |
|
432 |
</object> |
|
433 |
</at> |
|
434 |
</item> |
|
435 |
<item > |
|
436 |
<at name="value"> |
|
437 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
438 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
439 |
<at name="cellconstraints"> |
|
440 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
441 |
<at name="column">2</at> |
|
442 |
<at name="row">6</at> |
|
443 |
<at name="colspan">2</at> |
|
444 |
<at name="rowspan">1</at> |
|
445 |
<at name="halign">default</at> |
|
446 |
<at name="valign">default</at> |
|
447 |
<at name="insets" object="insets">0,0,0,0</at> |
|
448 |
</object> |
|
449 |
</at> |
|
450 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
451 |
</super> |
|
452 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
453 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
454 |
<at name="beanproperties"> |
|
455 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
456 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
457 |
<at name="properties"> |
|
458 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
459 |
<at name="border"> |
|
460 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
461 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
462 |
<at name="name">border</at> |
|
463 |
</super> |
|
464 |
<at name="borders"> |
|
465 |
<object classname="java.util.LinkedList"> |
|
466 |
<item > |
|
467 |
<at name="value"> |
|
468 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
469 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
470 |
<at name="name">border</at> |
|
471 |
</super> |
|
472 |
</object> |
|
473 |
</at> |
|
474 |
</item> |
|
475 |
</object> |
|
476 |
</at> |
|
477 |
</object> |
|
478 |
</at> |
|
479 |
<at name="name">lblUseGeometryOrText</at> |
|
480 |
<at name="width">140</at> |
|
481 |
<at name="text">_Use_Geometry_or_Text</at> |
|
482 |
<at name="fill"> |
|
483 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
484 |
<at name="name">fill</at> |
|
485 |
</object> |
|
486 |
</at> |
|
487 |
<at name="height">16</at> |
|
488 |
</object> |
|
489 |
</at> |
|
490 |
</object> |
|
491 |
</at> |
|
492 |
</object> |
|
493 |
</at> |
|
494 |
</item> |
|
495 |
<item > |
|
496 |
<at name="value"> |
|
497 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
498 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
499 |
<at name="cellconstraints"> |
|
500 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
501 |
<at name="column">3</at> |
|
502 |
<at name="row">8</at> |
|
503 |
<at name="colspan">1</at> |
|
504 |
<at name="rowspan">1</at> |
|
505 |
<at name="halign">default</at> |
|
506 |
<at name="valign">default</at> |
|
507 |
<at name="insets" object="insets">0,0,0,0</at> |
|
508 |
</object> |
|
509 |
</at> |
|
510 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
511 |
</super> |
|
512 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
513 |
<at name="beanclass">javax.swing.JRadioButton</at> |
|
514 |
<at name="beanproperties"> |
|
515 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
516 |
<at name="classname">javax.swing.JRadioButton</at> |
|
517 |
<at name="properties"> |
|
518 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
519 |
<at name="border"> |
|
520 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
521 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
522 |
<at name="name">border</at> |
|
523 |
</super> |
|
524 |
<at name="borders"> |
|
525 |
<object classname="java.util.LinkedList"> |
|
526 |
<item > |
|
527 |
<at name="value"> |
|
528 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
529 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
530 |
<at name="name">border</at> |
|
531 |
</super> |
|
532 |
</object> |
|
533 |
</at> |
|
534 |
</item> |
|
535 |
</object> |
|
536 |
</at> |
|
537 |
</object> |
|
538 |
</at> |
|
539 |
<at name="actionCommand">Insert as geometry</at> |
|
540 |
<at name="buttonGroup"> |
|
541 |
<object classname="com.jeta.forms.store.properties.ButtonGroupProperty"> |
|
542 |
<at name="name">buttonGroup</at> |
|
543 |
<at name="groupname">2</at> |
|
544 |
</object> |
|
545 |
</at> |
|
546 |
<at name="opaque">false</at> |
|
547 |
<at name="name">rdoInsertAsGeometry</at> |
|
548 |
<at name="width">128</at> |
|
549 |
<at name="text">_Insert_as_Geometry</at> |
|
550 |
<at name="selected">true</at> |
|
551 |
<at name="height">18</at> |
|
552 |
</object> |
|
553 |
</at> |
|
554 |
</object> |
|
555 |
</at> |
|
556 |
</object> |
|
557 |
</at> |
|
558 |
</item> |
|
559 |
<item > |
|
560 |
<at name="value"> |
|
561 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
562 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
563 |
<at name="cellconstraints"> |
|
564 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
565 |
<at name="column">3</at> |
|
566 |
<at name="row">10</at> |
|
567 |
<at name="colspan">1</at> |
|
568 |
<at name="rowspan">1</at> |
|
569 |
<at name="halign">default</at> |
|
570 |
<at name="valign">default</at> |
|
571 |
<at name="insets" object="insets">0,0,0,0</at> |
|
572 |
</object> |
|
573 |
</at> |
|
574 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
575 |
</super> |
|
576 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
577 |
<at name="beanclass">javax.swing.JRadioButton</at> |
|
578 |
<at name="beanproperties"> |
|
579 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
580 |
<at name="classname">javax.swing.JRadioButton</at> |
|
581 |
<at name="properties"> |
|
582 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
583 |
<at name="border"> |
|
584 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
585 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
586 |
<at name="name">border</at> |
|
587 |
</super> |
|
588 |
<at name="borders"> |
|
589 |
<object classname="java.util.LinkedList"> |
|
590 |
<item > |
|
591 |
<at name="value"> |
|
592 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
593 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
594 |
<at name="name">border</at> |
|
595 |
</super> |
|
596 |
</object> |
|
597 |
</at> |
|
598 |
</item> |
|
599 |
</object> |
|
600 |
</at> |
|
601 |
</object> |
|
602 |
</at> |
|
603 |
<at name="actionCommand">Insert as String</at> |
|
604 |
<at name="buttonGroup"> |
|
605 |
<object classname="com.jeta.forms.store.properties.ButtonGroupProperty"> |
|
606 |
<at name="name">buttonGroup</at> |
|
607 |
<at name="groupname">2</at> |
|
608 |
</object> |
|
609 |
</at> |
|
610 |
<at name="opaque">false</at> |
|
611 |
<at name="name">rdoInsertAsString</at> |
|
612 |
<at name="width">128</at> |
|
613 |
<at name="text">_Insert_as_Text</at> |
|
614 |
<at name="height">18</at> |
|
615 |
</object> |
|
616 |
</at> |
|
617 |
</object> |
|
618 |
</at> |
|
619 |
</object> |
|
620 |
</at> |
|
621 |
</item> |
|
622 |
</object> |
|
623 |
</at> |
|
624 |
<at name="properties"> |
|
625 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
626 |
<at name="classname">com.jeta.forms.gui.form.GridView</at> |
|
627 |
<at name="properties"> |
|
628 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
629 |
<at name="border"> |
|
630 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
631 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
632 |
<at name="name">border</at> |
|
633 |
</super> |
|
634 |
<at name="borders"> |
|
635 |
<object classname="java.util.LinkedList"/> |
|
636 |
</at> |
|
637 |
</object> |
|
638 |
</at> |
|
639 |
<at name="name"/> |
|
640 |
<at name="fill"> |
|
641 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
642 |
<at name="name">fill</at> |
|
643 |
<at name="delegate"> |
|
644 |
<object classname="com.jeta.forms.store.properties.effects.SolidProperty"> |
|
645 |
<at name="color"> |
|
646 |
<object classname="com.jeta.forms.store.properties.ColorProperty"> |
|
647 |
<at name="name">dyncolor</at> |
|
648 |
<at name="colorkey">constant</at> |
|
649 |
<at name="constantcolor" object="color">255,255,255</at> |
|
650 |
</object> |
|
651 |
</at> |
|
652 |
</object> |
|
653 |
</at> |
|
654 |
</object> |
|
655 |
</at> |
|
656 |
<at name="scollBars"> |
|
657 |
<object classname="com.jeta.forms.store.properties.ScrollBarsProperty"> |
|
658 |
<at name="name">scollBars</at> |
|
659 |
<at name="verticalpolicy">21</at> |
|
660 |
<at name="horizontalpolicy">31</at> |
|
661 |
<at name="border"> |
|
662 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
663 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
664 |
<at name="name">border</at> |
|
665 |
</super> |
|
666 |
<at name="borders"> |
|
667 |
<object classname="java.util.LinkedList"> |
|
668 |
<item > |
|
669 |
<at name="value"> |
|
670 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
671 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
672 |
<at name="name">border</at> |
|
673 |
</super> |
|
674 |
</object> |
|
675 |
</at> |
|
676 |
</item> |
|
677 |
</object> |
|
678 |
</at> |
|
679 |
</object> |
|
680 |
</at> |
|
681 |
</object> |
|
682 |
</at> |
|
683 |
</object> |
|
684 |
</at> |
|
685 |
</object> |
|
686 |
</at> |
|
687 |
<at name="cellpainters"> |
|
688 |
<object classname="com.jeta.forms.store.support.Matrix"> |
|
689 |
<at name="rows"> |
|
690 |
<object classname="[Ljava.lang.Object;" size="10"> |
|
691 |
<at name="item" index="0"> |
|
692 |
<object classname="[Ljava.lang.Object;" size="4"/> |
|
693 |
</at> |
|
694 |
<at name="item" index="1"> |
|
695 |
<object classname="[Ljava.lang.Object;" size="4"/> |
|
696 |
</at> |
|
697 |
<at name="item" index="2"> |
|
698 |
<object classname="[Ljava.lang.Object;" size="4"/> |
|
699 |
</at> |
|
700 |
<at name="item" index="3"> |
|
701 |
<object classname="[Ljava.lang.Object;" size="4"/> |
|
702 |
</at> |
|
703 |
<at name="item" index="4"> |
|
704 |
<object classname="[Ljava.lang.Object;" size="4"/> |
|
705 |
</at> |
|
706 |
<at name="item" index="5"> |
|
707 |
<object classname="[Ljava.lang.Object;" size="4"/> |
|
708 |
</at> |
|
709 |
<at name="item" index="6"> |
|
710 |
<object classname="[Ljava.lang.Object;" size="4"/> |
|
711 |
</at> |
|
712 |
<at name="item" index="7"> |
|
713 |
<object classname="[Ljava.lang.Object;" size="4"/> |
|
714 |
</at> |
|
715 |
<at name="item" index="8"> |
|
716 |
<object classname="[Ljava.lang.Object;" size="4"/> |
|
717 |
</at> |
|
718 |
<at name="item" index="9"> |
|
719 |
<object classname="[Ljava.lang.Object;" size="4"/> |
|
720 |
</at> |
|
721 |
</object> |
|
722 |
</at> |
|
723 |
</object> |
|
724 |
</at> |
|
725 |
<at name="rowgroups"> |
|
726 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
727 |
<at name="groups"> |
|
728 |
<object classname="java.util.HashMap"/> |
|
729 |
</at> |
|
730 |
</object> |
|
731 |
</at> |
|
732 |
<at name="colgroups"> |
|
733 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
734 |
<at name="groups"> |
|
735 |
<object classname="java.util.HashMap"/> |
|
736 |
</at> |
|
737 |
</object> |
|
738 |
</at> |
|
739 |
</object> |
|
740 |
</at> |
|
741 |
</item> |
|
742 |
</object> |
|
743 |
</at> |
|
744 |
<at name="properties"> |
|
745 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
746 |
<at name="classname">com.jeta.forms.gui.form.GridView</at> |
|
747 |
<at name="properties"> |
|
748 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
749 |
<at name="border"> |
|
750 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
751 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
752 |
<at name="name">border</at> |
|
753 |
</super> |
|
754 |
<at name="borders"> |
|
755 |
<object classname="java.util.LinkedList"/> |
|
756 |
</at> |
|
757 |
</object> |
|
758 |
</at> |
|
759 |
<at name="name"/> |
|
760 |
<at name="fill"> |
|
761 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
762 |
<at name="name">fill</at> |
|
763 |
<at name="delegate"> |
|
764 |
<object classname="com.jeta.forms.store.properties.effects.SolidProperty"> |
|
765 |
<at name="color"> |
|
766 |
<object classname="com.jeta.forms.store.properties.ColorProperty"> |
|
767 |
<at name="name">dyncolor</at> |
|
768 |
<at name="colorkey">constant</at> |
|
769 |
<at name="constantcolor" object="color">255,255,255</at> |
|
770 |
</object> |
|
771 |
</at> |
|
772 |
</object> |
|
773 |
</at> |
|
774 |
</object> |
|
775 |
</at> |
|
776 |
<at name="scollBars"> |
|
777 |
<object classname="com.jeta.forms.store.properties.ScrollBarsProperty"> |
|
778 |
<at name="name">scollBars</at> |
|
779 |
<at name="verticalpolicy">21</at> |
|
780 |
<at name="horizontalpolicy">31</at> |
|
781 |
<at name="border"> |
|
782 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
783 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
784 |
<at name="name">border</at> |
|
785 |
</super> |
|
786 |
<at name="borders"> |
|
787 |
<object classname="java.util.LinkedList"> |
|
788 |
<item > |
|
789 |
<at name="value"> |
|
790 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
791 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
792 |
<at name="name">border</at> |
|
793 |
</super> |
|
794 |
</object> |
|
795 |
</at> |
|
796 |
</item> |
|
797 |
</object> |
|
798 |
</at> |
|
799 |
</object> |
|
800 |
</at> |
|
801 |
</object> |
|
802 |
</at> |
|
803 |
</object> |
|
804 |
</at> |
|
805 |
</object> |
|
806 |
</at> |
|
807 |
<at name="cellpainters"> |
|
808 |
<object classname="com.jeta.forms.store.support.Matrix"> |
|
809 |
<at name="rows"> |
|
810 |
<object classname="[Ljava.lang.Object;" size="8"> |
|
811 |
<at name="item" index="0"> |
|
812 |
<object classname="[Ljava.lang.Object;" size="5"/> |
|
813 |
</at> |
|
814 |
<at name="item" index="1"> |
|
815 |
<object classname="[Ljava.lang.Object;" size="5"/> |
|
816 |
</at> |
|
817 |
<at name="item" index="2"> |
|
818 |
<object classname="[Ljava.lang.Object;" size="5"/> |
|
819 |
</at> |
|
820 |
<at name="item" index="3"> |
|
821 |
<object classname="[Ljava.lang.Object;" size="5"/> |
|
822 |
</at> |
|
823 |
<at name="item" index="4"> |
|
824 |
<object classname="[Ljava.lang.Object;" size="5"/> |
|
825 |
</at> |
|
826 |
<at name="item" index="5"> |
|
827 |
<object classname="[Ljava.lang.Object;" size="5"/> |
|
828 |
</at> |
|
829 |
<at name="item" index="6"> |
|
830 |
<object classname="[Ljava.lang.Object;" size="5"/> |
|
831 |
</at> |
|
832 |
<at name="item" index="7"> |
|
833 |
<object classname="[Ljava.lang.Object;" size="5"/> |
|
834 |
</at> |
|
835 |
</object> |
|
836 |
</at> |
|
837 |
</object> |
|
838 |
</at> |
|
839 |
<at name="rowgroups"> |
|
840 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
841 |
<at name="groups"> |
|
842 |
<object classname="java.util.HashMap"/> |
|
843 |
</at> |
|
844 |
</object> |
|
845 |
</at> |
|
846 |
<at name="colgroups"> |
|
847 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
848 |
<at name="groups"> |
|
849 |
<object classname="java.util.HashMap"/> |
|
850 |
</at> |
|
851 |
</object> |
|
852 |
</at> |
|
853 |
</object> |
|
854 |
</at> |
|
855 |
</object> |
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/resources-plugin/i18n/text.properties | ||
---|---|---|
1733 | 1733 |
|
1734 | 1734 |
_Virtual_foreign_key_It_will_be_implemented_only_in_the_application=Clave externa virtual. Se implementar\u00e1 solo en la aplicaci\u00f3n. |
1735 | 1735 |
_Virtual_foreign_key_It_will_be_implemented_only_in_the_application_tooltip=Una clave externa virtual se implementar\u00e1 solo en la aplicaci\u00f3n.\nNo afectar\u00e1 al almac\u00e9n de datos de ninguna manera.\nSe puede usar en consultas o formularios de datos para simular una clave externa real.\nEsta opci\u00f3n no tendr\u00e1 efecto si el formato de datos no soporta claves externas. |
1736 |
_References_to=Referencia a |
|
1736 |
_References_to=Referencia a |
|
1737 |
|
|
1738 |
_Paste_geometry=Pegar geometr\u00eda |
|
1739 |
_Constant_Geometry=Geometr\u00eda constante |
|
1740 |
_Paste_a_geometry_from_clipboard=Pegar geometr\u00eda desde el portapapeles |
|
1741 |
|
Also available in: Unified diff