Esempio n. 1
0
 public override void UpdateDecoration(Color _color)
 {
     m_InfosStyle.Update(_color);
     // Compute the background fill color from the edges color.
     // Fixing the text color has been done within m_InfosStyle,
     // taking the line color as reference. (Not optimal)
     UpdateBackgroundFillColor();
 }
Esempio n. 2
0
        public void UpdateData(DrawingToolType _tool, Color _color)
        {
            // Update a ColorProfile entry from specified color.
            // This method is only used to update the color.

            switch (_tool)
            {
            case DrawingToolType.Angle2D:
                m_DecorationAngle2D.Update(_color);
                break;

            case DrawingToolType.Chrono:
                m_DecorationChrono.Update(_color);
                break;

            case DrawingToolType.Cross2D:
                m_DecorationCross2D.Update(_color);
                break;

            case DrawingToolType.Line2D:
                m_DecorationLine2D.Update(_color);
                break;

            case DrawingToolType.Pencil:
                m_DecorationPencil.Update(_color);
                break;

            case DrawingToolType.Text:
                m_DecorationText.Update(_color);
                break;

            default:
                // These tools do not have any color info. (shouldn't happen)
                break;
            }
        }
Esempio n. 3
0
 public override void UpdateDecoration(Color _color)
 {
     m_TextStyle.Update(_color);
 }