1396 bbox = self.GetAxesBoundingBox() |
1396 bbox = self.GetAxesBoundingBox() |
1397 |
1397 |
1398 # If highlight to display is resize, draw thick grey line at bottom |
1398 # If highlight to display is resize, draw thick grey line at bottom |
1399 # side of canvas |
1399 # side of canvas |
1400 if self.Highlight == HIGHLIGHT_RESIZE: |
1400 if self.Highlight == HIGHLIGHT_RESIZE: |
1401 destGC.SetPen(HIGHLIGHT_RESIZE_PEN) |
1401 destGC.SetPen(HIGHLIGHT['RESIZE_PEN']) |
1402 destGC.SetBrush(HIGHLIGHT_RESIZE_BRUSH) |
1402 destGC.SetBrush(HIGHLIGHT['RESIZE_BRUSH']) |
1403 destGC.DrawRectangle(0, height - 5, width, 5) |
1403 destGC.DrawRectangle(0, height - 5, width, 5) |
1404 |
1404 |
1405 # If highlight to display is merging graph, draw 50% transparent blue |
1405 # If highlight to display is merging graph, draw 50% transparent blue |
1406 # rectangle on left or right part of figure depending on highlight type |
1406 # rectangle on left or right part of figure depending on highlight type |
1407 elif self.Highlight in [HIGHLIGHT_LEFT, HIGHLIGHT_RIGHT]: |
1407 elif self.Highlight in [HIGHLIGHT_LEFT, HIGHLIGHT_RIGHT]: |
1408 destGC.SetPen(HIGHLIGHT_DROP_PEN) |
1408 destGC.SetPen(HIGHLIGHT['DROP_PEN']) |
1409 destGC.SetBrush(HIGHLIGHT_DROP_BRUSH) |
1409 destGC.SetBrush(HIGHLIGHT['DROP_BRUSH']) |
1410 |
1410 |
1411 x_offset = (bbox.width / 2 |
1411 x_offset = (bbox.width / 2 |
1412 if self.Highlight == HIGHLIGHT_RIGHT |
1412 if self.Highlight == HIGHLIGHT_RIGHT |
1413 else 0) |
1413 else 0) |
1414 destGC.DrawRectangle(bbox.x + x_offset, bbox.y, |
1414 destGC.DrawRectangle(bbox.x + x_offset, bbox.y, |