Questions tagged [bounds]

In user interfaces and graphics, bounds refer to the size and location of a window or view.

In user interfaces and graphics, bounds refers to the size and location of a window or view. In 2D graphics, this is broken down into four parts. Combinations often used include:

  • x-location, y-location, width, and height.
  • x-location, y-location, right, bottom.

Likewise, in 3D graphics, bounds are often broken into 6 components:

  • x, y, z, width, height, depth
769 questions
2
votes
1 answer

Why am I getting this error "Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1"

Here is my main class, I cannot figure out why I am getting an array out of bounds error. I know what the why it is going off. any help would be appreciated. it is just giving me that error and I cannot figure out why it is doing that this is the…
Zander
  • 84
  • 14
2
votes
1 answer

Creating simplified bounds with an inaccuracy threshold

Given a set of non-rotated AABB bounds, I'm hoping to create a simpler set of bounds from the original set, that allows for a specified amount of inaccuracy. Some examples: I'm working with this in Unity with Bounds, but it's just basic AABB…
Nition
  • 43
  • 5
2
votes
2 answers

Bound a Leaflet map to many layers

I have a leaflet map with many layers and each layer has many objects. Is there a way to fit the map bounds so that all objects in all layers are visible?
T.G. Dallas
  • 113
  • 1
  • 6
2
votes
1 answer

JavaFX ScrollPane update viewportBounds on scroll

I have a very large image I'm trying to display in JavaFX. To do this, I've split the image into several smaller ones, and only loading/displaying the parts that are visible in my ScrollPane. To detect the area visible in the ScrollPane, I'm adding…
midrare
  • 2,371
  • 28
  • 48
2
votes
0 answers

Minimization leastsq bounds

I m using a least square minimization in order to fit a lot of parameters, but, the results are little surprising, i think it could be due to minimization. Indeed, when i modify the initialization terms, the results are different... In a first time…
user3601754
  • 3,792
  • 11
  • 43
  • 77
2
votes
3 answers

OpenGL ES 1 + iOS 8 = layer.bounds messed?

Since I've installed the Xcode 6.0.1 I'm having my OpenGL ES 1 layer displayed incorrectly on any simulated device (as well as on real hardware: iPhone 4S with iOS 8) – wrong size and position of the layer. Changing the glViewport parameters doesn't…
Tom
  • 261
  • 2
  • 17
2
votes
1 answer

Limit resizable bounds for other OS X apps' windows

I'm developing an app that would need to sit below the menu bar. The window would be global but if a window was maximized, I wouldn't want the window to cover my window. Alternately if my window was global I wouldn't want it to cover any other…
2
votes
1 answer

Bridge methods in Java generics. Is this example correct?

Let's say I have this generic class: class Item { private T item; public void set(T item) { this.item = item; } public T get() { return item; } } If I create 2 instances like this: Item intItem = new…
Kami
  • 1,079
  • 2
  • 13
  • 28
2
votes
1 answer

How to find exact bounds of an application content using jna?

I couldn't able to find bounds of an application content. I'm trying to move mouse to an exact location on the application content using java. For this purpose I need to find location on the application window. Used application for this process has…
shyos
  • 1,390
  • 1
  • 16
  • 29
2
votes
1 answer

MapBox Static Map API - Zoom Level/Bounds

I am exploring replacing a Google Maps Static Maps call with MapBox. With Google, you can retrieve a static map w/o specifying a center or a zoom level, and it will find the zoom level and center that fits your markers. I am looking for the same…
2
votes
1 answer

Bounds vs Frame when making a custom view and initializing it

I'm having some difficulties understanding the difference, and when to use what. I know the textbook definitions. I have also searched a lot regarding this very topic. Some answers here on SO were helpful to some extent, but I feel I still don't…
Nilzone-
  • 2,766
  • 6
  • 35
  • 71
2
votes
2 answers

Can I make the frame of my UIView match its great grandparent?

I get frame/bounds at the simple level. Still trying to move up to a more advanced use... I have a view stack that looks something like: The UICollectionViewCell is actually my own subclass. I've set it's selectionBackgroundView as a stock UIView,…
Travis Griggs
  • 21,522
  • 19
  • 91
  • 167
2
votes
1 answer

Determing bounds of a data.table column based on previous values

I have an (apparently simple) problem but I cannot seem to find a way of solving it. Here is a basic…
Nikos
  • 3,267
  • 1
  • 25
  • 32
2
votes
3 answers

Get a UIView’s bounds relative to the window?

I have a few UIButton instances inside a UIView, which in turn is inside the main UIView of the app. What I’m trying to get is a CGRect of one of the buttons’ frames, relative to the window. So, for instance, if my inner view is at 50, 50 in…
Luke
  • 9,512
  • 15
  • 82
  • 146
2
votes
1 answer

Determine whether the mouse is over a control? (over a Control pixel range)

I'm trying to write a function that should determine whether the mouse is over a range in pixels (the pixel range of a specific Control) The problem is that the function only works for the bounds of the Form, don't work for buttons or any other…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417