/[classpath]/classpath/javax/swing/text/View.java
ViewVC logotype

Diff of /classpath/javax/swing/text/View.java

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

revision 1.6.2.3 by gnu_andrew, Tue Jan 25 12:41:41 2005 UTC revision 1.6.2.4 by gnu_andrew, Wed Jan 26 02:30:50 2005 UTC
# Line 80  public abstract class View implements Sw Line 80  public abstract class View implements Sw
80      return parent;      return parent;
81    }    }
82            
   public void setSize(int w, int h)  
   {  
     width = w;  
     height = h;  
   }  
   
83    public Container getContainer()    public Container getContainer()
84    {    {
85      View parent = getParent();      View parent = getParent();
# Line 242  public abstract class View implements Sw Line 236  public abstract class View implements Sw
236    {    {
237      return getContainer().getGraphics();      return getContainer().getGraphics();
238    }    }
239    
240      public void preferenceChanged(View child, boolean width, boolean height)
241      {
242        if (parent != null)
243          parent.preferenceChanged(this, width, height);
244      }
245    
246      public int getBreakWeight(int axis, float pos, float len)
247      {
248        return BadBreakWeight;
249      }
250    
251      public View breakView(int axis, int offset, float pos, float len)
252      {
253        return this;
254      }
255    
256      /**
257       * @since 1.3
258       */
259      public int getViewIndex(int pos, Position.Bias b)
260      {
261        return -1;
262      }
263  }  }
264    

Legend:
Removed from v.1.6.2.3  
changed lines
  Added in v.1.6.2.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26