use of org.opennms.features.topology.app.internal.gwt.client.SharedVertex in project opennms by OpenNMS.
the class GraphPainter method visitVertex.
@Override
public void visitVertex(Vertex vertex) throws PaintException {
boolean selected = isSelected(m_graphContainer.getSelectionManager(), vertex);
Point initialLocation = m_layout.getInitialLocation(vertex);
Point location = m_layout.getLocation(vertex);
SharedVertex v = new SharedVertex();
v.setKey(vertex.getKey());
// TODO cast to int for now
v.setInitialX((int) initialLocation.getX());
v.setInitialY((int) initialLocation.getY());
v.setX((int) location.getX());
v.setY((int) location.getY());
v.setSelected(selected);
v.setStatus(getStatus(vertex));
v.setStatusCount(getStatusCount(vertex));
v.setSVGIconId(getIconId(vertex));
v.setLabel(vertex.getLabel());
v.setTooltipText(getTooltipText(vertex));
v.setStyleName(getVertexStyle(vertex, selected));
v.setTargets(getTargets(vertex));
v.setEdgePathOffset(getEdgePathOffset(vertex));
m_vertices.add(v);
}
Aggregations