ListFeatureCollection features = new ListFeatureCollection(TYPE);
SimpleFeatureBuilder fb = new SimpleFeatureBuilder(TYPE);
for (int i = 0; i < 10; i++) {
fb.add("POINT(" + i + " " + i + ")");
fb.add("this is " + i);
features.add(fb.buildFeature(null));
}
// setup a point layer with the right geometry trnasformation
Style style = SLD.createPointStyle("circle", Color.BLUE, Color.BLUE, 1f, 10f);
PointSymbolizer ps = (PointSymbolizer) style.featureTypeStyles().get(0).rules().get(0).symbolizers().get(0);