Changeset 1258 for trunk/src/org/expeditee/items/Text.java
- Timestamp:
- 03/18/19 18:38:32 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/items/Text.java
r1245 r1258 387 387 if (width == null) { 388 388 setJustification(Justification.left); 389 setRightMargin(DisplayController.getFramePaintArea ().getWidth(), false);389 setRightMargin(DisplayController.getFramePaintAreaWidth(), false); 390 390 return; 391 391 } … … 402 402 if (width == null) { 403 403 setJustification(Justification.left); 404 setRightMargin(DisplayController.getFramePaintArea ().getWidth(), false);404 setRightMargin(DisplayController.getFramePaintAreaWidth(), false); 405 405 return; 406 406 } … … 1801 1801 if (limitWidth) { 1802 1802 if (_maxWidth == null) { 1803 width = DisplayController.getFramePaintArea ().getWidth() - getX();1803 width = DisplayController.getFramePaintAreaWidth() - getX(); 1804 1804 } else { 1805 1805 width = getAbsoluteWidth(); … … 2282 2282 int model_frame_name_x = modelFrame.getNameItem().getX(); 2283 2283 if (model_frame_name_x < DisplayController.MINIMUM_FRAME_WIDTH) { 2284 System.err.println(" Text::resetTitlePostion(): value to be used as right margin from position of frameName < 512");2284 System.err.println("**** Text::resetTitlePostion(): value to be used as right margin from position of frameName < 512"); 2285 2285 System.err.println(" Overriding to ensure reasonable width for title"); 2286 2286 model_frame_name_x = DisplayController.MINIMUM_FRAME_WIDTH; … … 2395 2395 private void clipFrameMargin() { 2396 2396 if (!hasFixedWidth()) { 2397 int frameWidth = DisplayController.getFramePaintArea ().getWidth();2397 int frameWidth = DisplayController.getFramePaintAreaWidth(); 2398 2398 /* 2399 2399 * Only change width if it is more than 150 pixels from the right of the screen … … 2417 2417 } 2418 2418 2419 Integer width = DisplayController.getFramePaintArea ().getWidth();2419 Integer width = DisplayController.getFramePaintAreaWidth(); 2420 2420 2421 2421 // Check if that text item is inside an enclosing rectangle... … … 2457 2457 2458 2458 public void resetFrameNamePosition() { 2459 Dimension maxSize = DisplayController.getSizeEnforceMinimum(); 2460 2459 //Dimension maxSize = DisplayController.getSizeEnforceMinimum(); 2460 Dimension maxSize = DisplayController.getFramePaintAreaSize(); 2461 2461 2462 if (maxSize != null) { 2462 2463 // setMaxWidth(maxSize.width); … … 2717 2718 // Subtract off the link width 2718 2719 if (anchor != null) { 2719 setX(DisplayController.getFramePaintArea ().getWidth() - anchor - getBoundsWidth() + getLeftMargin());2720 setX(DisplayController.getFramePaintAreaWidth() - anchor - getBoundsWidth() + getLeftMargin()); 2720 2721 } 2721 2722 return; … … 2728 2729 int oldX = getX(); 2729 2730 if (anchor != null) { 2730 float deltaX = DisplayController.getFramePaintArea ().getWidth() - anchor - getBoundsWidth()2731 float deltaX = DisplayController.getFramePaintAreaWidth() - anchor - getBoundsWidth() 2731 2732 + getLeftMargin() - oldX; 2732 2733 anchorConnected(AnchorEdgeType.Right, deltaX); … … 2778 2779 final float ascent = getTextLayouts().get(0).getAscent(); 2779 2780 final float descent = getTextLayouts().get(0).getDescent(); 2780 setY(DisplayController.getFramePaintArea ().getHeight()2781 setY(DisplayController.getFramePaintAreaHeight() 2781 2782 - (anchor + this.getBoundsHeight() - ascent - descent)); 2782 2783 } else if (this.getFont() != null) { … … 2785 2786 final float ascent = fakeLayout.getAscent(); 2786 2787 final float descent = fakeLayout.getDescent(); 2787 setY(DisplayController.getFramePaintArea ().getHeight()2788 setY(DisplayController.getFramePaintAreaHeight() 2788 2789 - (anchor + this.getBoundsHeight() - ascent - descent)); 2789 2790 } … … 2800 2801 if (anchor != null) { 2801 2802 2802 float deltaY = DisplayController.getFramePaintArea ().getHeight() - anchor - oldY;2803 float deltaY = DisplayController.getFramePaintAreaHeight() - anchor - oldY; 2803 2804 anchorConnected(AnchorEdgeType.Bottom, deltaY); 2804 2805 }
Note:
See TracChangeset
for help on using the changeset viewer.