Changeset 11724 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2017-03-13T18:31:06+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/PositionForAreaStrategy.java
r11722 r11724 10 10 /** 11 11 * This strategy defines how to place a label or icon inside the area. 12 * @since 1172 012 * @since 11722 13 13 */ 14 14 public interface PositionForAreaStrategy { … … 31 31 * @param keyword The text position keyword. 32 32 * @return The strategy or line if none was specified. 33 * @since 1172 033 * @since 11722 34 34 */ 35 35 public static PositionForAreaStrategy forKeyword(Keyword keyword) { … … 42 42 * @param defaultStrategy The default if no strategy was recognized. 43 43 * @return The strategy or line if none was specified. 44 * @since 1172 044 * @since 11722 45 45 */ 46 46 public static PositionForAreaStrategy forKeyword(Keyword keyword, PositionForAreaStrategy defaultStrategy) { … … 63 63 * Places the label onto the line. 64 64 * 65 * @since 1172 065 * @since 11722 66 66 */ 67 67 public static PositionForAreaStrategy LINE = new OnLineStrategy(); … … 70 70 * Places the label / icon so that it is completely inside the area. 71 71 * 72 * @since 1172 072 * @since 11722 73 73 */ 74 74 public static PositionForAreaStrategy INSIDE = new CompletelyInsideAreaStrategy(); … … 76 76 /** 77 77 * Places the label / icon so that is is on the area. 78 * @since 1172 078 * @since 11722 79 79 */ 80 80 public static PositionForAreaStrategy PARTIALY_INSIDE = new PartialyInsideAreaStrategy(); … … 83 83 * Places the label onto the line. 84 84 * 85 * @since 1172 085 * @since 11722 86 86 */ 87 87 class OnLineStrategy implements PositionForAreaStrategy { … … 101 101 * Places the label / icon so that it is completely inside the area. 102 102 * 103 * @since 1172 0103 * @since 11722 104 104 */ 105 105 class CompletelyInsideAreaStrategy implements PositionForAreaStrategy { … … 174 174 * 175 175 * The center of that place should be in the area, but the icon / label may overlap on the edges. 176 * @since 1172 0176 * @since 11722 177 177 */ 178 178 public class PartialyInsideAreaStrategy extends CompletelyInsideAreaStrategy {
Note:
See TracChangeset
for help on using the changeset viewer.