📄 erdsavefileformat.java
字号:
/* * ErdSaveFileFormat.java * * Copyright (C) 2002, 2003, 2004, 2005, 2006 Takis Diakoumis * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */package org.executequery.gui.erd;import java.awt.Color;import java.awt.Font;import java.io.Serializable;/* ---------------------------------------------------------- * CVS NOTE: Changes to the CVS repository prior to the * release of version 3.0.0beta1 has meant a * resetting of CVS revision numbers. * ---------------------------------------------------------- *//** * * @author Takis Diakoumis * @version $Revision: 1.5 $ * @date $Date: 2006/05/20 03:00:04 $ */public class ErdSaveFileFormat implements Serializable { /** The canvas background */ private Color canvasBackground; /** The table's background colour */ private Color tableBackground; /** The font for the column names */ private Font columnNameFont; /** The font for the table name */ private Font tableNameFont; /** The title panel */ private ErdTitlePanelData titlePanel; /** The erd table data */ private ErdTableFileData[] tables; /** The absolute path of this file */ private String absolutePath; /** The file name */ private String fileName; public ErdSaveFileFormat(ErdTableFileData[] tables, String fileName) { this.tables = tables; this.fileName = fileName; } public ErdSaveFileFormat() {} public void setTitlePanel(ErdTitlePanelData titlePanel) { this.titlePanel = titlePanel; } public ErdTitlePanelData getTitlePanel() { return titlePanel; } public String getAbsolutePath() { return absolutePath; } public void setAbsolutePath(String absolutePath) { this.absolutePath = absolutePath; } public boolean hasCanvasBackground() { return canvasBackground != null; } public void setTableNameFont(Font tableNameFont) { this.tableNameFont = tableNameFont; } public Font getTableNameFont() { return tableNameFont; } public void setColumnNameFont(Font columnNameFont) { this.columnNameFont = columnNameFont; } public Font getColumnNameFont() { return columnNameFont; } public void setTableBackground(Color tableBackground) { this.tableBackground = tableBackground; } public Color getTableBackground() { return tableBackground; } public void setCanvasBackground(Color canvasBackground) { this.canvasBackground = canvasBackground; } public Color getCanvasBackground() { return canvasBackground; } public ErdTableFileData[] getTables() { return tables; } public String getFileName() { return fileName; } public void setFileName(String fileName) { this.fileName = fileName; } public void setTables(ErdTableFileData[] tables) { this.tables = tables; } public String toString() { return fileName; } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -