Class GridSpan

    • Constructor Detail

      • GridSpan

        public GridSpan​(Span span)
        Creates a new GridSpan with the given Span size, and an offset of zero.
        Parameters:
        span - The span size for this GridSpan.
      • GridSpan

        public GridSpan​(Span span,
                        Node content)
        Creates a new GridSpan with the given Span size, the given content set as the initial content, and an offset of zero.
        Parameters:
        span - The span size for this GridSpan.
        content - The initial content for this GridSpan.
      • GridSpan

        public GridSpan​(Span span,
                        Offset offset,
                        Node content)
        Creates a new GridSpan with the given Span size, the given offset size, and the given content set as the initial content.
        Parameters:
        span - The span size for this GridSpan.
        offset - The offset for this GridSpan.
        content - The initial content for this GridSpan.
      • GridSpan

        public GridSpan​(Span span,
                        Offset offset,
                        Node content,
                        GridSpan... elements)
        Creates a new GridSpan with the given Span size, the given offset size, the given content set as the initial content, and zero or more embedded GridSpan elements.
        Parameters:
        span - The span size for this GridSpan.
        offset - The offset for this GridSpan.
        content - The initial content for this GridSpan.
        elements - Embedded GridSpan elements.
    • Method Detail

      • getContent

        public final Node getContent()
        Gets the value of the property content.
        Property description:
      • setContent

        public final void setContent​(Node value)
        Sets the value of the property content.
        Property description:
      • getSpan

        public final Span getSpan()
        Returns the Span of this GridSpan.
        Returns:
        The Span of this GridSpan.
      • getOffset

        public final Offset getOffset()
        Returns the Offset of this GridSpan.
        Returns:
        The Offset of this GridSpan.
      • computePrefHeight

        protected double computePrefHeight​(double width)
        Overrides:
        computePrefHeight in class Region
      • computeMaxHeight

        protected double computeMaxHeight​(double width)
        Overrides:
        computeMaxHeight in class Region