use of net.parostroj.timetable.model.NodeType in project grafikon by jub77.
the class NodeCell method getShapeForNode.
private NodeShape getShapeForNode(Node vertex) {
NodeType type = vertex.getType();
NodeShape shape = type != null ? (NodeShape) mxStencilRegistry.getStencil(type.getKey()) : null;
if (shape == null) {
// shape for station should always exist
shape = (NodeShape) mxStencilRegistry.getStencil(NodeType.STATION.getKey());
}
return shape;
}
Aggregations