Ignore:
Timestamp:
2017-06-11T13:57:28+02:00 (7 years ago)
Author:
michael2402
Message:

See #14794: Documentation for the gui package

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/ScrollViewport.java

    r12079 r12391  
    3131    private static final int NO_SCROLL = 0;
    3232
     33    /**
     34     * Direction flag for upwards
     35     */
    3336    public static final int UP_DIRECTION = 1;
     37    /**
     38     * Direction flag for downwards
     39     */
    3440    public static final int DOWN_DIRECTION = 2;
     41    /**
     42     * Direction flag for left
     43     */
    3544    public static final int LEFT_DIRECTION = 4;
     45    /**
     46     * Direction flag for right
     47     */
    3648    public static final int RIGHT_DIRECTION = 8;
    3749    /**
     
    240252    }
    241253
     254    /**
     255     * Gets the current visible part of the view
     256     * @return The current view rect
     257     */
    242258    public Rectangle getViewRect() {
    243259        return vp.getViewRect();
    244260    }
    245261
     262    /**
     263     * Gets the size of the view
     264     * @return The size
     265     */
    246266    public Dimension getViewSize() {
    247267        return vp.getViewSize();
    248268    }
    249269
     270    /**
     271     * Gets the position (offset) of the view area
     272     * @return The offset
     273     */
    250274    public Point getViewPosition() {
    251275        return vp.getViewPosition();
Note: See TracChangeset for help on using the changeset viewer.