|
|
@ -12,6 +12,7 @@ import com.fr.plugin.chart.gantt.attr.AttrGanttLabel; |
|
|
|
import com.fr.plugin.chart.gantt.attr.AttrGanttTooltip; |
|
|
|
import com.fr.plugin.chart.gantt.attr.AttrGanttTooltip; |
|
|
|
import com.fr.plugin.chart.gantt.attr.AttrGanttTooltipContent; |
|
|
|
import com.fr.plugin.chart.gantt.attr.AttrGanttTooltipContent; |
|
|
|
import com.fr.plugin.chart.type.ConditionKeyType; |
|
|
|
import com.fr.plugin.chart.type.ConditionKeyType; |
|
|
|
|
|
|
|
import com.fr.van.chart.designer.PlotFactory; |
|
|
|
import com.fr.van.chart.designer.other.condition.item.VanChartLabelConditionPane; |
|
|
|
import com.fr.van.chart.designer.other.condition.item.VanChartLabelConditionPane; |
|
|
|
import com.fr.van.chart.designer.other.condition.item.VanChartSeriesColorConditionPane; |
|
|
|
import com.fr.van.chart.designer.other.condition.item.VanChartSeriesColorConditionPane; |
|
|
|
import com.fr.van.chart.designer.other.condition.item.VanChartTooltipConditionPane; |
|
|
|
import com.fr.van.chart.designer.other.condition.item.VanChartTooltipConditionPane; |
|
|
@ -40,16 +41,18 @@ public class VanChartGanttConditionPane extends DataSeriesConditionPane { |
|
|
|
protected void addBasicAction() { |
|
|
|
protected void addBasicAction() { |
|
|
|
classPaneMap.put(AttrBackground.class, new VanChartSeriesColorConditionPane(this)); |
|
|
|
classPaneMap.put(AttrBackground.class, new VanChartSeriesColorConditionPane(this)); |
|
|
|
classPaneMap.put(AttrAlpha.class, new LabelAlphaPane(this)); |
|
|
|
classPaneMap.put(AttrAlpha.class, new LabelAlphaPane(this)); |
|
|
|
|
|
|
|
if (!PlotFactory.largeDataModel(plot)) { |
|
|
|
classPaneMap.put(AttrGanttLabel.class, new VanChartLabelConditionPane(this, plot)); |
|
|
|
classPaneMap.put(AttrGanttLabel.class, new VanChartLabelConditionPane(this, plot)); |
|
|
|
classPaneMap.put(AttrGanttTooltip.class, new VanChartTooltipConditionPane(this, plot){ |
|
|
|
} |
|
|
|
|
|
|
|
classPaneMap.put(AttrGanttTooltip.class, new VanChartTooltipConditionPane(this, plot) { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected VanChartPlotTooltipPane createTooltipContentsPane() { |
|
|
|
protected VanChartPlotTooltipPane createTooltipContentsPane() { |
|
|
|
return new VanChartPlotTooltipNoCheckPane(getPlot(), null){ |
|
|
|
return new VanChartPlotTooltipNoCheckPane(getPlot(), null) { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected AttrTooltip getAttrTooltip() { |
|
|
|
protected AttrTooltip getAttrTooltip() { |
|
|
|
AttrGanttTooltip attrGanttTooltip = new AttrGanttTooltip(); |
|
|
|
AttrGanttTooltip attrGanttTooltip = new AttrGanttTooltip(); |
|
|
|
((AttrGanttTooltipContent)attrGanttTooltip.getContent()).getDurationFormat().setEnable(true); |
|
|
|
((AttrGanttTooltipContent) attrGanttTooltip.getContent()).getDurationFormat().setEnable(true); |
|
|
|
return attrGanttTooltip; |
|
|
|
return attrGanttTooltip; |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
@ -65,7 +68,7 @@ public class VanChartGanttConditionPane extends DataSeriesConditionPane { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected ChartConditionPane createListConditionPane() { |
|
|
|
protected ChartConditionPane createListConditionPane() { |
|
|
|
return new ChartConditionPane(){ |
|
|
|
return new ChartConditionPane() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected ConditionKeyType[] conditionKeyTypes() { |
|
|
|
protected ConditionKeyType[] conditionKeyTypes() { |
|
|
|
return ConditionKeyType.Gantt_CONDITION_KEY_TYPES; |
|
|
|
return ConditionKeyType.Gantt_CONDITION_KEY_TYPES; |
|
|
@ -75,6 +78,7 @@ public class VanChartGanttConditionPane extends DataSeriesConditionPane { |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 返回图表class对象 |
|
|
|
* 返回图表class对象 |
|
|
|
|
|
|
|
* |
|
|
|
* @return class对象 |
|
|
|
* @return class对象 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public Class<? extends Plot> class4Correspond() { |
|
|
|
public Class<? extends Plot> class4Correspond() { |
|
|
|