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:
  • Constructor Details

  • Method Details

    • getColor

      public Color getColor()
      See Also:
    • setColor

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

      public Number getColorIndex()
      See Also:
    • setColorIndex

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

      public Number getColumn()
      See Also:
    • 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.
    • getDataLabels

      public DataLabels getDataLabels()
      See Also:
    • setDataLabels

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

      public String getDescription()
      See Also:
    • setDescription

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

      public String getId()
      See Also:
    • setId

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

      public String getImage()
      See Also:
    • setImage

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

      public NodeLayout getLayout()
      See Also:
    • 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
    • getLevel

      public Number getLevel()
      See Also:
    • 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.
    • getName

      public String getName()
      See Also:
    • 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
    • getOffset

      public String getOffset()
      See Also:
    • 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.
    • getTitle

      public String getTitle()
      See Also:
    • setTitle

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object