예제 #1
0
    def drawLinkColorBar(self, x = 50, y = 90, w = 20, h = 120):
        """Draw the color bar for links."""
        link_bar = []
        for i in range(11):
            link_bar.append(self.map_link_color(float(i)/10.0))

        self.textdraws.append(drawGLColorBar(link_bar, x, y, w, h, "L", self.height()))
예제 #2
0
    def drawNodeColorBar(self, x = 20, y = 90, w = 20, h = 120):
        """Draw the color bar for nodes."""
        node_bar = []
        for i in range(11):
            node_bar.append(self.map_node_color(float(i)/10.0))

        self.textdraws.append(drawGLColorBar(node_bar, x, y, w, h, "N", self.height()))
예제 #3
0
    def drawLinkColorBar(self, x=50, y=90, w=20, h=120):
        """Draw the color bar for links."""
        link_bar = []
        for i in range(11):
            link_bar.append(self.map_link_color(float(i) / 10.0))

        self.textdraws.append(
            drawGLColorBar(link_bar, x, y, w, h, "L", self.height()))
예제 #4
0
    def drawNodeColorBar(self, x=20, y=90, w=20, h=120):
        """Draw the color bar for nodes."""
        node_bar = []
        for i in range(11):
            node_bar.append(self.map_node_color(float(i) / 10.0))

        self.textdraws.append(
            drawGLColorBar(node_bar, x, y, w, h, "N", self.height()))