Search in sources :

Example 6 with Marker

use of com.revolsys.swing.map.layer.record.style.marker.Marker in project com.revolsys.open by revolsys.

the class SymbolLibrary method getAllMarkers.

public static List<Marker> getAllMarkers() {
    final List<Marker> markers = new ArrayList<>();
    for (final Symbol symbol : getAllSymbols()) {
        try {
            final Marker marker = symbol.newMarker();
            markers.add(marker);
        } catch (final Throwable e) {
            Logs.debug(SymbolLibrary.class, "Symbol not found", e);
        }
    }
    return markers;
}
Also used : ArrayList(java.util.ArrayList) Marker(com.revolsys.swing.map.layer.record.style.marker.Marker) ShapeMarker(com.revolsys.swing.map.layer.record.style.marker.ShapeMarker)

Aggregations

Marker (com.revolsys.swing.map.layer.record.style.marker.Marker)6 ShapeMarker (com.revolsys.swing.map.layer.record.style.marker.ShapeMarker)3 AbstractMarker (com.revolsys.swing.map.layer.record.style.marker.AbstractMarker)2 ImageMarker (com.revolsys.swing.map.layer.record.style.marker.ImageMarker)2 BaseCloseable (com.revolsys.io.BaseCloseable)1 MarkerStyle (com.revolsys.swing.map.layer.record.style.MarkerStyle)1 Graphics2D (java.awt.Graphics2D)1 Paint (java.awt.Paint)1 ArrayList (java.util.ArrayList)1