Class Defaults
- java.lang.Object
-
- org.opennms.features.topology.api.topo.Defaults
-
public class Defaults extends java.lang.Object
Object which defines the defaults for aGraphProvider
. Usually the defaults are used to apply the default semantic zoom level, layout and default focus after the graph provider was changed.- Author:
- Markus von RĂ¼den
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_PREFERRED_LAYOUT
static int
DEFAULT_SEMANTIC_ZOOM_LEVEL
-
Constructor Summary
Constructors Constructor Description Defaults()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Criteria>
getCriteria()
java.lang.String
getPreferredLayout()
int
getSemanticZoomLevel()
Defaults
withCriteria(java.util.function.Supplier<java.util.List<Criteria>> criteriaSupplier)
Defaults
withPreferredLayout(java.lang.String layout)
Defaults
withPreferredLayout(java.util.function.Supplier<java.lang.String> layoutSupplier)
Defaults
withSemanticZoomLevel(int szl)
Defaults
withSemanticZoomLevel(java.util.function.Supplier<java.lang.Integer> szlSupplier)
-
-
-
Field Detail
-
DEFAULT_SEMANTIC_ZOOM_LEVEL
public static final int DEFAULT_SEMANTIC_ZOOM_LEVEL
- See Also:
- Constant Field Values
-
DEFAULT_PREFERRED_LAYOUT
public static final java.lang.String DEFAULT_PREFERRED_LAYOUT
- See Also:
- Constant Field Values
-
-
Method Detail
-
withSemanticZoomLevel
public Defaults withSemanticZoomLevel(java.util.function.Supplier<java.lang.Integer> szlSupplier)
-
withPreferredLayout
public Defaults withPreferredLayout(java.util.function.Supplier<java.lang.String> layoutSupplier)
-
withCriteria
public Defaults withCriteria(java.util.function.Supplier<java.util.List<Criteria>> criteriaSupplier)
-
withSemanticZoomLevel
public Defaults withSemanticZoomLevel(int szl)
-
withPreferredLayout
public Defaults withPreferredLayout(java.lang.String layout)
-
getSemanticZoomLevel
public int getSemanticZoomLevel()
-
getPreferredLayout
public java.lang.String getPreferredLayout()
-
getCriteria
public java.util.List<Criteria> getCriteria()
-
-