public class StadtbilderUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
StadtbilderUtils.ConcurrentLRUCache<Key,Value>
DOCUMENT ME!
|
static class |
StadtbilderUtils.StadtbildInfo
DOCUMENT ME!
|
| Modifier and Type | Field and Description |
|---|---|
static BufferedImage |
ERROR_IMAGE |
static int |
HIGH_PRIORITY |
static int |
LOW_PRIORITY |
static int |
NORMAL_PRIORITY |
static BufferedImage |
PLACEHOLDER_IMAGE |
| Constructor and Description |
|---|
StadtbilderUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cacheImagesForStadtbilder(de.cismet.cids.dynamics.CidsBean stadtbildserie,
List<de.cismet.cids.dynamics.CidsBean> stadtbilder,
de.cismet.connectioncontext.ConnectionContext connectionContext)
Checks if the Stadtbilder are in the cache.
|
static BufferedImage |
downloadImageForBildnummer(StadtbilderUtils.StadtbildInfo stadtbildInfo)
Fetches an image of a bildnummer.
|
static Object |
fetchImageForBildnummer(de.cismet.cids.dynamics.CidsBean statdbildserie,
StadtbilderUtils.StadtbildInfo stadtbildInfo,
int priority,
de.cismet.connectioncontext.ConnectionContext connectionContext)
Fetches an image of a bildnummer.
|
static String |
getArcUrlPath(String bildnummer)
DOCUMENT ME!
|
static String |
getErrorMessageForFailedImage(StadtbilderUtils.StadtbildInfo stadtbildInfo)
DOCUMENT ME!
|
static String |
getFormatOfHighResPicture(StadtbilderUtils.StadtbildInfo stadtbildInfo)
Gets a Stadtbild-imageNumber as argument and checks if a high-res image for that number exists.
|
static de.cismet.cids.dynamics.CidsBean |
getR102(de.cismet.connectioncontext.ConnectionContext connectionContext)
Get the CidsBean of the Sb_Lager with the name 'R102'.
|
static URL |
getURLOfLowResPicture(StadtbilderUtils.StadtbildInfo stadtbildInfo)
DOCUMENT ME!
|
static de.cismet.cids.dynamics.CidsBean |
getWuppertal(de.cismet.connectioncontext.ConnectionContext connectionContext)
Get the CidsBean of the Sb_Ort with the name 'Wuppertal'.
|
static boolean |
isBildnummerInCacheOrFailed(StadtbilderUtils.StadtbildInfo stadtbildInfo)
Checks if the bildnummer has an entry in the image cache, or if the bildnummer could not be loaded.
|
static boolean |
isBildnummerInFailedSet(StadtbilderUtils.StadtbildInfo stadtbildInfo)
Checks if the bildnummer could not be loaded.
|
static void |
removeBildnummerFromFailedSet(StadtbilderUtils.StadtbildInfo stadtbildInfo)
Removes a bildnummer from the failed set.
|
static void |
removeBildnummerFromImageCacheAndFailedSet(StadtbilderUtils.StadtbildInfo stadtbildInfo)
Removes a bildnummer from the image cache, and also its entry in the failed set.
|
static Image |
scaleImage(Image toScale,
int dimension,
boolean showWholePicture)
Scales the image such that it fits in an element of the jGrid.
|
static void |
setModelForComboBoxesAndDecorateIt(JComboBox combobox,
String className,
de.cismet.connectioncontext.ConnectionContext connectionContext)
Fills the model of combobox with the LightweightMetaObjects for all elements of a certain cids-class.
|
static void |
simulateGC()
DOCUMENT ME!
|
public static BufferedImage ERROR_IMAGE
public static BufferedImage PLACEHOLDER_IMAGE
public static final int HIGH_PRIORITY
public static final int NORMAL_PRIORITY
public static final int LOW_PRIORITY
public static de.cismet.cids.dynamics.CidsBean getWuppertal(de.cismet.connectioncontext.ConnectionContext connectionContext)
connectionContext - DOCUMENT ME!public static void simulateGC()
public static String getArcUrlPath(String bildnummer)
bildnummer - DOCUMENT ME!public static de.cismet.cids.dynamics.CidsBean getR102(de.cismet.connectioncontext.ConnectionContext connectionContext)
connectionContext - DOCUMENT ME!public static void setModelForComboBoxesAndDecorateIt(JComboBox combobox, String className, de.cismet.connectioncontext.ConnectionContext connectionContext)
combobox - The model of that combobox will be replacedclassName - the cids class name. The elements of this class will be fetched.connectionContext - DOCUMENT ME!public static URL getURLOfLowResPicture(StadtbilderUtils.StadtbildInfo stadtbildInfo)
stadtbildInfo - imageNumber DOCUMENT ME!public static String getFormatOfHighResPicture(StadtbilderUtils.StadtbildInfo stadtbildInfo)
stadtbildInfo - DOCUMENT ME!public static BufferedImage downloadImageForBildnummer(StadtbilderUtils.StadtbildInfo stadtbildInfo) throws Exception
stadtbildInfo - DOCUMENT ME!Exception - java.lang.Exceptionpublic static Object fetchImageForBildnummer(de.cismet.cids.dynamics.CidsBean statdbildserie, StadtbilderUtils.StadtbildInfo stadtbildInfo, int priority, de.cismet.connectioncontext.ConnectionContext connectionContext)
statdbildserie - DOCUMENT ME!stadtbildInfo - bildnummer DOCUMENT ME!priority - DOCUMENT ME!connectionContext - DOCUMENT ME!public static boolean isBildnummerInCacheOrFailed(StadtbilderUtils.StadtbildInfo stadtbildInfo)
stadtbildInfo - DOCUMENT ME!public static boolean isBildnummerInFailedSet(StadtbilderUtils.StadtbildInfo stadtbildInfo)
stadtbildInfo - DOCUMENT ME!public static String getErrorMessageForFailedImage(StadtbilderUtils.StadtbildInfo stadtbildInfo)
stadtbildInfo - DOCUMENT ME!public static void cacheImagesForStadtbilder(de.cismet.cids.dynamics.CidsBean stadtbildserie,
List<de.cismet.cids.dynamics.CidsBean> stadtbilder,
de.cismet.connectioncontext.ConnectionContext connectionContext)
stadtbildserie - DOCUMENT ME!stadtbilder - DOCUMENT ME!connectionContext - DOCUMENT ME!public static void removeBildnummerFromImageCacheAndFailedSet(StadtbilderUtils.StadtbildInfo stadtbildInfo)
stadtbildInfo - cidsBean DOCUMENT ME!public static void removeBildnummerFromFailedSet(StadtbilderUtils.StadtbildInfo stadtbildInfo)
stadtbildInfo - DOCUMENT ME!public static Image scaleImage(Image toScale, int dimension, boolean showWholePicture)
Tries to use GraphicsUtilities.createThumbnail(), as it works only if the image is smaller.
toScale - DOCUMENT ME!dimension - DOCUMENT ME!showWholePicture - DOCUMENT ME!Copyright © 2012–2025 cismet GmbH. All rights reserved.