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.1516from blockdiag.noderenderer import install_renderer17from blockdiag.noderenderer.base import NodeShape181920class NoneShape(NodeShape):21 def __init__(self, node, metrics=None):22 super(NoneShape, self).__init__(node, metrics)2324 p = metrics.cell(node).center25 self.connectors = [p, p, p, p]2627 def render_label(self, drawer, **kwargs):28 pass2930 def render_shape(self, drawer, _, **kwargs):31 pass323334def setup(self):35 install_renderer('none', NoneShape)