01: package net.sourceforge.squirrel_sql.plugins.graph;
02:
03: import net.sourceforge.squirrel_sql.client.session.mainpanel.BaseMainPanelTab;
04: import net.sourceforge.squirrel_sql.fw.util.StringManager;
05: import net.sourceforge.squirrel_sql.fw.util.StringManagerFactory;
06:
07: import java.awt.*;
08:
09: public class GraphMainPanelTab extends BaseMainPanelTab {
10: private static final StringManager s_stringMgr = StringManagerFactory
11: .getStringManager(GraphMainPanelTab.class);
12:
13: private GraphDesktopController _desktopController;
14: // i18n[graph.newGraph=New table graph]
15: private String _title = s_stringMgr.getString("graph.newGraph");
16:
17: public GraphMainPanelTab(GraphDesktopController desktopController) {
18: _desktopController = desktopController;
19: }
20:
21: protected void refreshComponent() {
22: _desktopController.repaint();
23: }
24:
25: public String getTitle() {
26: return _title;
27: }
28:
29: public String getHint() {
30: // i18n[graph.rightClickTable=Right click table in object tree to add to graph]
31: return s_stringMgr.getString("graph.rightClickTable");
32: }
33:
34: public Component getComponent() {
35: return _desktopController.getGraphPanel();
36: }
37:
38: public void setTitle(String title) {
39: _title = title;
40: }
41:
42: }
|