package causation.lab.plaf; import javax.swing.plaf.*; import javax.swing.Icon; import java.net.URL; import java.awt.Dimension; import causation.lab.Randomizer; public abstract class RandomizerUI extends ComponentUI { /** * @return Should be an icon of the randomizer that is suitable for * representing over a broken arrow. null should be * sent, if there is no such icon */ public abstract Icon getDisabledRandomizerIcon(); /** * @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 newBase); /** * @param r The Randomizer for which the size is being computed * @return Should be the preferred size of the Randomizer */ public abstract Dimension getPreferredSize(Randomizer r); /** * @param r The Randomizer for which the size is being computed * @return Should be the minimum size of the Randomizer */ public abstract Dimension getMinimumSize(Randomizer r); }