Class Defaults


  • public class Defaults
    extends java.lang.Object
    Object which defines the defaults for a GraphProvider. 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 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
    • Constructor Detail

      • Defaults

        public Defaults()
    • 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()