public StringLayer createStringLayer(String src) { StringAttribute attr = StringAttribute.createColorAttribute(0, src.length(), m_graphics2d.getColor().getRGB()); CStringLayer layer = new CStringLayer(src, new StringAttribute[] {attr}); return layer; }