示例#1
0
        override public void setText(String label)
        {
            float oldWidth = Shape.Width;

            base.setText(label);
            //if the shape is bigger then move nodes to right by the difference
            if (!Controller.LoadingProject)
            {
                TrueNode.shiftRight((int)(Shape.Width - oldWidth));
                BackNode.shiftRight((int)(Shape.Width - oldWidth));
            }
        }