Class ExtentVisibilitySupport.ScreenExtent

  • Enclosing class:
    ExtentVisibilitySupport

    public static class ExtentVisibilitySupport.ScreenExtent
    extends java.lang.Object
    ScreenExtent represents a screen object's enclosing bounding box in screen coordinates, and that object's reference point in model coordinates. ExtentVisibilitySupport assumes that the relationship between the model reference point and the screen bounds are predicable: projecting the reference point into screen coordinates should yield a screen point with a predictable location relative to the screen bounds.
    • Constructor Summary

      Constructors 
      Constructor Description
      ScreenExtent​(Vec4 modelReferencePoint, java.awt.Rectangle screenBounds)
      Constructs a new ScreenExtent with the specified model coordinate reference point and screen coordinate bounding box.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Vec4 getModelReferencePoint()
      Returns the model coordinate reference point.
      java.awt.Rectangle getScreenBounds()
      Returns the screen coordinate bounding rectangle.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • modelReferencePoint

        protected Vec4 modelReferencePoint
      • screenBounds

        protected java.awt.Rectangle screenBounds
    • Constructor Detail

      • ScreenExtent

        public ScreenExtent​(Vec4 modelReferencePoint,
                            java.awt.Rectangle screenBounds)
        Constructs a new ScreenExtent with the specified model coordinate reference point and screen coordinate bounding box. Either value may be null.
        Parameters:
        modelReferencePoint - the model coordinate reference point. A null reference is accepted.
        screenBounds - the screen coordinate bounding rectangle. A null reference is accepted.
    • Method Detail

      • getModelReferencePoint

        public Vec4 getModelReferencePoint()
        Returns the model coordinate reference point. This may return null, indicating this ScreenExtent has no model coordinate reference point.
        Returns:
        the reference point in model coordinates. May be null.
      • getScreenBounds

        public java.awt.Rectangle getScreenBounds()
        Returns the screen coordinate bounding rectangle. This may return null, indicating the ScreenExtent has no screen coordinate bounds.
        Returns:
        the bounding rectangle in screen coordinates. May be null.