@ -32,7 +32,7 @@ public class VanChartBoxTooltipContentPane extends VanChartTooltipContentPane {
public VanChartBoxTooltipContentPane ( VanChartStylePane parent , JPanel showOnPane , boolean isDetailed ) {
super ( parent , showOnPane ) ;
this . detailed = isDetailed ;
checkFormatVisible ( isDetailed ) ;
}
protected void initFormatPane ( VanChartStylePane parent , JPanel showOnPane ) {
@ -83,8 +83,6 @@ public class VanChartBoxTooltipContentPane extends VanChartTooltipContentPane {
commonPanel . add ( createDataNumberPane ( ) , BorderLayout . CENTER ) ;
commonPanel . add ( createDataDetailPane ( ) , BorderLayout . SOUTH ) ;
checkFormatVisible ( detailed ) ;
return commonPanel ;
}
@ -178,7 +176,7 @@ public class VanChartBoxTooltipContentPane extends VanChartTooltipContentPane {
}
protected AttrTooltipContent createAttrTooltip ( ) {
return new AttrBoxTooltipContent ( ) ;
return new AttrBoxTooltipContent ( detailed ) ;
}
protected void populateFormatPane ( AttrTooltipContent attrTooltipContent ) {
@ -195,6 +193,8 @@ public class VanChartBoxTooltipContentPane extends VanChartTooltipContentPane {
q1 . populate ( boxTooltipContent . getQ1 ( ) ) ;
min . populate ( boxTooltipContent . getMin ( ) ) ;
outlier . populate ( boxTooltipContent . getOutlier ( ) ) ;
checkFormatVisible ( boxTooltipContent . isDetailed ( ) ) ;
}
}
@ -212,6 +212,8 @@ public class VanChartBoxTooltipContentPane extends VanChartTooltipContentPane {
q1 . update ( boxTooltipContent . getQ1 ( ) ) ;
min . update ( boxTooltipContent . getMin ( ) ) ;
outlier . update ( boxTooltipContent . getOutlier ( ) ) ;
boxTooltipContent . setDetailed ( this . detailed ) ;
}
}