Browse Source

disable add button not whole button pan

master
zheng 7 years ago
parent
commit
b1bf6aac1d
  1. 4
      designer_chart/src/com/fr/design/chartinterface/AreaIndependentChartInterface.java
  2. 5
      designer_chart/src/com/fr/design/chartinterface/BarIndependentChartInterface.java
  3. 5
      designer_chart/src/com/fr/design/chartinterface/BubbleIndependentChartInterface.java
  4. 4
      designer_chart/src/com/fr/design/chartinterface/ColumnIndependentChartInterface.java
  5. 4
      designer_chart/src/com/fr/design/chartinterface/CustomIndependentChartInterface.java
  6. 4
      designer_chart/src/com/fr/design/chartinterface/DonutIndependentChartInterface.java
  7. 4
      designer_chart/src/com/fr/design/chartinterface/FunnelIndependentChartInterface.java
  8. 4
      designer_chart/src/com/fr/design/chartinterface/GanttIndependentChartInterface.java
  9. 4
      designer_chart/src/com/fr/design/chartinterface/GisMapIndependentChartInterface.java
  10. 4
      designer_chart/src/com/fr/design/chartinterface/LineIndependentChartInterface.java
  11. 4
      designer_chart/src/com/fr/design/chartinterface/MapIndependentChartInterface.java
  12. 4
      designer_chart/src/com/fr/design/chartinterface/MeterIndependentChartInterface.java
  13. 4
      designer_chart/src/com/fr/design/chartinterface/PieIndependentChartInterface.java
  14. 4
      designer_chart/src/com/fr/design/chartinterface/RadarIndependentChartInterface.java
  15. 4
      designer_chart/src/com/fr/design/chartinterface/RangeIndependentChartInterface.java
  16. 4
      designer_chart/src/com/fr/design/chartinterface/StockIndependentChartInterface.java
  17. 4
      designer_chart/src/com/fr/design/chartinterface/XYScatterIndependentChartInterface.java
  18. 16
      designer_chart/src/com/fr/design/mainframe/chart/gui/ChartTypeButtonPane.java

4
designer_chart/src/com/fr/design/chartinterface/AreaIndependentChartInterface.java

@ -21,10 +21,6 @@ import com.fr.design.mainframe.chart.gui.type.AreaPlotPane;
* Created by eason on 15/4/21.
*/
public class AreaIndependentChartInterface extends AbstractIndependentChartUIWithAPILevel {
@Override
public boolean needChartChangePane() {
return false;
}
public AbstractChartTypePane getPlotTypePane(){
return new AreaPlotPane();

5
designer_chart/src/com/fr/design/chartinterface/BarIndependentChartInterface.java

@ -23,11 +23,6 @@ import com.fr.design.mainframe.chart.gui.type.BarPlotPane;
*/
public class BarIndependentChartInterface extends AbstractIndependentChartUIWithAPILevel {
@Override
public boolean needChartChangePane() {
return false;
}
public AbstractChartTypePane getPlotTypePane(){
return new BarPlotPane();
}

5
designer_chart/src/com/fr/design/chartinterface/BubbleIndependentChartInterface.java

@ -20,11 +20,6 @@ import com.fr.design.mainframe.chart.gui.type.BubblePlotPane;
*/
public class BubbleIndependentChartInterface extends AbstractIndependentChartUIWithAPILevel {
@Override
public boolean needChartChangePane() {
return false;
}
public AbstractChartTypePane getPlotTypePane(){
return new BubblePlotPane();
}

4
designer_chart/src/com/fr/design/chartinterface/ColumnIndependentChartInterface.java

@ -22,10 +22,6 @@ import com.fr.design.mainframe.chart.gui.type.ColumnPlotPane;
* Created by eason on 15/4/21.
*/
public class ColumnIndependentChartInterface extends AbstractIndependentChartUIWithAPILevel {
@Override
public boolean needChartChangePane() {
return false;
}
public AbstractChartTypePane getPlotTypePane(){
return new ColumnPlotPane();

4
designer_chart/src/com/fr/design/chartinterface/CustomIndependentChartInterface.java

@ -20,10 +20,6 @@ import com.fr.design.mainframe.chart.gui.type.CustomPlotPane;
*/
public class CustomIndependentChartInterface extends AbstractIndependentChartUIWithAPILevel {
@Override
public boolean needChartChangePane() {
return false;
}
public AbstractChartTypePane getPlotTypePane(){
return new CustomPlotPane();

4
designer_chart/src/com/fr/design/chartinterface/DonutIndependentChartInterface.java

@ -22,10 +22,6 @@ import com.fr.design.mainframe.chart.gui.type.DonutPlotPane;
*/
public class DonutIndependentChartInterface extends AbstractIndependentChartUIWithAPILevel {
@Override
public boolean needChartChangePane() {
return false;
}
public AbstractChartTypePane getPlotTypePane(){
return new DonutPlotPane();

4
designer_chart/src/com/fr/design/chartinterface/FunnelIndependentChartInterface.java

@ -20,10 +20,6 @@ import com.fr.design.mainframe.chart.gui.type.FunnelPlotPane;
*/
public class FunnelIndependentChartInterface extends AbstractIndependentChartUIWithAPILevel {
@Override
public boolean needChartChangePane() {
return false;
}
public AbstractChartTypePane getPlotTypePane(){
return new FunnelPlotPane();

4
designer_chart/src/com/fr/design/chartinterface/GanttIndependentChartInterface.java

@ -17,10 +17,6 @@ import com.fr.design.mainframe.chart.gui.type.GanttPlotPane;
*/
public class GanttIndependentChartInterface extends AbstractIndependentChartUIWithAPILevel {
@Override
public boolean needChartChangePane() {
return false;
}
public AbstractChartTypePane getPlotTypePane(){
return new GanttPlotPane();

4
designer_chart/src/com/fr/design/chartinterface/GisMapIndependentChartInterface.java

@ -13,10 +13,6 @@ import com.fr.design.mainframe.chart.gui.type.GisMapPlotPane;
*/
public class GisMapIndependentChartInterface extends AbstractIndependentChartUIWithAPILevel {
@Override
public boolean needChartChangePane() {
return false;
}
public AbstractChartTypePane getPlotTypePane(){
return new GisMapPlotPane();

4
designer_chart/src/com/fr/design/chartinterface/LineIndependentChartInterface.java

@ -21,10 +21,6 @@ import com.fr.design.mainframe.chart.gui.type.LinePlotPane;
*/
public class LineIndependentChartInterface extends AbstractIndependentChartUIWithAPILevel {
@Override
public boolean needChartChangePane() {
return false;
}
public AbstractChartTypePane getPlotTypePane(){
return new LinePlotPane();

4
designer_chart/src/com/fr/design/chartinterface/MapIndependentChartInterface.java

@ -18,10 +18,6 @@ import com.fr.design.mainframe.chart.gui.type.MapPlotPane;
*/
public class MapIndependentChartInterface extends AbstractIndependentChartUIWithAPILevel {
@Override
public boolean needChartChangePane() {
return false;
}
public AbstractChartTypePane getPlotTypePane(){
return new MapPlotPane();

4
designer_chart/src/com/fr/design/chartinterface/MeterIndependentChartInterface.java

@ -18,10 +18,6 @@ import com.fr.design.mainframe.chart.gui.type.MeterPlotPane;
*/
public class MeterIndependentChartInterface extends AbstractIndependentChartUIWithAPILevel {
@Override
public boolean needChartChangePane() {
return false;
}
public AbstractChartTypePane getPlotTypePane(){
return new MeterPlotPane();

4
designer_chart/src/com/fr/design/chartinterface/PieIndependentChartInterface.java

@ -22,10 +22,6 @@ import com.fr.design.mainframe.chart.gui.type.PiePlotPane;
*/
public class PieIndependentChartInterface extends AbstractIndependentChartUIWithAPILevel {
@Override
public boolean needChartChangePane() {
return false;
}
public AbstractChartTypePane getPlotTypePane(){
return new PiePlotPane();

4
designer_chart/src/com/fr/design/chartinterface/RadarIndependentChartInterface.java

@ -20,10 +20,6 @@ import com.fr.design.mainframe.chart.gui.type.RadarPlotPane;
*/
public class RadarIndependentChartInterface extends AbstractIndependentChartUIWithAPILevel {
@Override
public boolean needChartChangePane() {
return false;
}
public AbstractChartTypePane getPlotTypePane(){
return new RadarPlotPane();

4
designer_chart/src/com/fr/design/chartinterface/RangeIndependentChartInterface.java

@ -18,10 +18,6 @@ import com.fr.design.mainframe.chart.gui.type.RangePlotPane;
*/
public class RangeIndependentChartInterface extends AbstractIndependentChartUIWithAPILevel {
@Override
public boolean needChartChangePane() {
return false;
}
public AbstractChartTypePane getPlotTypePane(){
return new RangePlotPane();

4
designer_chart/src/com/fr/design/chartinterface/StockIndependentChartInterface.java

@ -21,10 +21,6 @@ import com.fr.design.mainframe.chart.gui.type.StockPlotPane;
*/
public class StockIndependentChartInterface extends AbstractIndependentChartUIWithAPILevel {
@Override
public boolean needChartChangePane() {
return false;
}
public AbstractChartTypePane getPlotTypePane(){
return new StockPlotPane();

4
designer_chart/src/com/fr/design/chartinterface/XYScatterIndependentChartInterface.java

@ -21,10 +21,6 @@ import com.fr.design.mainframe.chart.gui.type.XYScatterPlotPane;
*/
public class XYScatterIndependentChartInterface extends AbstractIndependentChartUIWithAPILevel {
@Override
public boolean needChartChangePane() {
return false;
}
public AbstractChartTypePane getPlotTypePane(){
return new XYScatterPlotPane();

16
designer_chart/src/com/fr/design/mainframe/chart/gui/ChartTypeButtonPane.java

@ -5,6 +5,7 @@ import com.fr.chart.base.AttrChangeConfig;
import com.fr.chart.chartattr.Chart;
import com.fr.chart.chartattr.ChartCollection;
import com.fr.chart.chartattr.SwitchState;
import com.fr.chart.charttypes.ChartTypeManager;
import com.fr.design.beans.BasicBeanPane;
import com.fr.design.dialog.DialogActionListener;
import com.fr.design.dialog.UIDialog;
@ -21,8 +22,17 @@ import com.fr.general.FRLogger;
import com.fr.general.Inter;
import com.fr.stable.StringUtils;
import javax.swing.*;
import java.awt.*;
import javax.swing.BorderFactory;
import javax.swing.BoxLayout;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Graphics;
import java.awt.GridLayout;
import java.awt.Image;
import java.awt.Rectangle;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.FocusEvent;
@ -302,7 +312,7 @@ public class ChartTypeButtonPane extends BasicBeanPane<ChartCollection> implemen
}
private void checkConfigButtonVisible() {
addButton.setVisible(true);
addButton.setVisible(ChartTypeManager.enabledChart(editingCollection.getSelectedChart().getPlot().getPlotID()));
//新建一个collection
if(editingCollection.getState() == SwitchState.DEFAULT && editingCollection.getSelectedChart() != null){
//Chart 不支持图表切换

Loading…
Cancel
Save