Class Node

  • All Implemented Interfaces:
    Serializable

    public class Node
    extends AbstractConfigurationObject
    A collection of options for the individual nodes. The nodes in an org chart are auto-generated instances of Highcharts.Point, but options can be applied here and linked by the id.
    See Also:
    Serialized Form
    • Method Detail

      • setColor

        public void setColor​(Color color)
        The color of the auto generated node.
      • setColorIndex

        public void setColorIndex​(Number colorIndex)
        The color index of the auto generated node, especially for use in styled mode.
      • setColumn

        public void setColumn​(Number column)
        An optional column index of where to place the node. The default behaviour is to place it next to the preceding node. Note that this option name is counter intuitive in inverted charts, like for example an organization chart rendered top down. In this case the "columns" are horizontal.
      • setDataLabels

        public void setDataLabels​(DataLabels dataLabels)
        Individual data label for each node.
      • setDescription

        public void setDescription​(String description)
        The job description for the node card, will be inserted by the default dataLabel.nodeFormatter.
      • setId

        public void setId​(String id)
        The id of the auto-generated node, referring to the from or to setting of the link.
      • setImage

        public void setImage​(String image)
        An image for the node card, will be inserted by the default dataLabel.nodeFormatter.
      • setLayout

        public void setLayout​(NodeLayout layout)
        Layout for the node's children. If hanging, this node's children will hang below their parent, allowing a tighter packing of nodes in the diagram
      • setLevel

        public void setLevel​(Number level)
        An optional level index of where to place the node. The default behaviour is to place it next to the preceding node. Alias of nodes.column, but in inverted sankeys and org charts, the levels are laid out as rows.
      • setName

        public void setName​(String name)
        The name to display for the node in data labels and tooltips. Use this when the name is different from the id. Where the id must be unique for each node, this is not necessary for the name
      • setOffset

        public void setOffset​(String offset)
        In a horizontal layout, the vertical offset of a node in terms of weight. Positive values shift the node downwards, negative shift it upwards. In a vertical layout, like organization chart, the offset is horizontal. If a percentage string is given, the node is offset by the percentage of the node size plus nodePadding. Defaults to 0.
      • setTitle

        public void setTitle​(String title)
        The job title for the node card, will be inserted by the default dataLabel.nodeFormatter.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object