private static float getAlpha(final PreviewProperties properties) { float opacity = properties.getIntValue(PreviewProperty.EDGE_OPACITY) / 100F; if (opacity < 0) { opacity = 0; } if (opacity > 1) { opacity = 1; } return opacity; }
int maxChars = properties.getIntValue(PreviewProperty.NODE_LABEL_MAX_CHAR); for (Item item : nodeLabelsItems) { String label = item.getData(NodeLabelItem.LABEL);
int maxChars = properties.getIntValue(PreviewProperty.EDGE_LABEL_MAX_CHAR); for (Item item : EdgeLabelsItems) { String label = item.getData(EdgeLabelItem.LABEL);