01: /*
02: * Copyright (C) 2005 Jeff Tassin
03: *
04: * This library is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License as published by the Free Software Foundation; either
07: * version 2.1 of the License, or (at your option) any later version.
08: *
09: * This library is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12: * Lesser General Public License for more details.
13: *
14: * You should have received a copy of the GNU Lesser General Public
15: * License along with this library; if not, write to the Free Software
16: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17: */
18:
19: package com.jeta.swingbuilder.gui.effects;
20:
21: import java.awt.BorderLayout;
22:
23: import com.jeta.forms.components.panel.FormPanel;
24: import com.jeta.forms.gui.effects.SolidPainter;
25: import com.jeta.forms.gui.form.GridView;
26: import com.jeta.forms.store.properties.effects.PaintProperty;
27: import com.jeta.forms.store.properties.effects.SolidProperty;
28: import com.jeta.open.gui.framework.JETAPanel;
29:
30: /**
31: * @author Jeff Tassin
32: */
33: public class NoFillView extends JETAPanel implements PaintView {
34: /**
35: * The fillProperties form.
36: */
37: private FormPanel m_view;
38:
39: /**
40: * The preview for the gradient settings
41: */
42: private GridView m_preview;
43:
44: /**
45: * The property
46: */
47: private SolidProperty m_prop = new SolidProperty();
48: private SolidPainter m_painter = new SolidPainter();
49:
50: /**
51: * ctor
52: */
53: public NoFillView(GridView preview) {
54: m_preview = preview;
55: setLayout(new BorderLayout());
56: m_view = new FormPanel(
57: "com/jeta/swingbuilder/gui/effects/noFill.frm");
58: add(m_view, BorderLayout.CENTER);
59: setBorder(javax.swing.BorderFactory.createEmptyBorder(10, 10,
60: 10, 10));
61: updatePreview();
62: }
63:
64: /**
65: * @return the property for this view
66: */
67: public PaintProperty getPaintProperty() {
68: return new PaintProperty(null);
69: }
70:
71: /**
72: * Sets the property for the view
73: */
74: public void setPaintProperty(PaintProperty pp) {
75:
76: }
77:
78: public void updatePreview() {
79: // /m_painter.setSolidProperty( getSolidProperty() );
80: // m_preview.setBackgroundPainter( m_painter );
81: }
82:
83: }
|