Module omix.api

Interface Node

All Superinterfaces:
Component, Item
All Known Subinterfaces:
BioNode, GraphicsNode, Link, Metabolite, MetNode, Reaction

public interface Node
extends Component
Superclass of all nodes in Omix. This Java interface represents a Node in OVL. It contain all methods available in OVL. The static fields in this interface declaration are public non-static instance fields in OVL. They can be read and written from OVL code.
Author:
Dr. Peter Droste, Omix Visualization
  • Method Details

    • strokeWidth

      @OVLField double strokeWidth()
      The stroke width of the item's shape.
    • textStrokeWidth

      @OVLField double textStrokeWidth()
      The stroke width of the item's text label.
    • scale

      @OVLField double scale()
      The scale factor the node is displayed with. Values less than 1.0 decreases the node's size. Values greater than 1.0 increases its size.
    • fillLevel

      @OVLField double fillLevel()
      The filling level of the item's shape given as percentage value.
    • blur

      @OVLField double blur()
      The blur of the node.
      Since:
      Omix 1.5.13
    • transparency

      @OVLField double transparency()
      The transparency of the node.
      Since:
      Omix 1.5.13
    • hidden

      @OVLField boolean hidden()
      Visibility of the network component.
      Returns:
      hidden
    • collapsed

      @OVLField boolean collapsed()
      Collapsed-state of the network component. Possible values:
      • true - the component is forced to be collapsed even if the components are shown by default.
      • false - the component is forced to be visible even if the components are hidden by default.
      • null - the component is visible or collapsed dependent on the model settings.
      Returns:
      collapsed
      Since:
      Omix 1.9.0
    • paint

      @OVLField Paint paint()
      The fill appearance of the item's shape.
    • shadow

      @OVLField Shadow shadow()
      The shadow of the item.
    • strokeColor

      @OVLField Color strokeColor()
      The color for the stroke of the item's shape.
    • textStrokeColor

      @OVLField Color textStrokeColor()
      The color for the stroke of the item's text label.
    • strokeStyle

      @OVLField StrokeStyle strokeStyle()
      The paint style for the stroke of the item's shape.
    • shape

      @OVLField Shape shape()
      The appearance of the metabolite node in the diagram.
    • font

      @OVLField Font font()
      The font of the text label of the item.
    • fillLevelIndication

      @OVLField FillLevelIndication fillLevelIndication()
      The indication for filling of the item's shape.
    • textBrush

      @OVLField Brush textBrush()
      The fill brush of the item's text label.
      Since:
      Omix 1.8.0
    • graphicsEdges

      List<? extends GraphicsEdge> graphicsEdges()
      returns all graphics edges this node is connected with.
      Returns:
      unchangeable list of graphics edges
      Since:
      Omix 1.8.0
    • linkEdges

      List<? extends LinkEdge> linkEdges()
      returns all link edges this node is connected with.
      Returns:
      unchangeable list of link edges
      Since:
      Omix 2.0.0
    • network

      @Deprecated(since="Omix 2.0") @ReplacedBy("model()") default Model network()
      Deprecated.
      Returns the network this node belongs to.
      Returns:
      network
    • model

      Model model()
      Returns the model this item belongs to.
      Returns:
      model
    • getComment

      @Deprecated(since="Omix 2.0") default Comment getComment​(String identifier)
      Deprecated.
      Returns the item's comment with the given identifier if available, otherwise null.
      Parameters:
      identifier - of the comment item
      Returns:
      found comment item
    • comments

      @Deprecated default List<? extends Comment> comments()
      Deprecated.
      Returns an unchangeable List of all item's comments.
      Returns:
      list of comments