01: /*
02: The contents of this file are subject to the Projity Public License Version 1.0
03: ("License"); You may not use this file except in compliance with the
04: License. You may obtain a copy of the License at http://www.projity.com/PPL/license.html
05: Software distributed under the License is distributed on an "AS IS" basis,
06: WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
07: the specific language governing rights and limitations under the License.
08:
09: The Original Code is: Projity Open Source
10:
11: The Initial Developer of the Original Code is Projity, Inc.
12: Portions created by Projity are Copyright (C) 2004-2007 Projity, Inc.;
13: All Rights Reserved.
14: Contributor(s): Laurent Chretienneau, Howard Katz
15: */
16: package com.projity.pm.graphic.laf;
17:
18: import java.awt.Color;
19: import java.awt.Component;
20: import java.awt.Graphics;
21: import java.awt.Graphics2D;
22: import java.awt.Shape;
23:
24: import javax.swing.JComponent;
25: import javax.swing.JTabbedPane;
26: import javax.swing.LookAndFeel;
27:
28: public interface LafManager {
29:
30: public abstract void clean();
31:
32: public abstract LookAndFeel getPlaf();
33:
34: public abstract void initLookAndFeel();
35:
36: public abstract void setColorTheme(String viewName);
37:
38: public abstract void changePalette();
39:
40: public abstract boolean isChangePaletteAllowed(
41: LookAndFeel lookAndFeel);
42:
43: public abstract void paintComponent(Graphics g,
44: Component component, boolean selected);
45:
46: public abstract void setUI(JTabbedPane component);
47:
48: public abstract void setColorScheme(JComponent component);
49:
50: public abstract void paintTimeScale(Graphics2D g2, int x, int y,
51: int w, int h, Shape[] shapes);
52:
53: public abstract Color getSelectedBackgroundColor();
54:
55: public abstract Color getUnselectedBackgroundColor();
56:
57: public abstract void dumpUIValues();
58: }
|