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 java.lang.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 Modifier and Type Field Description private java.awt.Component
base
-
Constructor Summary
Constructors Constructor Description FixedDownloadSourceSizePolicy(java.awt.Component base)
Create a new fixed download source policy
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getComponentHeight()
Gets the height of the download source panel.boolean
isHeightAdjustable()
Check whether the user should be allowed to adjust the height of this download source panel-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openstreetmap.josm.gui.download.DownloadSourceSizingPolicy
storeHeight
-
-
-
-
Field Detail
-
base
private final java.awt.Component base
-
-
Constructor Detail
-
FixedDownloadSourceSizePolicy
public FixedDownloadSourceSizePolicy(java.awt.Component base)
Create a new fixed download source policy- Parameters:
base
- The component of which the size should be taken.
-
-
Method Detail
-
getComponentHeight
public int getComponentHeight()
Description copied from interface:DownloadSourceSizingPolicy
Gets the height of the download source panel.- Specified by:
getComponentHeight
in interfaceDownloadSourceSizingPolicy
- Returns:
- The height the component should have.
-
isHeightAdjustable
public boolean isHeightAdjustable()
Description copied from interface:DownloadSourceSizingPolicy
Check whether the user should be allowed to adjust the height of this download source panel- Specified by:
isHeightAdjustable
in interfaceDownloadSourceSizingPolicy
- Returns:
true
if the height should be adjustable
-
-