private float getSymbolHeight(InternalFeature f) { SymbolInfo info = f.getStyleInfo().getSymbol(); if (info.getCircle() != null) { return 2 * info.getCircle().getR(); } else { return info.getRect().getH(); } }
} else if (symbol.getRect() != null) { MarkInfo rect = createMark(WKN_RECT, fill, stroke); graphic = createGraphic(rect, (int) symbol.getRect().getH()); } else { ExternalGraphicInfo image = createExternalGraphic(symbol.getImage().getHref());
/** * Copy constructor. Creates a deep copy of the specified {@link SymbolInfo} object. * * @param other the symbol to copy * @since 1.10.0 */ public SymbolInfo(SymbolInfo other) { if (other.getCircle() != null) { setCircle(new CircleInfo()); getCircle().setR(other.getCircle().getR()); } if (other.getRect() != null) { setRect(new RectInfo()); getRect().setH(other.getRect().getH()); getRect().setW(other.getRect().getW()); } if (other.getImage() != null) { setImage(new ImageInfo()); getImage().setHeight(other.getImage().getHeight()); getImage().setWidth(other.getImage().getWidth()); getImage().setHref(other.getImage().getHref()); getImage().setSelectionHref(other.getImage().getSelectionHref()); } }