@Override public PaintStyle getPaint() { final int fillType = getFillType(); // TODO: fix gradient types, this mismatches with the MS-ODRAW definition ... // need to handle (not only) the type (radial,rectangular,linear), // the direction, e.g. top right, and bounds (e.g. for rectangular boxes) switch (fillType) { case FILL_SOLID: return DrawPaint.createSolidPaint(getForegroundColor()); case FILL_SHADE_SHAPE: return getGradientPaint(GradientType.shape); case FILL_SHADE_CENTER: case FILL_SHADE_TITLE: return getGradientPaint(GradientType.circular); case FILL_SHADE: case FILL_SHADE_SCALE: return getGradientPaint(GradientType.linear); case FILL_PICTURE: return getTexturePaint(); default: LOG.log(POILogger.WARN, "unsuported fill type: " + fillType); return null; } } };