Search in sources :

Example 1 with AbstractMarker

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;
}
Also used : AbstractMarker(com.revolsys.swing.map.layer.record.style.marker.AbstractMarker) ShapeMarker(com.revolsys.swing.map.layer.record.style.marker.ShapeMarker)

Example 2 with AbstractMarker

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;
}
Also used : AbstractMarker(com.revolsys.swing.map.layer.record.style.marker.AbstractMarker) ShapeMarker(com.revolsys.swing.map.layer.record.style.marker.ShapeMarker)

Aggregations

AbstractMarker (com.revolsys.swing.map.layer.record.style.marker.AbstractMarker)2 ShapeMarker (com.revolsys.swing.map.layer.record.style.marker.ShapeMarker)2