109 | | * The alignments - changes HotSegmentLayout. In HotSegmentLayout the toAwtLayout() method should be changed. TextLayout class has method to create justified layout. This method will be used to create the justified layout. toAwtLayout method will check whether or not the paragraph layout is justified and if it is justified, toAwtLayout will return the justified copy. The other layouts will be drawn by us - left, right, center. When the alignment is right or center, the x of the location point from which the draw should start, should be recalculated. In getPosPlace() method, the offset should be taken under consideration for the halo menu to have the correct location. |
110 | | * The identation - changes HotAreaLayout. In create method of HotArea layout, paragraph style should be taken under consideration. The height of the line should be increased by the line spacing. The beginning of the first interval of the line should be increased by the left indent and the width of the last interval should be decreased be the right indent. |
| 109 | * The alignments - change HotSegmentLayout. In HotSegmentLayout the toAwtLayout() method should be changed. TextLayout class has method to create justified layout. This method will be used to create the justified layout. toAwtLayout method will check whether or not the paragraph layout is justified and if it is justified, toAwtLayout will return the justified copy. The other layouts will be drawn by us - left, right, center. When the alignment is right or center, the x of the location point from which the draw should start, should be recalculated. In getPosPlace() method, the offset should be taken into consideration for the halo menu to have the correct location. |
| 110 | * The identation - change HotAreaLayout. In create method of HotAreaLayout, paragraph style should be taken into consideration. The height of the line should be increased by the line spacing. The beginning of the first interval of the line should be increased by the left indent and the width of the last interval should be decreased be the right indent. |
| 111 | * The existing tests for the text were fixed and now all of them are working. |