Changeset 11754 in josm


Ignore:
Timestamp:
2017-03-20T23:31:44+01:00 (5 months ago)
Author:
michael2402
Message:

Throw UnsupportedOperationException if implementation does not support glyph rotation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/placement/PositionForAreaStrategy.java

    r11748 r11754  
    3939     * @param isDoubleTranslationBug <code>true</code> to fix a glyph placement bug.
    4040     *
    41      * @return The glyph vectors. Or <code>null</code> if the text could not be transformed.
     41     * @return The glyph vectors.
     42     * @throws UnsupportedOperationException if {@link #supportsGlyphVector()} returns false
    4243     */
    4344    default List<GlyphVector> generateGlyphVectors(
    4445            MapViewPath path, Rectangle2D nb, List<GlyphVector> gvs, boolean isDoubleTranslationBug) {
    45         return null;
     46        throw new UnsupportedOperationException("Single glyph transofrmation is not supported by this implementation");
    4647    }
    4748
Note: See TracChangeset for help on using the changeset viewer.