Class ViewRect

java.lang.Object
org.basex.gui.view.ViewRect

public class ViewRect extends Object
View rectangle.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    Height.
    int
    Level.
    int
    Rectangle pre value.
    int
    Width.
    int
    X position.
    int
    Y position.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    Default constructor.
    protected
    ViewRect(int x, int y, int w, int h)
    Simple rectangle constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    contains(int xx, int yy)
    Verifies if the specified coordinates are inside the rectangle.
    final String
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • x

      public int x
      X position.
    • y

      public int y
      Y position.
    • w

      public int w
      Width.
    • h

      public int h
      Height.
    • pre

      public int pre
      Rectangle pre value.
    • level

      public int level
      Level.
  • Constructor Details

    • ViewRect

      public ViewRect()
      Default constructor.
    • ViewRect

      protected ViewRect(int x, int y, int w, int h)
      Simple rectangle constructor.
      Parameters:
      x - x position
      y - y position
      w - width
      h - height
  • Method Details

    • contains

      public final boolean contains(int xx, int yy)
      Verifies if the specified coordinates are inside the rectangle.
      Parameters:
      xx - x position
      yy - y position
      Returns:
      result of check
    • toString

      public final String toString()
      Overrides:
      toString in class Object