forked from fanruan/design
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.3 KiB
31 lines
1.3 KiB
package com.fr.plugin.chart.gauge; |
|
|
|
import com.fr.chart.chartattr.Plot; |
|
import com.fr.plugin.chart.designer.component.VanChartRefreshTooltipContentPane; |
|
import com.fr.plugin.chart.designer.component.VanChartTooltipContentPane; |
|
import com.fr.plugin.chart.designer.component.tooltip.RefreshTooltipContentPaneWithOutSeries; |
|
import com.fr.plugin.chart.designer.style.tooltip.VanChartPlotRefreshTooltipPane; |
|
import com.fr.plugin.chart.type.GaugeStyle; |
|
|
|
/** |
|
* Created by mengao on 2017/6/11. |
|
*/ |
|
public class VanChartGaugePlotRefreshTooltipPane extends VanChartPlotRefreshTooltipPane { |
|
public VanChartGaugePlotRefreshTooltipPane(Plot plot) { |
|
super(plot); |
|
} |
|
|
|
|
|
@Override |
|
protected VanChartTooltipContentPane getTooltipContentPane(Plot plot){ |
|
GaugeStyle gaugeStyle = ((VanChartGaugePlot)plot).getGaugeStyle(); |
|
switch (gaugeStyle){ |
|
case POINTER: |
|
return new VanChartRefreshTooltipContentPane(parent, VanChartGaugePlotRefreshTooltipPane.this); |
|
case POINTER_SEMI: |
|
return new VanChartRefreshTooltipContentPane(parent, VanChartGaugePlotRefreshTooltipPane.this); |
|
default: |
|
return new RefreshTooltipContentPaneWithOutSeries(parent, VanChartGaugePlotRefreshTooltipPane.this); |
|
} |
|
} |
|
}
|
|
|