Browse Source

无jira任务 代码质量

newui
vito 12 months ago
parent
commit
360ea6fa24
  1. 11
      designer-base/src/main/java/com/fine/theme/light/ui/FineTemplateTabPaneUI.java
  2. 8
      designer-base/src/main/java/com/fr/design/file/MultiTemplateTabPane.java

11
designer-base/src/main/java/com/fine/theme/light/ui/FineTemplateTabPaneUI.java

@ -214,17 +214,6 @@ public class FineTemplateTabPaneUI extends PanelUI {
}
}
private void paintLeadingAction(Graphics2D g2d, double tabPaneWidth) {
int x = (leadingWidth - addAction.getIconWidth()) / 2;
int y = (tabHeight - addAction.getIconHeight()) / 2;
if (tabPane.isHoverMoreAction()) {
closeHoverIcon.paintIcon(tabPane, g2d, x, y);
} else {
addAction.paintIcon(tabPane, g2d, x, y);
}
}
private void paintTrailingAction(Graphics2D g2d, double tabPaneWidth) {
int x = leadingWidth + (int) tabPaneWidth + (trailingWidth - moreAction.getIconWidth()) / 2;

8
designer-base/src/main/java/com/fr/design/file/MultiTemplateTabPane.java

@ -62,12 +62,12 @@ import static javax.swing.JOptionPane.OK_OPTION;
import static javax.swing.JOptionPane.WARNING_MESSAGE;
/**
* 改个名字一个拼写 n 个错误
* 模版Tab组件
*
* @author daisy
* @version 11.0
* @since 11.0
* <p>
* created by daisy on 2013/08/05
* created on 2013/08/05
**/
public class MultiTemplateTabPane extends Row {
@ -208,7 +208,7 @@ public class MultiTemplateTabPane extends Row {
leadingActionButton.addActionListener(l);
}
public void setLeadingActionEnable(boolean enable){
public void setLeadingActionEnable(boolean enable) {
leadingActionButton.setEnabled(enable);
}

Loading…
Cancel
Save