public class MonitorModeUtil extends Object
MonitorMode
utility methods,
filters etc.Constructor and Description |
---|
MonitorModeUtil() |
public static int getIndex(List<MonitorMode> monitorModes, MonitorMode search)
public static int getIndexByHashCode(List<MonitorMode> monitorModes, MonitorMode search)
public static MonitorMode getByNativeSizeRateIdAndRotation(List<MonitorMode> monitorModes, MonitorMode.SizeAndRRate sizeAndRate, int modeId, int rotation)
public static void sort(List<MonitorMode> monitorModes, boolean ascendingOrder)
MonitorMode
collection w/ MonitorMode.compareTo(MonitorMode)
function.public static List<MonitorMode> filterBySurfaceSize(List<MonitorMode> monitorModes, SurfaceSize surfaceSize)
monitorModes
- surfaceSize
- SurfaceSize
. May return zero sized list for non.public static List<MonitorMode> filterByRotation(List<MonitorMode> monitorModes, int rotation)
monitorModes
- rotation
- public static List<MonitorMode> filterByBpp(List<MonitorMode> monitorModes, int bitsPerPixel)
monitorModes
- bitsPerPixel
- public static List<MonitorMode> filterByFlags(List<MonitorMode> monitorModes, int flags)
monitorModes
- flags
- public static List<MonitorMode> filterByResolution(List<MonitorMode> monitorModes, DimensionImmutable resolution)
monitorModes
- resolution
- public static List<MonitorMode> filterByRate(List<MonitorMode> monitorModes, float refreshRate)
monitorModes
- refreshRate
- public static List<MonitorMode> getHighestAvailableBpp(List<MonitorMode> monitorModes)
monitorModes
- public static List<MonitorMode> getHighestAvailableRate(List<MonitorMode> monitorModes)
monitorModes
- Copyright 2010 JogAmp Community.