Revision 37196 branches/v2_0_0_prep/extensions/org.gvsig.app.document.layout.app/org.gvsig.app.document.layout.app.mainplugin/src/main/java/org/gvsig/app/project/documents/layout/fframes/FFrameTable.java

View differences:

FFrameTable.java
189 189
                    (FFrameBasic) layoutManager
190 190
                        .createFrame(FFrameBasic.PERSISTENCE_DEFINITION_NAME);
191 191
                basic.setRectangle(rBasic);
192
                // basic.setLayout(getLayout());
193 192
                addFFrame(basic);
194 193
            }
195 194
        }
......
212 211
                }
213 212
                this.removeFFrame(i);
214 213
            }
215

  
216
            // removeFFrame(fframes[i]);
217 214
        }
218 215
        if (r != null) {
219 216
            // Layout
220
            // layout=(Layout)PluginServices.getMDIManager().getActiveView();
221 217
            FFrameBasic basic =
222 218
                (FFrameBasic) layoutManager
223 219
                    .createFrame(FFrameBasic.PERSISTENCE_DEFINITION_NAME);
224 220
            basic.setRectangle(r);
225
            // basic.setLayout(getLayout());
226 221
            this.addFFrame(basic);
227 222
            return this;
228 223
        }
......
230 225
        return null;
231 226
    }
232 227

  
233
    /*
234
     * public int getSelected() {
235
     * // if (!selectFFrameBasic)
236
     * return super.getSelected();
237
     * // IFFrame[] fframes=getFFrames();
238
     * // for (int i = 0;i<fframes.length;i++){
239
     * // int selection=fframes[i].getSelected();
240
     * // if (selection>0){
241
     * // return selection;
242
     * // }
243
     * // }
244
     * // return 0;
245
     * 
246
     * }
247
     */
248 228
    public void setSelected(Point2D p, MouseEvent e) {
249 229
        if (!selectFFrameBasic) {
250 230
            super.setSelected(p, e);
......
417 397

  
418 398
    }
419 399

  
420
    /*
421
     * public void drawHandlersGroup(Graphics2D g) {
422
     * g.setColor(Color.gray);
423
     * IFFrame[] fframes=getFFrames();
424
     * for (int i = 0; i < fframes.length; i++) {
425
     * IFFrame fframe = fframes[i];
426
     * if (fframe.getSelected()!=IFFrame.NOSELECT){
427
     * fframe.drawHandlers(g);
428
     * }
429
     * }
430
     * }
431
     */
432 400
    public boolean containsGroup(Point2D p) {
433 401
        IFFrame[] fframes = getFFrames();
434 402
        for (int i = 0; i < fframes.length; i++) {
......
448 416
            }
449 417
            for (int i = 0; i < fframes.length; i++) {
450 418
                IFFrame fframe = fframes[i];
451
                // if ((fframe.getSelected() == IFFrame.NOSELECT)) {
452 419
                fframe.setSelected(p, e);
453
                // }
454 420
            }
455 421
        } else {
456 422
            for (int i = 0; i < fframes.length; i++) {

Also available in: Unified diff