|
|
|
@ -2,21 +2,16 @@ package com.fr.design.mainframe.theme.edit.chart;
|
|
|
|
|
|
|
|
|
|
import com.fine.theme.icon.LazyIcon; |
|
|
|
|
import com.fine.theme.utils.FineLayoutBuilder; |
|
|
|
|
import com.fine.theme.utils.FineUIUtils; |
|
|
|
|
import com.fr.base.FRContext; |
|
|
|
|
import com.fr.design.constants.LayoutConstants; |
|
|
|
|
import com.fr.design.dialog.BasicPane; |
|
|
|
|
import com.fr.design.event.UIObserverListener; |
|
|
|
|
import com.fr.design.gui.ibutton.UIColorButton; |
|
|
|
|
import com.fr.design.gui.ibutton.UIToggleButton; |
|
|
|
|
import com.fr.design.gui.icombobox.UIComboBox; |
|
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
|
import com.fr.design.gui.itable.FineUITable; |
|
|
|
|
import com.fr.design.gui.itoolbar.UIToolbar; |
|
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
|
import com.fr.design.layout.TableLayout; |
|
|
|
|
import com.fr.design.layout.TableLayoutHelper; |
|
|
|
|
import com.fr.design.utils.DesignUtils; |
|
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
|
import com.fr.general.FRFont; |
|
|
|
|
import com.fr.general.GeneralUtils; |
|
|
|
|
|
|
|
|
@ -24,12 +19,8 @@ import javax.swing.JPanel;
|
|
|
|
|
import javax.swing.SwingConstants; |
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
|
import java.awt.Component; |
|
|
|
|
import java.awt.FlowLayout; |
|
|
|
|
import java.awt.Font; |
|
|
|
|
|
|
|
|
|
import static com.fine.swing.ui.layout.Layouts.cell; |
|
|
|
|
import static com.fine.swing.ui.layout.Layouts.row; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @author Bjorn |
|
|
|
|
* @version 10.0 |
|
|
|
@ -70,11 +61,13 @@ public class ChartFontPane extends BasicPane {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected void initComponents() { |
|
|
|
|
Component[] components = new Component[]{ |
|
|
|
|
fontSizeComboBox, fontColor, italic, bold |
|
|
|
|
}; |
|
|
|
|
UIToolbar toolbar = new UIToolbar(); |
|
|
|
|
toolbar.add(fontSizeComboBox); |
|
|
|
|
toolbar.add(fontColor); |
|
|
|
|
toolbar.add(italic); |
|
|
|
|
toolbar.add(bold); |
|
|
|
|
JPanel buttonPane = new JPanel(new BorderLayout()); |
|
|
|
|
buttonPane.add(row(4, cell(fontSizeComboBox), cell(fontColor), cell(italic), cell(bold)).getComponent()); |
|
|
|
|
buttonPane.add(toolbar); |
|
|
|
|
|
|
|
|
|
this.setLayout(new BorderLayout()); |
|
|
|
|
this.add(getContentPane(buttonPane), BorderLayout.CENTER); |
|
|
|
|