1# -*- coding: utf-8 -*-2# Copyright 2011 Takeshi KOMIYA3#4# Licensed under the Apache License, Version 2.0 (the "License");5# you may not use this file except in compliance with the License.6# You may obtain a copy of the License at7#8# http://www.apache.org/licenses/LICENSE-2.09#10# Unless required by applicable law or agreed to in writing, software11# distributed under the License is distributed on an "AS IS" BASIS,12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.13# See the License for the specific language governing permissions and14# limitations under the License.1516import blockdiag.elements171819class DiagramNode(blockdiag.elements.DiagramNode):20 lane = None212223class DiagramEdge(blockdiag.elements.DiagramEdge):24 pass252627class NodeGroup(blockdiag.elements.NodeGroup):28 def __init__(self, _id):29 super(NodeGroup, self).__init__(_id)3031 self.color = '#ffff99'323334class Diagram(blockdiag.elements.Diagram):35 _DiagramNode = DiagramNode36 _NodeGroup = NodeGroup3738 def __init__(self):39 super(Diagram, self).__init__()4041 self.orientation = 'portrait'42 self.lanes = []