Class DownloadSourceSizingPolicy.FixedDownloadSourceSizePolicy
java.lang.Object
org.openstreetmap.josm.gui.download.DownloadSourceSizingPolicy.FixedDownloadSourceSizePolicy
- All Implemented Interfaces:
DownloadSourceSizingPolicy
- Enclosing interface:
- DownloadSourceSizingPolicy
public static class DownloadSourceSizingPolicy.FixedDownloadSourceSizePolicy
extends Object
implements DownloadSourceSizingPolicy
The download source has a fixed size provided by the component
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.openstreetmap.josm.gui.download.DownloadSourceSizingPolicy
DownloadSourceSizingPolicy.AdjustableDownloadSizePolicy, DownloadSourceSizingPolicy.FixedDownloadSourceSizePolicy -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new fixed download source policy -
Method Summary
Modifier and TypeMethodDescriptionintGets the height of the download source panel.booleanCheck whether the user should be allowed to adjust the height of this download source panelMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openstreetmap.josm.gui.download.DownloadSourceSizingPolicy
storeHeight
-
Field Details
-
base
-
-
Constructor Details
-
FixedDownloadSourceSizePolicy
Create a new fixed download source policy- Parameters:
base- The component of which the size should be taken.
-
-
Method Details
-
getComponentHeight
Description copied from interface:DownloadSourceSizingPolicyGets the height of the download source panel.- Specified by:
getComponentHeightin interfaceDownloadSourceSizingPolicy- Returns:
- The height the component should have.
-
isHeightAdjustable
Description copied from interface:DownloadSourceSizingPolicyCheck whether the user should be allowed to adjust the height of this download source panel- Specified by:
isHeightAdjustablein interfaceDownloadSourceSizingPolicy- Returns:
trueif the height should be adjustable
-