} else if (plot instanceof XYPlot) {
XYPlot xyPlot = (XYPlot) plot;
XYItemRenderer xyRenderer = xyPlot.getRenderer();
if (xyRenderer instanceof XYConditionRenderer) {
XYConditionRenderer xyCondRender = (XYConditionRenderer) xyRenderer;
boolean shapes = false;
String str = (String) params.get("shapes");
if (str != null)
shapes = "true".equals(str);
xyCondRender.setBaseShapesVisible(shapes);
boolean outline = false;
str = (String) params.get("outline");
if (str != null)
outline = "true".equals(str);
xyCondRender.setDrawOutlines(outline);
boolean useFillPaint = false;
str = (String) params.get("useFillPaint");
if (str != null)
useFillPaint = "true".equals(str);
xyCondRender.setUseFillPaint(useFillPaint);
if (useFillPaint) {
str = (String) params.get("fillPaint");
if (str != null && str.trim().length() > 0) {
try {
Color fillPaint = Color.decode(str);
xyCondRender.setBaseFillPaint(fillPaint);
} catch (NumberFormatException nfex) { }
}
}
boolean useOutlinePaint = false;
str = (String) params.get("useOutlinePaint");
if (str != null)
useOutlinePaint = "true".equals(str);
xyCondRender.setUseOutlinePaint(useOutlinePaint);
if (useOutlinePaint) {
str = (String) params.get("outlinePaint");
if (str != null && str.trim().length() > 0) {
try {
Color outlinePaint = Color.decode(str);
xyCondRender.setBaseOutlinePaint(outlinePaint);
} catch (NumberFormatException nfex) { }
}
}
str = (String) params.get("shapeVisibleCondition");
if (str != null)
xyCondRender.setShapeVisibleCondition(str);
str = (String) params.get("shapeFilledCondition");
if (str != null)
xyCondRender.setShapeFilledCondition(str);
}
}
}