|
|
@ -1,5 +1,7 @@ |
|
|
|
package com.fr.design.mainframe.chart.gui.type; |
|
|
|
package com.fr.design.mainframe.chart.gui.type; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.fine.theme.utils.FineUIStyle; |
|
|
|
|
|
|
|
import com.fine.theme.utils.FineUIUtils; |
|
|
|
import com.fr.design.chart.series.PlotStyle.ChartSelectDemoPane; |
|
|
|
import com.fr.design.chart.series.PlotStyle.ChartSelectDemoPane; |
|
|
|
import com.fr.design.constants.UIConstants; |
|
|
|
import com.fr.design.constants.UIConstants; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
@ -19,7 +21,6 @@ public class ChartImagePane extends ChartSelectDemoPane { |
|
|
|
private static final long serialVersionUID = -2785128245790568603L; |
|
|
|
private static final long serialVersionUID = -2785128245790568603L; |
|
|
|
private static final int IMAGE_WIDTH = 56; |
|
|
|
private static final int IMAGE_WIDTH = 56; |
|
|
|
private static final int IMAGE_HIGTH = 50; |
|
|
|
private static final int IMAGE_HIGTH = 50; |
|
|
|
private static final Color ENTER_COLOR = new Color(216, 242, 253); |
|
|
|
|
|
|
|
private boolean isDrawRightLine = false; |
|
|
|
private boolean isDrawRightLine = false; |
|
|
|
public boolean isDoubleClicked = false; |
|
|
|
public boolean isDoubleClicked = false; |
|
|
|
|
|
|
|
|
|
|
@ -30,7 +31,7 @@ public class ChartImagePane extends ChartSelectDemoPane { |
|
|
|
addMouseListener(this); |
|
|
|
addMouseListener(this); |
|
|
|
this.setToolTipText(tipName); |
|
|
|
this.setToolTipText(tipName); |
|
|
|
|
|
|
|
|
|
|
|
this.setBorder(BorderFactory.createMatteBorder(0, 0, 0, isDrawRightLine ? 1 : 0, UIConstants.SELECT_TAB)); |
|
|
|
this.setBorder(BorderFactory.createMatteBorder(0, 0, 0, isDrawRightLine ? 1 : 0, FineUIUtils.getUIColor("chart.normalBorderColor", "chart.normalBorderColor"))); |
|
|
|
this.setBackground(UIConstants.TOOLBARUI_BACKGROUND); |
|
|
|
this.setBackground(UIConstants.TOOLBARUI_BACKGROUND); |
|
|
|
this.setPreferredSize(getScaledDimension()); |
|
|
|
this.setPreferredSize(getScaledDimension()); |
|
|
|
} |
|
|
|
} |
|
|
@ -58,7 +59,7 @@ public class ChartImagePane extends ChartSelectDemoPane { |
|
|
|
|
|
|
|
|
|
|
|
this.setToolTipText(tipName); |
|
|
|
this.setToolTipText(tipName); |
|
|
|
|
|
|
|
|
|
|
|
this.setBorder(BorderFactory.createMatteBorder(0, 0, 0, isDrawRightLine ? 1 : 0, UIConstants.SELECT_TAB)); |
|
|
|
this.setBorder(BorderFactory.createMatteBorder(0, 0, 0, isDrawRightLine ? 1 : 0, FineUIUtils.getUIColor("chart.normalBorderColor", "chart.normalBorderColor"))); |
|
|
|
this.setBackground(UIConstants.TOOLBARUI_BACKGROUND); |
|
|
|
this.setBackground(UIConstants.TOOLBARUI_BACKGROUND); |
|
|
|
this.setPreferredSize(getScaledDimension()); |
|
|
|
this.setPreferredSize(getScaledDimension()); |
|
|
|
|
|
|
|
|
|
|
@ -87,11 +88,11 @@ public class ChartImagePane extends ChartSelectDemoPane { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void checkBorder() { |
|
|
|
public void checkBorder() { |
|
|
|
if (!isRollOver && !isPressing) { |
|
|
|
if (!isRollOver && !isPressing) { |
|
|
|
this.setBorder(BorderFactory.createMatteBorder(0, 0, 0, isDrawRightLine ? 1 : 0, UIConstants.SELECT_TAB)); |
|
|
|
this.setBorder(BorderFactory.createMatteBorder(1, 1, 1, isDrawRightLine ? 1 : 0, FineUIUtils.getUIColor("chart.normalBorderColor", "chart.normalBorderColor"))); |
|
|
|
} else if (isRollOver && !isPressing) { |
|
|
|
} else if (isRollOver && !isPressing) { |
|
|
|
this.setBorder(BorderFactory.createMatteBorder(2, 2, 2, 2, ENTER_COLOR)); |
|
|
|
this.setBorder(BorderFactory.createMatteBorder(1, 1, 1, 1, FineUIUtils.getUIColor("chart.hoverBorderColor", "chart.hoverBorderColor"))); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.setBorder(BorderFactory.createMatteBorder(2, 2, 2, 2, UIConstants.FLESH_BLUE)); |
|
|
|
this.setBorder(BorderFactory.createMatteBorder(2, 2, 2, 2, FineUIUtils.getUIColor("chart.selectedBorderColor", "chart.selectedBorderColor"))); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|