public static UserStyleInfo createStyle ( RuleInfo rule ) { UserStyleInfo userStyleInfo = new UserStyleInfo ( ) ; FeatureTypeStyleInfo fts = new FeatureTypeStyleInfo ( ) ; fts . getRuleList ( ) . add ( rule ) ; userStyleInfo . getFeatureTypeStyleList ( ) . add ( fts ) ; return userStyleInfo ; }
Create a style with a single rule .