Browse Source

style pane listener

master
zheng 7 years ago
parent
commit
cc55efc5c2
  1. 6
      src/com/fr/plugin/demo/DemoStylePane.java
  2. 2
      src/com/fr/plugin/demo/DemoUI.java

6
src/com/fr/plugin/demo/DemoStylePane.java

@ -1,5 +1,6 @@
package com.fr.plugin.demo; package com.fr.plugin.demo;
import com.fr.design.gui.frpane.AttributeChangeListener;
import com.fr.extended.chart.AbstractExtendedStylePane; import com.fr.extended.chart.AbstractExtendedStylePane;
import com.fr.extended.chart.ExtendedScrollPane; import com.fr.extended.chart.ExtendedScrollPane;
@ -10,6 +11,11 @@ import java.util.List;
* Created by shine on 2018/3/25. * Created by shine on 2018/3/25.
*/ */
public class DemoStylePane extends AbstractExtendedStylePane<DemoChart>{ public class DemoStylePane extends AbstractExtendedStylePane<DemoChart>{
public DemoStylePane(AttributeChangeListener listener) {
super(listener);
}
@Override @Override
protected List<ExtendedScrollPane<DemoChart>> initPaneList() { protected List<ExtendedScrollPane<DemoChart>> initPaneList() {
List<ExtendedScrollPane<DemoChart>> list = new ArrayList<ExtendedScrollPane<DemoChart>>(); List<ExtendedScrollPane<DemoChart>> list = new ArrayList<ExtendedScrollPane<DemoChart>>();

2
src/com/fr/plugin/demo/DemoUI.java

@ -29,7 +29,7 @@ public class DemoUI extends AbstractExtendedChartUIProvider {
@Override @Override
public AbstractChartAttrPane[] getAttrPaneArray(AttributeChangeListener listener) { public AbstractChartAttrPane[] getAttrPaneArray(AttributeChangeListener listener) {
return new AbstractChartAttrPane[]{ return new AbstractChartAttrPane[]{
new DemoStylePane(), new DemoStylePane(listener),
new ExtendedOtherPane() new ExtendedOtherPane()
}; };
} }

Loading…
Cancel
Save