/[escript]/trunk/pyvisi/py_src/text.py
ViewVC logotype

Diff of /trunk/pyvisi/py_src/text.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 945 by jongui, Mon Jan 29 07:22:43 2007 UTC revision 946 by jongui, Wed Jan 31 03:08:04 2007 UTC
# Line 41  class Text2D(Actor2D): Line 41  class Text2D(Actor2D):
41          """          """
42    
43          self._vtk_actor2D.SetInput(self.__text)          self._vtk_actor2D.SetInput(self.__text)
44    #       self._vtk_actor2D.GetPositionCoordinate().SetCoordinateSystemToViewport()
45        
46    
47      def setFontSize(self, size):      def setFontSize(self, size):
48          """          """
# Line 80  class Text2D(Actor2D): Line 82  class Text2D(Actor2D):
82    
83          self._vtk_actor2D.GetTextProperty().SetJustificationToCentered()          self._vtk_actor2D.GetTextProperty().SetJustificationToCentered()
84    
     def setJustificationToLeft(self):  
         """  
         Set the 2D text to left justification.  
         """  
   
         self._vtk_actor2D.GetTextProperty().SetJustificationToLeft()  
   
     def setJustificationToRight(self):  
         """  
         Set the 2D text to right justification.  
         """  
   
         self._vtk_actor2D.GetTextProperty().SetJustificationToRight()  
   
85      def boldOn(self):      def boldOn(self):
86          """          """
87          Bold the 2D text.          Bold the 2D text.

Legend:
Removed from v.945  
changed lines
  Added in v.946

  ViewVC Help
Powered by ViewVC 1.1.26