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
5
votes
2 answers

R how to use bounds and the "port" algorithm in nlslist?

I would like to fit curves on a number of data sets, grouped by treatment. This was working very well with nlslist, but now I would like to introduce upper bounds to my parameters. Introducing bounds does work out very nicely when I fit each group…
5
votes
1 answer

JavaFX: Get visible area of ScrollPane

What I want to do: I've got a JavaFX ScrollPane and I need to determine the area visible in the ScrollPane. I know about ScrollPane.getViewPortBounds(), which allows me to get the size of the visible area, but not the position. Is there any way I…
midrare
  • 2,371
  • 28
  • 48
5
votes
2 answers

How to properly create a customized animated drawable?

Background I've been searching in plenty of places to find out how to animate a drawable without animating the view and without using the built in drawables. The reason is that I will need to prepare a customized animation within the drawable, and I…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
5
votes
2 answers

How to use fitBounds of GMaps.js

I am using GMaps.js and I have several points to show, I need to show all and set the zoom to the point, I was watching the documentation and requests an array of google.maps.LatLng type. I have the following code for (x in geo){ var item = new…
5
votes
1 answer

Excel VBA - assigning an array changes LBound and UBound

I have a some very large data sets in Excel that I need to parse through - and doing it in an array is faster than looping through the data in the worksheet. Loading all of the data into an array is causing memory problems (the data sets ARE that…
OldUgly
  • 2,129
  • 3
  • 13
  • 21
5
votes
1 answer

Fitting piecewise function in gnuplot

I want to fit multiple bounded functions in gnuplot, fitting the bound values as well. For example: f(x)=a (for x < b) f(x)=a+(x-b)**c (for x > b) fit f(x) 'data.dat' via a,b,c Is there a way to do this?
5
votes
1 answer

RegEx in Node/Javascript - how to get pattern match bounds?

Currently, I'm using regex in Javascript / Node via find() and that works for finding the beginning of the pattern. But I'd also like to be able to find out where the pattern ends. Is that possible?
ControlAltDel
  • 33,923
  • 10
  • 53
  • 80
5
votes
1 answer

View animation doesn't change touch area

After a TranslateAnimation, the OnClickListener on view translated is not translated. I tried overriding getHitRect in a custom LinearLayout but without success. I also tried to use a touchdelegate and all other suggestions found on the whole…
Jul
  • 1,039
  • 3
  • 12
  • 20
4
votes
2 answers

When does View obtain it's bounds?

I have a main Activity with TextView on it. I need perform some actions at application startup. These actions use TextView's bounds. I tryed override onCreate(), onStart() and onResume() methods, but TextView's bound are always (0,0). How can I…
4
votes
2 answers

Google Maps API Autocomplete bound to UK only

Possible Duplicate: limiting google maps autocomplete to UK address only If anyone with Google Maps API V3 experience can help me out it would be much appreciated - I've been stuck on this for hours. I'm trying to get my autocomplete to return UK…
Adam Moss
  • 5,582
  • 13
  • 46
  • 64
4
votes
2 answers

Control UIScrollView outside bounds?

I'm wondering how i can allow the user to scroll outside the bounds of a UIScrollView?
Andrew
  • 15,935
  • 28
  • 121
  • 203
4
votes
1 answer

Array bounds with 0-sized array in Fortran

When allocating zero-sized arrays in Fortran, I am getting counterintuitive behavior. This code: program test_zerosized implicit none integer, allocatable :: a(:),b(:) allocate(a(0)) print *, ' a lower bound = ',lbound(a,1) print *, ' a…
Federico Perini
  • 1,414
  • 8
  • 13
4
votes
1 answer

Calculate corners of rotated rectangle in container

I'm having some issues calculating the corners of a rotated rectangle within a rotated container with both having offset x/y co-ords. The pivot is off but I'm not sure of the solution. The following scenarios work: (x, y, rotation) image = 0, 0,…
ian.c
  • 288
  • 1
  • 2
  • 10
4
votes
3 answers

How to enable touches of a view outside bounds of its superview?

I have a container that has clipToBounds set to false and a view outside of its bounds. Touch events are not recognized for out of bounds views.
Adrian
  • 59
  • 3
4
votes
1 answer

Swift 4 - How to get bounds of a UIView after Using Constraints Programatically

I really need your help about this issue. I am creating a UIView object programatically without setting the bounds at the beggining. After creating I add constraints to that view in order to fit the required place in the screen. But the problem is…
Yagiz Ozen
  • 51
  • 1
  • 6