Class Options.Builder

  • Enclosing class:
    Options

    public static class Options.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • withAutoResize

        public Options.Builder withAutoResize​(java.lang.Boolean autoResize)
        Indicates whether network chart should be redrawn when container will be resized. Default value is true.
      • withHeight

        public Options.Builder withHeight​(java.lang.String height)
        Indicates height of canvas. Value can be set in percentage or pixels. Default value is 100%
      • withWidth

        public Options.Builder withWidth​(java.lang.String width)
        Indicates width of canvas. Value can be set in percentage or pixels. Default value is 100%
      • withLocale

        public Options.Builder withLocale​(java.lang.String locale)
        Indicates current locale. Default value is current locale of logged user.
      • withLocales

        public Options.Builder withLocales​(java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>> locales)
        List of translations for particular languages. A key should indicates particular language, a value should be map of translation for the following keys: "edit", "del", "back", "addNode", "addEdge", "editNode", "editEdge", "addDescription", "edgeDescription", "editEdgeDescription", "createEdgeError", "deleteClusterError", "editClusterError"
      • withClickToUse

        public Options.Builder withClickToUse​(java.lang.Boolean clickToUse)
        Indicates whether network should react on mouse and touch events when network is not active. Default value is false.
      • withEdges

        public Options.Builder withEdges​(Edge edges)
        Default configuration for edges.
      • withNodes

        public Options.Builder withNodes​(Node nodes)
        Default configuration for nodes.
      • withGroups

        public Options.Builder withGroups​(java.util.Map<java.lang.String,​Node> groups)
        Configuration for groups of nodes. A key represents group's name, a value represents group configuration.
      • withLayout

        public Options.Builder withLayout​(Layout layout)
        Options for network layout. Indicates whether layout should be hierarchical or not.
      • withInteraction

        public Options.Builder withInteraction​(Interaction interaction)
        Represents options for navigation buttons, mouse and touch events.
      • withManipulation

        public Options.Builder withManipulation​(Manipulation manipulation)
        Represents options for navigation buttons, mouse and touch events.