use of com.revolsys.swing.map.layer.record.style.marker.AbstractMarker in project com.revolsys.open by revolsys.
the class MarkerStyle method setMarker.
@SuppressWarnings("unchecked")
public <V extends MarkerStyle> V setMarker(final String markerName, final double markerSize, final Color lineColor, final double lineWidth, final Color fillColor) {
final AbstractMarker marker = new ShapeMarker(markerName);
setMarker(marker, markerSize, lineColor, fillColor);
setMarkerLineWidth(Quantities.getQuantity(lineWidth, CustomUnits.PIXEL));
return (V) this;
}
use of com.revolsys.swing.map.layer.record.style.marker.AbstractMarker in project com.revolsys.open by revolsys.
the class MarkerStyle method marker.
public static MarkerStyle marker(final String markerName, final double markerSize, final Color lineColor, final double lineWidth, final Color fillColor) {
final AbstractMarker marker = new ShapeMarker(markerName);
final MarkerStyle style = marker(marker, markerSize, lineColor, fillColor);
style.setMarkerLineWidth(Quantities.getQuantity(lineWidth, CustomUnits.PIXEL));
return style;
}
Aggregations