public void setLineWidth(int lineWidth) {
//Don't use BasicStroke.JOIN_ROUND or JOIN_BEVEL -- when the line
//width is 1, one of the corners will not be drawn. [Jon Aquino]
lineStroke = createLineStroke(lineWidth);
}
public void setFractionalLineWidth(float lineWidth) {
lineStroke = createLineStroke(lineWidth);
}
Probably there is no way to use setFractionalLineWidth(float lineWidth) at the moment. I was testing to edit the layer line width from the saved project file but project file cannot be opened because only integers are accepted from that place. Same thing with the SLD imported, it also defined line width as integer.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
By looking at http://sourceforge.net/p/jump-pilot/code/HEAD/tree/core/trunk/src/com/vividsolutions/jump/workbench/ui/renderer/style/BasicStyle.java
it looks like fractional line width are supported by using setFractionalLineWidth instead of setLineWidth:
public void setLineWidth(int lineWidth) {
//Don't use BasicStroke.JOIN_ROUND or JOIN_BEVEL -- when the line
//width is 1, one of the corners will not be drawn. [Jon Aquino]
lineStroke = createLineStroke(lineWidth);
}
public void setFractionalLineWidth(float lineWidth) {
lineStroke = createLineStroke(lineWidth);
}
Probably there is no way to use setFractionalLineWidth(float lineWidth) at the moment. I was testing to edit the layer line width from the saved project file but project file cannot be opened because only integers are accepted from that place. Same thing with the SLD imported, it also defined line width as integer.