forked from fanruan/design
Qinghui.Liu
4 years ago
5 changed files with 87 additions and 2 deletions
@ -0,0 +1,20 @@
|
||||
package com.fr.van.chart.box; |
||||
|
||||
import com.fr.chart.chartattr.Plot; |
||||
import com.fr.van.chart.designer.style.VanChartStylePane; |
||||
import com.fr.van.chart.designer.style.tooltip.VanChartPlotTooltipPane; |
||||
|
||||
public class VanChartBoxPlotTooltipPane extends VanChartPlotTooltipPane { |
||||
|
||||
public VanChartBoxPlotTooltipPane(Plot plot, VanChartStylePane parent) { |
||||
super(plot, parent); |
||||
} |
||||
|
||||
protected void initTooltipContentPane(Plot plot) { |
||||
tooltipContentPane = new VanChartBoxTooltipContentPane(parent, VanChartBoxPlotTooltipPane.this); |
||||
} |
||||
|
||||
protected boolean hasTooltipSeriesType() { |
||||
return false; |
||||
} |
||||
} |
@ -0,0 +1,21 @@
|
||||
package com.fr.van.chart.box; |
||||
|
||||
import com.fr.design.dialog.BasicPane; |
||||
import com.fr.design.gui.frpane.AttributeChangeListener; |
||||
import com.fr.van.chart.bar.VanChartBarStylePane; |
||||
|
||||
import java.util.List; |
||||
|
||||
public class VanChartBoxStylePane extends VanChartBarStylePane { |
||||
|
||||
public VanChartBoxStylePane(AttributeChangeListener listener) { |
||||
super(listener); |
||||
} |
||||
|
||||
protected void createVanChartLabelPane(List<BasicPane> paneList) { |
||||
} |
||||
|
||||
protected void addVanChartTooltipPane(List<BasicPane> paneList) { |
||||
paneList.add(new VanChartBoxTooltipPane(VanChartBoxStylePane.this)); |
||||
} |
||||
} |
@ -0,0 +1,28 @@
|
||||
package com.fr.van.chart.box; |
||||
|
||||
import com.fr.van.chart.designer.component.VanChartTooltipContentPane; |
||||
import com.fr.van.chart.designer.component.format.CategoryNameFormatPaneWithCheckBox; |
||||
import com.fr.van.chart.designer.component.format.SeriesNameFormatPaneWithCheckBox; |
||||
import com.fr.van.chart.designer.style.VanChartStylePane; |
||||
|
||||
import javax.swing.JPanel; |
||||
import java.awt.Component; |
||||
|
||||
public class VanChartBoxTooltipContentPane extends VanChartTooltipContentPane { |
||||
|
||||
public VanChartBoxTooltipContentPane(VanChartStylePane parent, JPanel showOnPane) { |
||||
super(parent, showOnPane); |
||||
} |
||||
|
||||
protected void initFormatPane(VanChartStylePane parent, JPanel showOnPane) { |
||||
categoryNameFormatPane = new CategoryNameFormatPaneWithCheckBox(parent, showOnPane); |
||||
seriesNameFormatPane = new SeriesNameFormatPaneWithCheckBox(parent, showOnPane); |
||||
} |
||||
|
||||
protected Component[][] getPaneComponents() { |
||||
return new Component[][]{ |
||||
new Component[]{categoryNameFormatPane, null}, |
||||
new Component[]{seriesNameFormatPane, null} |
||||
}; |
||||
} |
||||
} |
@ -0,0 +1,17 @@
|
||||
package com.fr.van.chart.box; |
||||
|
||||
import com.fr.chart.chartattr.Plot; |
||||
import com.fr.van.chart.designer.style.VanChartStylePane; |
||||
import com.fr.van.chart.designer.style.tooltip.VanChartPlotTooltipPane; |
||||
import com.fr.van.chart.designer.style.tooltip.VanChartTooltipPane; |
||||
|
||||
public class VanChartBoxTooltipPane extends VanChartTooltipPane { |
||||
|
||||
public VanChartBoxTooltipPane(VanChartStylePane parent) { |
||||
super(parent); |
||||
} |
||||
|
||||
protected VanChartPlotTooltipPane getTooltipPane(Plot plot) { |
||||
return new VanChartBoxPlotTooltipPane(plot, parent); |
||||
} |
||||
} |
Loading…
Reference in new issue