1 19 20 package org.netbeans.editor.view.spi; 21 22 import javax.swing.text.View ; 23 24 77 78 public interface ViewLayoutState { 79 80 84 public View getView(); 85 86 93 public boolean isFlyweight(); 94 95 108 public int getViewRawIndex(); 109 110 120 public void setViewRawIndex(int viewRawIndex); 121 122 142 public ViewLayoutState selectLayoutMajorAxis(int majorAxis); 143 144 176 public double getLayoutMajorAxisPreferredSpan(); 177 178 203 public double getLayoutMajorAxisRawOffset(); 204 205 214 public void setLayoutMajorAxisRawOffset(double layoutMajorAxisRawOffset); 215 216 232 public float getLayoutMinorAxisPreferredSpan(); 233 234 256 public float getLayoutMinorAxisMinimumSpan(); 257 258 280 public float getLayoutMinorAxisMaximumSpan(); 281 282 298 public float getLayoutMinorAxisAlignment(); 299 300 323 public void updateLayout(); 324 325 345 public void viewPreferenceChanged(boolean width, boolean height); 346 347 360 public void markViewSizeInvalid(); 361 362 370 public boolean isLayoutValid(); 371 372 377 public interface Parent { 378 379 394 public void majorAxisPreferenceChanged(ViewLayoutState child, 395 double majorAxisSpanDelta); 396 397 407 public void minorAxisPreferenceChanged(ViewLayoutState child); 408 409 416 public void layoutInvalid(ViewLayoutState child); 417 418 431 public float getMinorAxisSpan(ViewLayoutState child); 432 433 462 public void repaint(ViewLayoutState child, 463 double majorAxisOffset, double majorAxisSpan, 464 float minorAxisOffset, float minorAxisSpan); 465 466 } 467 468 } 469 | Popular Tags |