Search in sources :

Example 1 with NodeType

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;
}
Also used : NodeType(net.parostroj.timetable.model.NodeType)

Aggregations

NodeType (net.parostroj.timetable.model.NodeType)1