private LabelAttributes getLabelAttributes(String c) { if (c == null) return new LabelAttributes(); c = c.trim(); if (!c.startsWith("%")) return new LabelAttributes(); LabelAttributes la = new LabelAttributes(); la.setForegroundColor(this.getColor(c)); la.setFontSize(getFontSize(c)); la.setFontStyle(getFontStyle(c)); return la; }