|
|
@ -1,31 +1,16 @@ |
|
|
|
package com.fr.design.gui.itoolbar; |
|
|
|
package com.fr.design.gui.itoolbar; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.awt.Component; |
|
|
|
import com.fr.design.gui.ibutton.UIToolButtonBorder; |
|
|
|
import java.awt.Dialog; |
|
|
|
import com.fr.design.gui.icheckbox.UICheckBox; |
|
|
|
import java.awt.Frame; |
|
|
|
|
|
|
|
import java.awt.Graphics; |
|
|
|
|
|
|
|
import java.awt.Graphics2D; |
|
|
|
|
|
|
|
import java.awt.Window; |
|
|
|
|
|
|
|
import java.awt.event.WindowListener; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.AbstractButton; |
|
|
|
import javax.swing.*; |
|
|
|
import javax.swing.JComponent; |
|
|
|
|
|
|
|
import javax.swing.JDialog; |
|
|
|
|
|
|
|
import javax.swing.JRadioButton; |
|
|
|
|
|
|
|
import javax.swing.JToolBar; |
|
|
|
|
|
|
|
import javax.swing.RootPaneContainer; |
|
|
|
|
|
|
|
import javax.swing.SwingUtilities; |
|
|
|
|
|
|
|
import javax.swing.border.Border; |
|
|
|
import javax.swing.border.Border; |
|
|
|
import javax.swing.plaf.ComponentUI; |
|
|
|
import javax.swing.plaf.ComponentUI; |
|
|
|
import javax.swing.plaf.UIResource; |
|
|
|
import javax.swing.plaf.UIResource; |
|
|
|
import javax.swing.plaf.metal.MetalToolBarUI; |
|
|
|
import javax.swing.plaf.metal.MetalToolBarUI; |
|
|
|
|
|
|
|
import java.awt.*; |
|
|
|
import com.fr.design.constants.UIConstants; |
|
|
|
import java.awt.event.WindowListener; |
|
|
|
import com.fr.design.gui.ibutton.UIToolButtonBorder; |
|
|
|
|
|
|
|
import com.fr.design.gui.icheckbox.UICheckBox; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import static com.fr.design.utils.ThemeUtils.BACK_COLOR; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class UIToolBarUI extends MetalToolBarUI { |
|
|
|
public class UIToolBarUI extends MetalToolBarUI { |
|
|
|
public static final String IS_TOOL_BAR_BUTTON_KEY = "JToolBar.isToolbarButton"; |
|
|
|
public static final String IS_TOOL_BAR_BUTTON_KEY = "JToolBar.isToolbarButton"; |
|
|
@ -91,7 +76,7 @@ public class UIToolBarUI extends MetalToolBarUI { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void paint(Graphics g, JComponent c) { |
|
|
|
public void paint(Graphics g, JComponent c) { |
|
|
|
Graphics2D g2 = (Graphics2D) g; |
|
|
|
Graphics2D g2 = (Graphics2D) g; |
|
|
|
g2.setColor(BACK_COLOR); |
|
|
|
g2.setColor(Color.WHITE); |
|
|
|
g2.fillRect(0, 0, c.getWidth(), c.getHeight()); |
|
|
|
g2.fillRect(0, 0, c.getWidth(), c.getHeight()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|