SIcon.java :  » Swing-Library » wings3 » org » wings » Java Open Source

Java Open Source » Swing Library » wings3 
wings3 » org » wings » SIcon.java
/*
 * Copyright 2000,2005 wingS development team.
 *
 * This file is part of wingS (http://wingsframework.org).
 *
 * wingS is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License
 * as published by the Free Software Foundation; either version 2.1
 * of the License, or (at your option) any later version.
 *
 * Please see COPYING for the complete licence.
 */
package org.wings;


/**
 * For small fixed size pictures, typically used to decorate components.
 * This icon can be accessed via an URL; this URL is passed to a browser
 * that fetches it from there.
 *
 * @author <a href="mailto:H.Zeller@acm.org">Henner Zeller</a>
 */
public interface SIcon extends URLResource {
    /**
     * @return the width of the icon, or -1 if unknown.
     */
    int getIconWidth();

    /**
     * @return the height of the icon, or -1 if unknown.
     */
    int getIconHeight();

    /**
     * sets the width of the icon, -1 if unknown.
     */
    void setIconWidth(int width);

    /**
     * sets the height of the icon, -1 if unknown.
     */
    void setIconHeight(int height);

    /**
     * gets the title of the icon, empty String if unknown.
     */
    String getIconTitle();

    /**
     * sets the title of the icon, empty String if unknown.
     */
    void setIconTitle(String title);
}


java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.