1 /*
2 * Copyright (c) 2003-2008 by Cosylab d. d.
3 *
4 * This file is part of CosyBeans-Common.
5 *
6 * CosyBeans-Common is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * CosyBeans-Common is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with CosyBeans-Common. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 package com.cosylab.gui.components;
21
22 import com.cosylab.gui.components.customizer.AbstractCustomizerPanel;
23
24 /**
25 * <code>AbstractDisplayerPanelCustomizer</code> is a default costomizer employed
26 * by AbstractDisplayerPanel.
27 *
28 * @author <a href="mailto:jaka.bobnar@cosylab.com">Jaka Bobnar</a>
29 * @version $Id: AbstractDisplayerPanelCustomizer.java,v 1.6 2008-04-22 12:28:40 jbobnar Exp $
30 *
31 */
32 public abstract class AbstractDisplayerPanelCustomizer extends AbstractCustomizerPanel {
33
34 /** Title of the basic visual settings tab. */
35 public static final String VISUAL_BASIC = "Visual";
36
37 /** Title of the visual tab. */
38 public static final String VISUAL_LAYOUT = "Visual/Layout";
39
40 /** Tag for resizable property. */
41 public static final String RESIZABLE = "resizable";
42
43 /** Tag fot titleVisible property */
44 public static final String TITLE_VISIBLE = "titleVisible";
45
46 /** Tag for title property */
47 public static final String TITLE = "title";
48
49 /** Title maximum font size property constant */
50 public static final String MIN_TITLE_FONT_SIZE = "titleMinimumFontSize";
51
52 /** Title minimum font size property constant */
53 public static final String MAX_TITLE_FONT_SIZE = "titleMaximumFontSize";
54
55 /** Names of the basic visual properties. */
56 public static String[] VISUAL_BASIC_PROPERTIES = { TITLE, TITLE_VISIBLE,
57 MIN_TITLE_FONT_SIZE, MAX_TITLE_FONT_SIZE, RESIZABLE };
58
59 /** Supported aspects. */
60 public static String[] ASPECTS = { VISUAL_BASIC, VISUAL_LAYOUT };
61
62 public AbstractDisplayerPanelCustomizer() {
63 addCustomizerTable(VISUAL_BASIC, VISUAL_BASIC_PROPERTIES);
64 setSize(400, 400);
65 }
66
67 }