Class Rectangle


  • public class Rectangle
    extends GraphShape
    A GraphUI rectangle GraphShape

    GraphUI is GPU based and resolution independent.

    • Constructor Detail

      • Rectangle

        public Rectangle​(int renderModes,
                         float minX,
                         float minY,
                         float width,
                         float height,
                         float lineWidth,
                         float zPos)
        Create a rectangular Graph based GLRegion UI Shape.
        Parameters:
        renderModes - Graph's Region render modes, see create(..).
        minX -
        minY -
        width -
        height -
        lineWidth - line thickness, use zero for filled rectangle
        zPos -
      • Rectangle

        public Rectangle​(int renderModes,
                         com.jogamp.math.geom.AABBox abox,
                         float lineWidth)
        Create a rectangular Graph based GLRegion UI Shape.
        Parameters:
        renderModes - Graph's Region render modes, see create(..).
        abox -
        lineWidth - line thickness, use zero for filled rectangle
      • Rectangle

        public Rectangle​(int renderModes,
                         float minX,
                         float minY,
                         float width,
                         float height,
                         float lineWidth)
        Create a rectangular Graph based GLRegion UI Shape.
        Parameters:
        renderModes - Graph's Region render modes, see create(..).
        minX -
        minY -
        width -
        height -
        lineWidth - line thickness, use zero for filled rectangle
      • Rectangle

        public Rectangle​(int renderModes,
                         float width,
                         float height,
                         float lineWidth)
        Create a rectangular Graph based GLRegion UI Shape.
        Parameters:
        renderModes - Graph's Region render modes, see create(..).
        width -
        height -
        lineWidth - line thickness, use zero for filled rectangle
    • Method Detail

      • getX

        public final float getX()
      • getY

        public final float getY()
      • getZ

        public final float getZ()
      • getWidth

        public final float getWidth()
      • getHeight

        public final float getHeight()
      • getLineWidth

        public final float getLineWidth()
      • setPosition

        public void setPosition​(float minX,
                                float minY,
                                float zPos)
      • setDimension

        public void setDimension​(float width,
                                 float height,
                                 float lineWidth)
      • setBounds

        public void setBounds​(com.jogamp.math.geom.AABBox abox,
                              float lineWidth)