use of com.revolsys.swing.map.layer.record.style.MarkerStyle in project com.revolsys.open by revolsys.
the class VertexStyleRenderer method paintSelected.
public void paintSelected(final Viewport2D viewport, final Graphics2D graphics, final GeometryFactory viewportGeometryFactory, final Vertex vertex) {
if (Property.hasValue(vertex)) {
MarkerStyle style;
if (vertex.isFrom()) {
style = this.fromVertexStyle;
} else if (vertex.isTo()) {
style = this.toVertexStyle;
} else {
style = this.vertexStyle;
}
final double orientation = vertex.getOrientaton();
MarkerStyleRenderer.renderMarker(viewport, graphics, vertex, style, orientation);
}
}
use of com.revolsys.swing.map.layer.record.style.MarkerStyle in project com.revolsys.open by revolsys.
the class AbstractSymbol method getIcon.
@Override
public Icon getIcon() {
if (this.icon == null) {
final Marker marker = newMarker();
this.icon = marker.newIcon(new MarkerStyle());
}
return this.icon;
}
Aggregations