예제 #1
0
 def get_band_item_attributes(self, band_altitude):
     """ Default method for providing some stock settings for bands """
     band = self._topology.bands[band_altitude]
     attrs = BandItemAttributes()
     attrs.bgcolor = self._color_mapper.get_unique_color(band._edge.name)
     attrs.border_color = "black"
     attrs.label = str(band._edge.name)
     attrs.label_color = "black"
     attrs.width = 15
     return attrs
예제 #2
0
 def get_band_item_attributes(self, band_altitude):
     """ Overloads the BaseAdapters stock implementation of this method """
     band = self._topology.bands[band_altitude]
     attrs = BandItemAttributes()
     attrs.bgcolor = "white"
     attrs.border_color = "red"
     attrs.label = band.edge.name
     attrs.label_color = "red"
     attrs.width = 15
     attrs.draw_debug = True
     return attrs
예제 #3
0
 def get_band_item_attributes(self, band_altitude):
     """ Overloads the BaseAdapters stock implementation of this method """
     band = self._topology.bands[band_altitude]
     attrs = BandItemAttributes()
     attrs.bgcolor = "white"
     attrs.border_color = "red"
     attrs.label = band.edge.name
     attrs.label_color = "red"
     attrs.width = 15
     attrs.draw_debug = True
     return attrs
 def get_band_item_attributes(self, band_altitude):
     """ Overloads the BaseAdapters stock implementation of this method """
     band = self._topology.bands[band_altitude]
     attrs = BandItemAttributes()
     attrs.bgcolor = self._colormapper.get_unique_color(band.edge.name)
     attrs.border_color = "red"
     attrs.tooltip_text = "Topic:\t%s\nBw:\t%s/sec\nHz:\t%.1f" % (band.edge.name, sizeof_fmt(band.edge.bw), band.edge.hz)
     attrs.label = band.edge.name
     attrs.label_color = "white"
     attrs.width = 15
     return attrs
 def get_band_item_attributes(self, band_altitude):
     """ Overloads the BaseAdapters stock implementation of this method """
     band = self._topology.bands[band_altitude]
     attrs = BandItemAttributes()
     attrs.bgcolor = self._colormapper.get_unique_color(band.edge.name)
     attrs.border_color = "red"
     attrs.tooltip_text = "Topic:\t%s\nBw:\t%s/sec\nHz:\t%.1f" % (
         band.edge.name, sizeof_fmt(band.edge.bw), band.edge.hz)
     attrs.label = band.edge.name
     attrs.label_color = "white"
     attrs.width = 15
     return attrs