Class BNDnodeTheme.Buffer

    • Constructor Detail

      • Buffer

        public Buffer​(java.nio.ByteBuffer container)
        Creates a new BNDnodeTheme.Buffer instance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by BNDnodeTheme.SIZEOF, and its mark will be undefined.

        The created buffer instance holds a strong reference to the container object.

      • Buffer

        public Buffer​(long address,
                      int cap)
    • Method Detail

      • nodeSelectedColor

        public NVGColor nodeSelectedColor()
        Returns a NVGColor view of the nodeSelectedColor field.
      • wiresColor

        public NVGColor wiresColor()
        Returns a NVGColor view of the wiresColor field.
      • textSelectedColor

        public NVGColor textSelectedColor()
        Returns a NVGColor view of the textSelectedColor field.
      • activeNodeColor

        public NVGColor activeNodeColor()
        Returns a NVGColor view of the activeNodeColor field.
      • wireSelectColor

        public NVGColor wireSelectColor()
        Returns a NVGColor view of the wireSelectColor field.
      • nodeBackdropColor

        public NVGColor nodeBackdropColor()
        Returns a NVGColor view of the nodeBackdropColor field.
      • noodleCurving

        public int noodleCurving()
        Returns the value of the noodleCurving field.
      • nodeSelectedColor

        public BNDnodeTheme.Buffer nodeSelectedColor​(java.util.function.Consumer<NVGColor> consumer)
        Passes the nodeSelectedColor field to the specified Consumer.
      • wiresColor

        public BNDnodeTheme.Buffer wiresColor​(java.util.function.Consumer<NVGColor> consumer)
        Passes the wiresColor field to the specified Consumer.
      • textSelectedColor

        public BNDnodeTheme.Buffer textSelectedColor​(java.util.function.Consumer<NVGColor> consumer)
        Passes the textSelectedColor field to the specified Consumer.
      • activeNodeColor

        public BNDnodeTheme.Buffer activeNodeColor​(java.util.function.Consumer<NVGColor> consumer)
        Passes the activeNodeColor field to the specified Consumer.
      • wireSelectColor

        public BNDnodeTheme.Buffer wireSelectColor​(java.util.function.Consumer<NVGColor> consumer)
        Passes the wireSelectColor field to the specified Consumer.
      • nodeBackdropColor

        public BNDnodeTheme.Buffer nodeBackdropColor​(java.util.function.Consumer<NVGColor> consumer)
        Passes the nodeBackdropColor field to the specified Consumer.
      • noodleCurving

        public BNDnodeTheme.Buffer noodleCurving​(int value)
        Sets the specified value to the noodleCurving field.