|
|
@ -15,6 +15,7 @@ import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.gui.itabpane.TitleChangeListener; |
|
|
|
import com.fr.design.gui.itabpane.TitleChangeListener; |
|
|
|
import com.fr.design.mainframe.chart.ChartEditPane; |
|
|
|
import com.fr.design.mainframe.chart.ChartEditPane; |
|
|
|
import com.fr.general.Inter; |
|
|
|
import com.fr.general.Inter; |
|
|
|
|
|
|
|
import com.fr.stable.StableUtils; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.*; |
|
|
|
import javax.swing.*; |
|
|
|
import java.awt.*; |
|
|
|
import java.awt.*; |
|
|
@ -29,11 +30,14 @@ public abstract class MiddleChartPropertyPane extends BaseChartPropertyPane{ |
|
|
|
public MiddleChartPropertyPane() { |
|
|
|
public MiddleChartPropertyPane() { |
|
|
|
initComponenet(); |
|
|
|
initComponenet(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected void initComponenet() { |
|
|
|
protected void initComponenet() { |
|
|
|
this.setLayout(new BorderLayout()); |
|
|
|
this.setLayout(new BorderLayout()); |
|
|
|
this.setBorder(null); |
|
|
|
this.setBorder(null); |
|
|
|
chartEditPane = ChartEditPane.getInstance(); |
|
|
|
|
|
|
|
|
|
|
|
createNameLabel(); |
|
|
|
|
|
|
|
this.add(createNorthComponent(), BorderLayout.NORTH); |
|
|
|
|
|
|
|
chartEditPane = StableUtils.construct(ChartEditPane.class); |
|
|
|
chartEditPane.setSupportCellData(true); |
|
|
|
chartEditPane.setSupportCellData(true); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -43,11 +47,11 @@ public abstract class MiddleChartPropertyPane extends BaseChartPropertyPane{ |
|
|
|
this.createMainPane(); |
|
|
|
this.createMainPane(); |
|
|
|
setSureProperty(); |
|
|
|
setSureProperty(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected abstract void createNameLabel(); |
|
|
|
protected abstract void createNameLabel(); |
|
|
|
|
|
|
|
|
|
|
|
protected abstract JComponent createNorthComponent(); |
|
|
|
protected abstract JComponent createNorthComponent(); |
|
|
|
|
|
|
|
|
|
|
|
protected abstract void createMainPane(); |
|
|
|
protected abstract void createMainPane(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -63,7 +67,7 @@ public abstract class MiddleChartPropertyPane extends BaseChartPropertyPane{ |
|
|
|
nameLabel.setText(Inter.getLocText("Chart-Property_Table") + (tabname != null ? ('-' + chartEditPane.getSelectedTabName()) : "")); |
|
|
|
nameLabel.setText(Inter.getLocText("Chart-Property_Table") + (tabname != null ? ('-' + chartEditPane.getSelectedTabName()) : "")); |
|
|
|
resetChartEditPane(); |
|
|
|
resetChartEditPane(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected void resetChartEditPane() { |
|
|
|
protected void resetChartEditPane() { |
|
|
|
remove(chartEditPane); |
|
|
|
remove(chartEditPane); |
|
|
|
add(chartEditPane, BorderLayout.CENTER); |
|
|
|
add(chartEditPane, BorderLayout.CENTER); |
|
|
@ -71,20 +75,20 @@ public abstract class MiddleChartPropertyPane extends BaseChartPropertyPane{ |
|
|
|
repaint(); |
|
|
|
repaint(); |
|
|
|
revalidate(); |
|
|
|
revalidate(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected TitleChangeListener titleListener = new TitleChangeListener() { |
|
|
|
protected TitleChangeListener titleListener = new TitleChangeListener() { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void fireTitleChange(String addName) { |
|
|
|
public void fireTitleChange(String addName) { |
|
|
|
nameLabel.setText(Inter.getLocText("Chart-Property_Table") + '-' + addName); |
|
|
|
nameLabel.setText(Inter.getLocText("Chart-Property_Table") + '-' + addName); |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 感觉ChartCollection加载图表属性界面. |
|
|
|
* 感觉ChartCollection加载图表属性界面. |
|
|
|
* @param collection 收集图表 |
|
|
|
* @param collection 收集图表 |
|
|
|
* @param ePane 面板 |
|
|
|
* @param ePane 面板 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void populateChartPropertyPane(ChartCollection collection, TargetComponent<?> ePane) { |
|
|
|
public void populateChartPropertyPane(ChartCollection collection, TargetComponent<?> ePane) { |
|
|
|
addChartEditPane(collection.getSelectedChart().getPlot().getPlotID()); |
|
|
|
addChartEditPane(collection.getSelectedChart().getPlot().getPlotID()); |
|
|
|
setSupportCellData(true); |
|
|
|
setSupportCellData(true); |
|
|
@ -92,11 +96,11 @@ public abstract class MiddleChartPropertyPane extends BaseChartPropertyPane{ |
|
|
|
chartEditPane.populate(collection); |
|
|
|
chartEditPane.populate(collection); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 感觉ChartCollection加载图表属性界面. |
|
|
|
* 感觉ChartCollection加载图表属性界面. |
|
|
|
* @param collection 收集图表 |
|
|
|
* @param collection 收集图表 |
|
|
|
* @param ePane 面板 |
|
|
|
* @param ePane 面板 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void populateChartPropertyPane(BaseChartCollection collection, TargetComponent<?> ePane) { |
|
|
|
public void populateChartPropertyPane(BaseChartCollection collection, TargetComponent<?> ePane) { |
|
|
|
if (collection instanceof ChartCollection) { |
|
|
|
if (collection instanceof ChartCollection) { |
|
|
|
populateChartPropertyPane((ChartCollection)collection, ePane); |
|
|
|
populateChartPropertyPane((ChartCollection)collection, ePane); |
|
|
@ -123,18 +127,18 @@ public abstract class MiddleChartPropertyPane extends BaseChartPropertyPane{ |
|
|
|
return BaseUtils.readIcon("/com/fr/design/images/m_report/qb.png"); |
|
|
|
return BaseUtils.readIcon("/com/fr/design/images/m_report/qb.png"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 预定义定位 |
|
|
|
* 预定义定位 |
|
|
|
* @return 定位 |
|
|
|
* @return 定位 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public Location preferredLocation() { |
|
|
|
public Location preferredLocation() { |
|
|
|
return Location.WEST_BELOW; |
|
|
|
return Location.WEST_BELOW; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 创建标题Panel |
|
|
|
* 创建标题Panel |
|
|
|
* @return 标题panel |
|
|
|
* @return 标题panel |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public UITitlePanel createTitlePanel() { |
|
|
|
public UITitlePanel createTitlePanel() { |
|
|
|
return new UITitlePanel(this); |
|
|
|
return new UITitlePanel(this); |
|
|
|
} |
|
|
|
} |
|
|
@ -144,9 +148,9 @@ public abstract class MiddleChartPropertyPane extends BaseChartPropertyPane{ |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void refreshDockingView() { |
|
|
|
public void refreshDockingView() { |
|
|
|
// TODO Auto-generated method stub
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 设置是否支持单元格数据. |
|
|
|
* 设置是否支持单元格数据. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|