package causation.lab.plaf;
import javax.swing.plaf.*;
import javax.swing.Icon;
import java.awt.Dimension;
import java.net.URL;
import causation.lab.WBVariable;
/**
* @version 0.9 Aug 30, 1999
* @author David Danks
*/
public abstract class WBVariableUI extends ComponentUI {
/**
* @return Should be the Icon used for the name, if there is one;
* null
, otherwise.
*/
public abstract Icon getNameIcon();
/**
* @param icon Should set the icon used for the name to icon
.
* null
should be an acceptable value
*/
public abstract void setNameIcon(Icon icon);
/**
* @return Should be an icon of the lock that is suitable for
* representing over a broken arrow. null
should be
* sent, if there is no such icon
*/
public abstract Icon getDisabledLockIcon();
/**
* @return Should return the URL used as a codebase for loading images
*/
public abstract URL getCodebase();
/**
* @param newURL Should set the codebase used for loading images to
* newURL
. null
should be sent
* if no images should be loaded
*/
public abstract void setCodebase(URL newURL);
/**
* @param v The WBVariable for which the size is being computed
* @return Should be the preferred size of the WBVariable
*/
public abstract Dimension getPreferredSize(WBVariable v);
/**
* @param v The WBVariable for which the size is being computed
* @return Should be the minimum size of the WBVariable
*/
public abstract Dimension getMinimumSize(WBVariable v);
}