| 1 | /* | |
| 2 | * Licensed to the Apache Software Foundation (ASF) under one | |
| 3 | * or more contributor license agreements. See the NOTICE file | |
| 4 | * distributed with this work for additional information | |
| 5 | * regarding copyright ownership. The ASF licenses this file | |
| 6 | * to you under the Apache License, Version 2.0 (the | |
| 7 | * "License"); you may not use this file except in compliance | |
| 8 | * with the License. You may obtain a copy of the License at | |
| 9 | * | |
| 10 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 11 | * | |
| 12 | * Unless required by applicable law or agreed to in writing, | |
| 13 | * software distributed under the License is distributed on an | |
| 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
| 15 | * KIND, either express or implied. See the License for the | |
| 16 | * specific language governing permissions and limitations | |
| 17 | * under the License. | |
| 18 | */ | |
| 19 | package org.apache.empire.db.expr.compare; | |
| 20 | ||
| 21 | import java.util.Set; | |
| 22 | ||
| 23 | import org.apache.empire.db.DBColumn; | |
| 24 | import org.apache.empire.db.DBCommand; | |
| 25 | import org.apache.empire.db.DBCommandExpr; | |
| 26 | import org.apache.empire.db.DBDatabase; | |
| 27 | import org.slf4j.Logger; | |
| 28 | import org.slf4j.LoggerFactory; | |
| 29 | ||
| 30 | ||
| 31 | /** | |
| 32 | * This class is used for building up the SQL-Command for the EXISTS syntax. | |
| 33 | * <P> | |
| 34 | * | |
| 35 | * | |
| 36 | */ | |
| 37 | public class DBExistsExpr extends DBCompareExpr | |
| 38 | { | |
| 39 | private final static long serialVersionUID = 1L; | |
| 40 | private static final Logger log = LoggerFactory.getLogger(DBExistsExpr.class); | |
| 41 | | |
| 42 | public final DBCommandExpr cmd; | |
| 43 | public final DBCompareExpr compareExpr; | |
| 44 | ||
| 45 | /** | |
| 46 | * Constructs a DBExistsExpr object set the specified parameters to this object. | |
| 47 | * | |
| 48 | * @param cmd the DBCommandExpr object | |
| 49 | */ | |
| 50 | public DBExistsExpr(DBCommandExpr cmd) | |
| 51 | { | |
| 52 | this(cmd, null); | |
| 53 | } | |
| 54 | ||
| 55 | /** | |
| 56 | * Constructs a DBExistsExpr object set the specified parameters to this object. | |
| 57 | * | |
| 58 | * @param cmd the DBCommandExpr object | |
| 59 | * @param compareExpr The expression to append to the end of the exists statement | |
| 60 | */ | |
| 61 | public DBExistsExpr(DBCommandExpr cmd, DBCompareExpr compareExpr) | |
| 62 | { | |
| 63 | this.cmd = cmd; | |
| 64 | this.compareExpr = compareExpr; | |
| 65 | } | |
| 66 | ||
| 67 | /** | |
| 68 | * Returns the current DBDatabase object. | |
| 69 | * | |
| 70 | * @return the current DBDatabase object | |
| 71 | */ | |
| 72 | @Override | |
| 73 | public DBDatabase getDatabase() | |
| 74 | { | |
| 75 |
1
1. getDatabase : replaced return value with null for org/apache/empire/db/expr/compare/DBExistsExpr::getDatabase → NO_COVERAGE |
return cmd.getDatabase(); |
| 76 | } | |
| 77 | ||
| 78 | /** | |
| 79 | * @see org.apache.empire.db.DBExpr#addReferencedColumns(Set) | |
| 80 | */ | |
| 81 | @Override | |
| 82 | public void addReferencedColumns(Set<DBColumn> list) | |
| 83 | { | |
| 84 | // nothing to do | |
| 85 | } | |
| 86 | ||
| 87 | /** | |
| 88 | * Creates the SQL-Command. | |
| 89 | * | |
| 90 | * @param buf the SQL-Command | |
| 91 | * @param context the current SQL-Command context (CTX_DEFAULT, CTX_SELECT, CTX_NAME, CTX_VALUE) | |
| 92 | */ | |
| 93 | @Override | |
| 94 | public void addSQL(StringBuilder buf, long context) | |
| 95 | { | |
| 96 | // Name Only ? | |
| 97 |
2
1. addSQL : Replaced bitwise AND with OR → NO_COVERAGE 2. addSQL : negated conditional → NO_COVERAGE |
if ((context & CTX_VALUE) == 0) |
| 98 | { | |
| 99 | log.warn("cannot add name only of exits expression"); | |
| 100 | return; | |
| 101 | } | |
| 102 | // Value Only ? | |
| 103 |
2
1. addSQL : Replaced bitwise AND with OR → NO_COVERAGE 2. addSQL : negated conditional → NO_COVERAGE |
if ((context & CTX_NAME) == 0) |
| 104 | { | |
| 105 | log.warn("cannot add value only of exits expression"); | |
| 106 | return; | |
| 107 | } | |
| 108 | buf.append(" exists ("); | |
| 109 |
1
1. addSQL : removed call to org/apache/empire/db/DBCommandExpr::getSelect → NO_COVERAGE |
cmd.getSelect(buf); |
| 110 | ||
| 111 |
1
1. addSQL : negated conditional → NO_COVERAGE |
if (compareExpr != null) |
| 112 | { | |
| 113 |
2
1. addSQL : negated conditional → NO_COVERAGE 2. addSQL : negated conditional → NO_COVERAGE |
if (cmd instanceof DBCommand && ((DBCommand) cmd).getWhereConstraints() == null) |
| 114 | { | |
| 115 | buf.append(" where "); | |
| 116 | } | |
| 117 | else | |
| 118 | { | |
| 119 | buf.append(" and "); | |
| 120 | } | |
| 121 | buf.append("("); | |
| 122 |
1
1. addSQL : removed call to org/apache/empire/db/expr/compare/DBCompareExpr::addSQL → NO_COVERAGE |
compareExpr.addSQL(buf, context); |
| 123 | buf.append(") "); | |
| 124 | } | |
| 125 | buf.append(") "); | |
| 126 | } | |
| 127 | | |
| 128 | /** | |
| 129 | * Returns wheter the constraint should replace another one or not. | |
| 130 | * @return true it the constraints are mutually exclusive or false otherwise | |
| 131 | */ | |
| 132 | @Override | |
| 133 | public boolean isMutuallyExclusive(DBCompareExpr other) | |
| 134 | { | |
| 135 |
1
1. isMutuallyExclusive : negated conditional → NO_COVERAGE |
if (other instanceof DBExistsExpr) |
| 136 | { | |
| 137 | DBExistsExpr o = (DBExistsExpr)other; | |
| 138 |
2
1. isMutuallyExclusive : negated conditional → NO_COVERAGE 2. isMutuallyExclusive : negated conditional → NO_COVERAGE |
if (cmd==o.cmd && compareExpr==o.compareExpr) |
| 139 |
1
1. isMutuallyExclusive : replaced boolean return with false for org/apache/empire/db/expr/compare/DBExistsExpr::isMutuallyExclusive → NO_COVERAGE |
return true; |
| 140 | } | |
| 141 |
1
1. isMutuallyExclusive : replaced boolean return with true for org/apache/empire/db/expr/compare/DBExistsExpr::isMutuallyExclusive → NO_COVERAGE |
return false; |
| 142 | } | |
| 143 | | |
| 144 | } | |
Mutations | ||
| 75 |
1.1 |
|
| 97 |
1.1 2.2 |
|
| 103 |
1.1 2.2 |
|
| 109 |
1.1 |
|
| 111 |
1.1 |
|
| 113 |
1.1 2.2 |
|
| 122 |
1.1 |
|
| 135 |
1.1 |
|
| 138 |
1.1 2.2 |
|
| 139 |
1.1 |
|
| 141 |
1.1 |


FOR KEEPS
Celtic transfer news: Neil Lennon to urge board to sign £90k-a-week Forster from Southampton permanently
by Robert GrieveNEIL LENNON will urge the Celtic board to splash the cash to sign Fraser Forster from Southampton.
The England keeper is on loan at Parkhead until the end of the season.
But after Forster’s heroics against Rangers in Sunday’s Betfred Cup final, Lennon wants to sign him for keeps.
The 31-year-old is paid £90,000 a week with the Premier League strugglers with two and a half years still to run on his contract.
Celts pay a significant percentage of his current salary as things stand — but Lennon is hopeful a deal can be thrashed out to bring the keeper back to the club next season.
He said: “It’s about affordability but that’s something we can talk about.
“I’ll talk to the player but first we have to make the call to Southampton and I’ll need to speak to Peter Lawwell about that.
“Is it beyond us? I don’t know. Would I love to do it? Of course, but we have to be realistic at times and we can’t go overboard either.
“We have to be prudent but we have him right now and it’s fantastic because he’s definitely made us better.”
Lennon signed Forster on a loan deal and there’s NOT a clause in the agreement which would allow Saints to recall the keeper next month.
He added: “If we only have him for a year, we’ll try to enjoy him while he’s here.
“He’s really happy - you can see that in his body language.
Lennon insists Forster should be back in contention for the England squad and urged Gareth Southgate to give him a recall.
He added: “I think he’s better now than he was before and I certainly think Gareth should have a look at him. He’s been unbelievable. He’s more mature.
“He just wasn’t getting beat on Sunday, just not getting beat.
“He was absolutely remarkable and to do that in the context of a final, speaks volumes for his talent.
“He’s done it in Europe as well against a class side like Lazio, who beat Juventus the other night. It speaks volumes for the performance we put in when we were away and also at home.
“He is definitely in brilliant form and better than first time round.
“So, yes, I think he should be looked at regarding England and yes, we have to see on the other question.”
Lennon will now REST Forster for Thursday’s meaningless game against Cluj in Romania with Craig Gordon set to play.
He added: “What I’ve got now are three top-class goalkeepers.
“It’s difficult for Craig because he’s not done a lot wrong and, to be fair, Scotty Bain hasn’t, either.
“The opportunity to sign Fraser came around and I just thought ‘I can’t miss out on this one’ and, thankfully, it’s turned out to be the right call.
“I’m going to start Craig in Thursday to give him a game and keep him motivated and ticking over.
“It’s very difficult with goalkeepers but it was my call and sometimes you have to make these decisions for what you think is best for the team and the club.”


--- layout: post title: Setting up a Slice with Wordpress date: '2010-04-02T10:24:00.000-07:00' author: Rimas Silkaitis tags: - wordpress - php modified_time: '2010-04-02T10:39:24.335-07:00' blogger_id: tag:blogger.com,1999:blog-6201986.post-4050314894222865515 blogger_orig_url: http://neovintage.blogspot.com/2010/04/setting-up-slice-with-wordpress.html ---
The whole point of this post is to get Wordpress installed on your slice at Slicehost as quickly as possible. This was my first time doing so and I figured I should create a shell script to complete the process if my slice ever crashed and burned. Skip to the bottom if you want to get right to it.
I love Slicehost. The plans are relatively inexpensive and you know what you're going to get. Recently, my wife wanted to setup a blog and I really didn't feel comfortable setting it up for her on a shared host. She likes it when websites are responsive, who doesn't.
I wanted to keep my costs to a minimum on slicehost, so I opted for the 256 slice. That being said, I needed to keep the memory usage as low as possible. That meant that Apache was out the door and in came nginx. It's been a while since I've had to install php. Let's face it, I'm a ruby guy. Anyway, I'll review the setup and then tell you what the install script does and the assumptions made.
Enjoy the script!


Yesterday at 4:32 PM
Lorem ipsum dolor sit amet, consectetur...
Welcome back to the Association to Benefit Children
Attending middle school and recently won an award for best-behaved student.
More Info
Just entered high school in Brooklyn. Chairperson of entrepreneurship club.
It was a lovely dinner with 150 kids and 30 volunteers. Everyone was so happy.


username
password
{{error_verify}}
{{login_empty_error}}
{{username_not_present}}
I agree to dubhacking's policies.


Gallery
About
Contact
Contact Us
National Museum of Mexican Art
1852 W. 19th Street Chicago, IL 60608 Phone: 312.738.150


‹
›
‹
›
×
Update Required
To play the media you will need to either update your browser to a recent version or update your
Flash plugin
.
Owner
Access
Like
Comment
Tags


A visualization of sound as a measure of engagement.
So here's the story:
I went to the University of Iowa Obermann Center working symposium Designing the Digital Future and it was pretty awe inspiring.
I was surrounded by many great thinkers doing some great things.
The symposium was kicked off by Celine Latulipe from the Human Computer Interaction Lab at UNC Charlotte. While I really enjoyed the talk, one of interesting asides was related to her work on Sound Interaction.
When she started the talk, she opened up what I'll call a sound-reactive canvas. As the audience made noise by asking questions, laughing, clapping, or otherwise sharing their engagement audibly, the application painted dots across the screen. At the end of her talk she showed us what our engagement over the talk looked like.
This small, but significant, part of the symposium was something that I latched onto and decided to work with.
This is what I ended up with:
These are visualizations captured while we watched "Heartless" the 8th episode of Sleepy Hollow season 2.
But this wounldn't be a technical post without a discussion of how I got there.
You can skip ahead by visiting the SoundCanvas and playing with the demo.
You can also play with the code by forking this github project or play with the jsfiddle in your browser.
First step
The first step is actually deciding to do things, so I'll share one quick thing. I wanted to do, and did, most of this work with my 10 year old daughter helping me explore code and even taking over the keyboard a couple of times. We explored artistic sensibilities of the project together too.
Finding a place to start
I wanted to take advantage of some of the things I've done recently with D3, but I couldn't really justify using svg and the full d3 framework when I thought I might be able to do this in a simpler way. With Amazon's Echo just out, we had been playing with google now in chrome earlier in the day, so I know we could take advantage of browser microphone input. I just didn't know how.
We did some exploring and eventually found an example of how to use the microphone input on Web Apprentice.
It is a pretty good explanation of the code necessary to request access to the microphone and start using the input.
Take a minute to visit that site, check out the code and come back here when you are ready.
Here is some of the code we changed:
function drawTimeDomain() { var minValue = 9999999; var maxValue = 0; for (var i = 0; i < amplitudeArray.length; i++) { var value = amplitudeArray[i] / 256; if(value > maxValue) { maxValue = value; } else if(value < minValue) { minValue = value; } } var y_lo = canvasHeight - (canvasHeight * minValue) - 1; var y_hi = canvasHeight - (canvasHeight * maxValue) - 1; ctx.fillStyle = '#ffffff'; ctx.fillRect(column,y_lo, 1, y_hi - y_lo); // loop around the canvas when we reach the end column += 1; if(column >= canvasWidth) { column = 0; clearCanvas(); } }
What it does on the Web Apprentice tutorial is draw thin lines from the maximum amplitude (y_hi) to the minimum amplitude (y_lo) scaled to the output canvas for each time slice of the microphone input resulting in a pretty standard looking waveform analysis. Pretty slick.
But we want circles!
Here is our version of the same method.
function drawTimeDomain() { ctx.fillStyle = config.randomColor(); var centerX = column + config.wobble(); var centerY = row + config.wobble(); var radius = config.radiusFromAmplitudeArray(amplitudeArray); //draw a circle on the canvas grid including the wobble ctx.beginPath(); ctx.arc(centerX, centerY, radius, 0, 2 * Math.PI, false); ctx.fill(); // loop around the canvas when we reach the end column += config.gridStep; if (column >= config.canvasWidth) { column = 30; row += config.gridStep; if (row >= config.canvasHeight) { if (config.addScaled) redraw(); column = redrawColumn; row = redrawRow; } } }
You'll notice that it is quite a bit different, so we'll go through a couple of lines of code.
ctx.fillStyle = config.randomColor();
This generates a random color by using the power of the internets and a config object setup at the top of the code which defines randomColor as:
randomColor: function () { return '#' + Math.floor(Math.random() * 16777215).toString(16); }
Go read the post linked above for an explanation.
We continue to define the position for the center of the circles based on a loop around a grid of the canvas that sets the column and row to position the next circle. If we left it at that, we would end up with perfectly overlapping centers for circles. Here comes the artistry that is defined in the config object as:
wobble: function () { return Math.floor(Math.random() * config.wobbleFactor) - Math.floor(config.wobbleFactor / 2); }
Randomness for the win! We subtract half of the wobble factor to allow for negative numbers. This allows the center of the circle to move up and down, left or right of the grid position on the canvas.
The wobbleFactor is just a number. We set it to 50 after playing with it for a while.
What about the size of the circles you ask?
The code:
var radius = config.radiusFromAmplitudeArray(amplitudeArray);
Takes care of that, so, don't worry about it.
I worry about the size enough for all of us.
This was actually one of the harder parts. Initially my daughter and I just used a simple formula for the radius which used the y_hi and scaled it to fit. It was simple, elegant even.... And then, true confessions of a dead-beat dad, I broke it by trying to make it better. I hadn't kicked up git yet, so I was out of luck to put it back. So I had to re-engineer it. I'm trying to live that one down.
radiusFromAmplitudeArray: function (amplitudeArray) { var max = 0; var min = 99999; for (var i = 0; i < amplitudeArray.length; i++) { max = max < amplitudeArray[i] ? amplitudeArray[i] : max; min = min > amplitudeArray[i] ? amplitudeArray[i] : min; } var diff = Math.abs(max - min); var radius = config.scaleRadius(diff); //console.log ("min: " + min + " max: " + max + " diff: " + diff + " radius: " + radius); return Math.abs(radius); }
Similar to the original code we get the max and the min for the amplitude. We don't scale it by dividing by 256 like the original code. We get the difference between the two and then we scale it using Math. Notice the capital M. It is important. ScaleRadius is defined as:
scaler: function () { return config.circleRange() / config.amplitudeRange(); }, scaleRadius: function (r) { return config.scaler() * (r - config.amplitudeMin) + config.circleMin; }
The circleRange is the difference between the maximum and minimum circle size we want and the amplitudeRange is the minumum and maximum range we expect to get.
If you want to know how that formula works, we found a good Math StackOverflow. Think back to how you learned to scale temperature scales of Celsius and Fahrenheit. Same thing.
A final note
I like working with my daughter on coding projects. We've done a few together for a few years now. One thing we like to do is to take all the numbers in a piece of unfamiliar code and tinker with them so we can identify what they do when we run the code again. We extend that to web colors too. Once we figure them out we create variables for them and move them up to a central portion of the code. Recently, I've started making config objects to hold the variables so you'll see that in our version of the code. It also happens to make the code easier to tinker with again.
Here is the complete config object for this piece of code:
var config = { sampleSize: 4096 * .25, // number of samples to collect before analyzing // decreasing this gives a faster sonogram, increasing it slows it down gridStep: 50, // canvas grid x and y steps canvasWidth: 1000, // needs to be in lockstep with css value at the time the canvas object is created canvasHeight: 700, // otherwise the circles are scaled strangely wobbleFactor: 50, // moves the center of the circles within a random orbit around the grid points of the canvas circleMax: 100, // maximum size of a circle circleMin: 1, // minimum size of a circle amplitudeMax: 300, // what the maximum amplitude might be amplitudeMin: 0.0, // what the minimum amplitude might be transparency: 0.75, // the transparency of the circles addScaled: false, // copy the scaled image to the top corner for each cycle. // functions to calculate various things below including the wobble of the positioning of the circles, // the radius of the circles // and the color of the circles. wobble: function () { return Math.floor(Math.random() * config.wobbleFactor) - Math.floor(config.wobbleFactor / 2); }, amplitudeRange: function () { return config.amplitudeMax - config.amplitudeMin; }, circleRange: function () { return config.circleMax - config.circleMin; }, scaler: function () { return config.circleRange() / config.amplitudeRange(); }, radiusFromAmplitudeArray: function (amplitudeArray) { var max = 0; var min = 99999; for (var i = 0; i < amplitudeArray.length; i++) { max = max < amplitudeArray[i] ? amplitudeArray[i] : max; min = min > amplitudeArray[i] ? amplitudeArray[i] : min; } var diff = Math.abs(max - min); var radius = config.scaleRadius(diff); //console.log ("min: " + min + " max: " + max + " diff: " + diff + " radius: " + radius); return Math.abs(radius); }, scaleRadius: function (r) { return config.scaler() * (r - config.amplitudeMin) + config.circleMin; }, randomColor: function () { return '#' + Math.floor(Math.random() * 16777215).toString(16); } }
It isn't the prettiest piece of code, but it gets the job done.
Have fun with this. Star the github repo if you had fun.
Wait, where do I go from here?
You read all the way to the end? You get to follow the same links as those folks who cheated, but you get extra points!
You can visitthe SoundCanvas and playing with the demos.
You can also play with the code by forking this github project or play with the jsfiddle in your browser.


--- title: Blog permalink: "/blog/" layout: default dark-theme: true --- {% include navbar.html %}
Excerpt here


Number of Retransmissions
The number of minor timeouts and retransmissions that must occur before a major timeout occurs.
When a major timeout occurs, the file operation is either aborted or a "server not responding" message is printed on the console.
mount option: retrans
default: 3


Sure, we are all unique and a category does not define who we are. This does not mean that attempts to categorize our mental constructs have no value. For instance, it helps being more aware of our own predispositions. Predispositions are neither good nor bad. So why would we need to be more aware of them? Because they can become a detriment to our life if we let them be arbitrary tendencies, preventing us from acting according to conditions.
One of those attempts is the Gregorc's mind style model. I took the test here, and I scored equally high on Concrete Sequential and Abstract Sequential.
According to Gregorc's model, I would learn best when:
- In a structured and stimulating environment,
- Facing predictable situations,
- Relying on others to complete a task,
- Working alone.
On the other hand, I would find it hard when:
- In an unorganized environment,
- Following incomplete or unclear directions,
- With no predictable outcome,
- With too little time to deal with a subject thoroughly,
- Working in groups,
- Expressing my emotions,
- Being diplomatic to convince others,
- Not monopolizing a conversation.
This makes me more aware that I try very hard to have control over everything I do. When working or pairing with others, I now realize that I use a lot of energy to be in control in very subtle ways. As a result, I feel nervous before and drained after. I intend to be more willing to truly relinquish control, and still be engaged. Thanks, Anthony Gregorc!


This PHC tracker is meant to give a general overview of the services, personnel, sanitary conditions and general satisfaction derived in using the facility.
Click on the boxes below and choose from the list of drop downs and where it does not apply, please type your response.
Also you can upload pictures, keep clicking till you get to submit.
The hospital was quite good. Very well designed ward rooms and the nurses were very professional.
The hospital was quite good. Very well designed ward rooms and the nurses were very professional.
The hospital was quite good. Very well designed ward rooms and the nurses were very professional.
{{track.comment}}


Streaming is a special @x:Act optimization that provides incremental execution.
For example consider a call to file read function whose result is passed to file write function. This would look like outname.write#file(inname.read#file()). The entire contents of the file is returned by read and then passed to write. This can be a problem for really large files. Streaming causes the reads and writes to be automatically broken into a number of smaller chunks, so main memory use is bounded by chunk size not overall file size.
The read operation is said to be a source and the write operation is said to be sink. A list of sources and sinks is given in later subsections.
The streaming optimization is under control of the optimize @x:Act interpreter option.
Assignment of a source to a variable or constant or passing it as an actual parameter prevents streaming (since the named target can be referenced in more than one place). However, if the result of a function body is a source then the result of calling the function is also a source.
Streaming can impact debugging since previously streamed chunks are not visible. It is often useful to turn off optimize when debugging. On the other hand, when debugging and looking at execution output, streaming causes that output to appear sooner.


Quickstart¶
PyImgBatch is a batch image processor for python including a command line interface.
Installation¶
For installation open a terminal and type the following line into the command line.
pip install pyimgbatch
Usage on command line¶
The simplest usage is to change to the folder containing the images with
cd /folder/wit/images
and type
pyimgbatch --width 300
This will resize all supported image files in the current folder to a width of 300 pixels respecting the aspect ratio of the source file. The results will be written to a “dest” subfolder.
Alternatively, you can set a source folder with the images to be converted and/or a destination folder for the results as follow.
pyimgbatch --source source_folder --dest destination_folder --height 400
or shorter
pyimgbatch -s source_folder -d destination_folder --height 400
This will convert the images from the source_folder to a height of 400px and stores the results in the destination folder.
Note: For every source image a subfolder will be created inside the destination_folder. To avoid this behavior use the –nosubfolder argument.
Project Files¶
One of PyImgBatch features is to create multiple different versions from given image files.
For this, you can use project files. Project files are JSON files containing the specifications for the image processing.
The very short one¶
Here an example of a very short one.
[
{ "width": 1000, "suffix": ".w1000" },
{ "height": 1200, "suffix": ".h1200" }
]
For example (may the project named “myprj.json”):
pyimgbatch -c myprj.json
produces the following output:
processing: french-bulldog-4530685.jpg
creating: french-bulldog-4530685.w1000.jpg
creating: french-bulldog-4530685.h1200.jpg
processing: coast-4478424.jpg
creating: coast-4478424.w1000.jpg
creating: coast-4478424.h1200.jpg
...
processing: beaded-2137080_1920-cmyk-iso-eci.tif
creating: beaded-2137080_1920-cmyk-iso-eci.w1000.jpg
creating: beaded-2137080_1920-cmyk-iso-eci.h1200.jpg
...
and creates two images per source images, resized to the specified width or height with suffix added to the original name.
The short one¶
Imagine, you need to create different sizes for all your images for your web project. For instance, you need the images in widths 180px, 300px, 400px and one in a height of 800 and each 2x and 3x the size for higher pixel density display like in smartphones.
An example could look as follow.
{
"name": "web set",
"comment": "some sample pictures",
"source": "webset/source",
"dest": "webset/dest",
"prefix": "web.",
"configs": [
{ "width": 180, "suffix": ".w180", "webset": "@3x" },
{ "width": 300, "suffix": ".w300", "webset": "@3x" },
{ "width": 400, "suffix": ".w400", "webset": "@3x" },
{ "height": 800, "prefix": "preview.", "webset": "@3x" }
]
}
This will create 12 destination images for each imput image. For a image “lama-4540160.jpg” you get:
...
creating<EMAIL_ADDRESS>creating<EMAIL_ADDRESS>creating<EMAIL_ADDRESS>creating<EMAIL_ADDRESS>creating<EMAIL_ADDRESS>creating<EMAIL_ADDRESS>creating<EMAIL_ADDRESS>creating<EMAIL_ADDRESS>creating<EMAIL_ADDRESS>creating<EMAIL_ADDRESS>creating<EMAIL_ADDRESS>creating<EMAIL_ADDRESS>...
As you see you can specify defaults, so you don’t need to repeat yourself.
The more specific option is used instead of the more general one. So in this example, all images get the prefix “web.” except the last, because the more specific prefix is here given as “preview.”
Hint: The file names are a little strange because I’ve downloaded the from the free image stock `pixabay <https://pixabay.com>`__ and I haven’t changed the Name so you can search for the pics or the photographer if you want.
Full image project file¶
looks as follow.
{
"comment": "pyImgBatch demo project",
"debug": true,
"no-progess": false,
"projects": [
{
"name": "web set",
"comment": "some sample pictures",
"source": "webset/source",
"dest": "webset/dest",
"prefix": "web.",
"configs": [
{ "width": 180, "suffix": ".w180", "webset": "@3x" },
{ "width": 300, "suffix": ".w300", "webset": "@3x" },
{ "width": 400, "suffix": ".w400", "webset": "@3x" },
{ "height": 800, "prefix": "preview.", "webset": "@3x" }
]
},
{
"name": "images to thumbnails",
"source": "to-thumbnails/originals",
"dest": "to-thumbnails/thumbnails",
"subfolder": false,
"prefix": "thumb.",
"configs": [
{"height": 300},
{"prefix": "smallthumb.", "height": 200}
]
}
]
}
This project contains two projects.


I’ve really enjoyed walking around Woods Hole during the time I’ve been here. I’d visited here once before coming to SEA Semester, but it was only in passing since I came to catch a ferry to Martha’s Vineyard. Although it’s a small town, there were a lot of fun things to see, and it was only a short bike ride away from campus. Unfortunately, a lot of things were closed for the winter, but the things that remained open were still cool to look at.
One of the things I’ve appreciated most is being near the water - there were docks and beaches everywhere! I’ve never lived this close to the beach before, but it was really relaxing to be able to bike there whenever (unfortunately, we were in class for most daylight hours, which made it difficult to come by often - still grateful nonetheless)
And with lots of water and boats, you get lighthouses!
Also caught a nice photo of Falmouth’s downtown area…
There was also a small aquarium with some cool looking fish on display.
Woods Hole is also home to the Marine Biological Laboratory, which had a library with some really old books in it. During one of our field trips, we got to see books from their special collections, which included some one-of-a-kind illustrations, handwritten journals and logbooks, and books that were printed using a printing press.
I’m definitely going to miss seeing all of this, but I’m also super excited for the next part of our journey. Before flying out though, I do want to bike around Woods Hole one more time since I don’t know if/when I’ll get the chance to again. Just added it to my calendar for tomorrow afternoon!


Monday April 9, 2018 at 7pm in Courant, room 512 Janice Lathen, founding director and president of Powering Potential, uses technology to enhance education in underdeveloped countries.


A B C D E F G I L M N O P R S T V W _
All Classes All Packages
All Classes All Packages
All Classes All Packages
S
- Scientist - Class in crewManagement
-
Represents the Scientist type of crew member.
- Scientist(String) - Constructor for class crewManagement.Scientist
-
Sets the name of the current crew member.
- Scout - Class in crewManagement
-
Represents the Scout type of crew member.
- Scout(String) - Constructor for class crewManagement.Scout
-
Sets the name of the current crew member.
- SelectedIconListener - Class in mainGui
-
Represents the selected ship icon on the setup screen
- SelectedIconListener(JPanel, int, int) - Constructor for class mainGui.SelectedIconListener
- selectPlanet(int) - Method in class environment.Environment
- setHealth(int) - Method in class crewManagement.Captain
-
This Method is to set the Health of the crew member relative to the specialization.
- setHealth(int) - Method in class crewManagement.CrewMember
- setHealth(int) - Method in class crewManagement.Engineer
-
This Method is to set the Health of the crew member relative to the specialization.
- setHealth(int) - Method in class crewManagement.Medic
-
This Method is to set the Health of the crew member relative to the specialization.
- setHealth(int) - Method in class crewManagement.Pilot
-
This Method is to set the Health of the crew member relative to the specialization.
- setHealth(int) - Method in class crewManagement.Scientist
-
This Method is to set the Health of the crew member relative to the specialization.
- setHealth(int) - Method in class crewManagement.Scout
-
This Method is to set the Health of the crew member relative to the specialization.
- setHunger(int) - Method in class crewManagement.Captain
-
Set the hunger of this crew member to certain amount
- setHunger(int) - Method in class crewManagement.CrewMember
- setHunger(int) - Method in class crewManagement.Engineer
-
Set the hunger of this crew member to certain amount
- setHunger(int) - Method in class crewManagement.Medic
-
Set the hunger of this crew member to certain amount
- setHunger(int) - Method in class crewManagement.Pilot
-
Set the hunger of this crew member to certain amount
- setHunger(int) - Method in class crewManagement.Scientist
-
Set the hunger of this crew member to certain amount
- setHunger(int) - Method in class crewManagement.Scout
-
Set the hunger of this crew member to certain amount
- setInfection() - Method in class crewManagement.Captain
-
Will set infected to true if current crew member is not already infected.
- setInfection() - Method in class crewManagement.CrewMember
- setInfection() - Method in class crewManagement.Engineer
-
Will set infected to true if current crew member is not already infected.
- setInfection() - Method in class crewManagement.Medic
-
Will set infected to true if current crew member is not already infected.
- setInfection() - Method in class crewManagement.Pilot
-
Will set infected to true if current crew member is not already infected.
- setInfection() - Method in class crewManagement.Scientist
-
Will set infected to true if current crew member is not already infected.
- setInfection() - Method in class crewManagement.Scout
-
Will set infected to true if current crew member is not already infected.
- setTiredness(int) - Method in class crewManagement.Captain
-
Set the tiredness of this crew member to certain amount
- setTiredness(int) - Method in class crewManagement.CrewMember
- setTiredness(int) - Method in class crewManagement.Engineer
-
Set the tiredness of this crew member to certain amount
- setTiredness(int) - Method in class crewManagement.Medic
-
Set the tiredness of this crew member to certain amount
- setTiredness(int) - Method in class crewManagement.Pilot
-
Set the tiredness of this crew member to certain amount
- setTiredness(int) - Method in class crewManagement.Scientist
-
Set the tiredness of this crew member to certain amount
- setTiredness(int) - Method in class crewManagement.Scout
-
Set the tiredness of this crew member to certain amount
- SetupScreen - Class in mainGui
-
Represents and application window that will act as the main entry point to the game, where a user can set the game parameters when starting a new game.
- SetupScreen(GuiManager) - Constructor for class mainGui.SetupScreen
-
Initialize the setup screen
- ShipPart - Class in items
-
The class implementation of the item ShipPart
- ShipPart() - Constructor for class items.ShipPart
- ShipStatus - Class in mainGui
-
Represents the status of all crew members
- ShipStatus(MainScreen) - Constructor for class mainGui.ShipStatus
-
Create the panel.
- size() - Method in class crewManagement.Crew
-
Returns the current number of crews
- sleep() - Method in class crewManagement.Captain
-
Crew Member sleeps becoming less tired by 80 units
- sleep() - Method in class crewManagement.CrewMember
- sleep() - Method in class crewManagement.Engineer
-
Crew Member sleeps becoming less tired by 80 units
- sleep() - Method in class crewManagement.Medic
-
Crew Member sleeps becoming less tired by 80 units
- sleep() - Method in class crewManagement.Pilot
-
Crew Member sleeps becoming less tired by 80 units
- sleep() - Method in class crewManagement.Scientist
-
Crew Member sleeps becoming less tired by 80 units
- sleep() - Method in class crewManagement.Scout
-
Crew Member sleeps becoming less tired by 80 units
- SmallHP - Class in items
-
The class implementation of the item SmallHP
- SmallHP() - Constructor for class items.SmallHP
- SpacePills - Class in items
-
The class implementation of the item SpacePills
- SpacePills() - Constructor for class items.SpacePills
- SpacePlague - Class in gameEvents
-
Space Plague event has 33% chance to be picked by Random Event handler A random crew member may be picked out to be infected All crew members has an equal chance to be infected
- SpacePlague() - Constructor for class gameEvents.SpacePlague
-
Constructor for the Space Plague calling initialize method
- SpaceShip - Class in crewManagement
-
Represents the Medic type of crew member.
- startGame() - Method in class mainGui.GuiManager
-
Launches the SetupScreen which will be the entry point to the game.
- startNewDay() - Method in class management.GameManager
All Classes All Packages


curl_easy_duphandle - Clone a libcurl session handle
SYNOPSIS
#include <curl/curl.h>
CURL *curl_easy_duphandle(CURL *handle);
DESCRIPTION
This function will return a new curl handle, a duplicate,
using all the options previously set in the input curl
handle. Both handles can subsequently be used indepen-
dently and they must both be freed with
curl_easy_cleanup().
All strings that the input handle has been told to point
to (as opposed to copy) with previous calls to
curl_easy_setopt using char * inputs, will be pointed to
by the new handle as well. You must therefore make sure to
keep the data around until both handles have been cleaned
up.
The new handle will not inherit any state information, no
connections, no SSL sessions and no cookies.
Note that even in multi-threaded programs, this function
must be called in a synchronous way, the input handle may
not be in use when cloned.
This function was added in libcurl 7.9.
RETURN VALUE
If this function returns NULL, something went wrong and no
valid handle was returned.
SEE ALSO
curl_easy_init(3),curl_easy_cleanup(3),curl_global_init(3)
BUGS
Surely there are some, you tell me!
Man(1) output converted with
man2html


Before Change
Mark a worker as disconnected and send a message to all agents in
his conversation that a partner has disconnected.
agent = self.mturk_agents[worker_id][assignment_id]
assignments = self.worker_state[worker_id].assignments
// Disconnect in conversation is not workable
assignments[assignment_id].status = AssignState.STATUS_DISCONNECT
// in conversation, inform others about disconnect
conversation_id = assignments[assignment_id].conversation_id
if agent in self.conv_to_agent[conversation_id]:
for other_agent in self.conv_to_agent[conversation_id]:
if agent.assignment_id != other_agent.assignment_id:
After Change
Mark a worker as disconnected and send a message to all agents in
his conversation that a partner has disconnected.
agent = self._get_agent(worker_id, assignment_id)
if agent is None:
self._log_missing_agent(worker_id, assignment_id)
else:
// Disconnect in conversation is not workable
agent.state.status = AssignState.STATUS_DISCONNECT
// in conversation, inform others about disconnect
conversation_id = agent.conversation_id
if agent in self.conv_to_agent[conversation_id]:
for other_agent in self.conv_to_agent[conversation_id]:
if agent.assignment_id != other_agent.assignment_id:
self._handle_partner_disconnect(
other_agent.worker_id,
other_agent.assignment_id
)
if len(self.mturk_agent_ids) > 1:
// The user disconnected from inside a conversation with
// another turker, record this as bad behavoir
self._handle_bad_disconnect(worker_id)
def _handle_partner_disconnect(self, worker_id, assignment_id):
Send a message to a worker notifying them that a partner has
disconnected and we marked the HIT as complete for them


Your account will not be completed until you have read and affirmatively accepted our Terms Of Use located at www.nutaku.net/terms and our Privacy Policy and by checking the applicable boxes on the account creation page.
1.1 Information Automatically Logged
We use your IP address to help diagnose problems with our server and to administer Nutaku.net (hereinafter known as "the Website"). The Website also uses Google Analytics to track user IDs and demographics for advertising purposes. This does not involve the collection of your personally identifiable information. You may Opt-out of all Google Analytics tracking with the following URL To opt out of Google user ID tracking, please click here.
When visitors or members (collectively referred to as "you", "users", "your") come to the Website, we may automatically collect certain information from their computers or mobile devices, such as the type of computer operating system (e.g., Windows XP or Mac OS), the visitor's IP address, the web browser (e.g., Internet Explorer, Safari, Chrome and Firefox), UDID (for certain mobile devices), information about the websites visited before and after visiting the Website, information collected through the use of unique identifiers such as cookies, information regarding the Internet service provider, and other standard server log information ("Computer Information").
1.2 Cookies, Web Beacons, Flash Cookies and Web Logs
When you log into the Website, we set a persistent cookie, which will allow us to recognize you as an existing registered user and avoid the need to log into the Website again. You may clear these cookies in your browser after a session in which you have logged in.
We may use other cookies, web beacons, tokens or similar technologies (collectively referred to as "Tracking Technologies"). "Cookies" (which may be html files, Flash files or other technology) are text files that help store user preferences and activity. "Web beacons" (also known as image tags, gif or web bugs) are small pieces of code used to collect advertising data, such as counting page views, promotion views or advertising responses. "Tokens" are unique persistent identifiers that are generated and sent from a server to a user's device to identify an interaction session, such as the authentication for a user's cable provider service, and which are usually stored as an HTTP cookie. We and/or third parties may use Tracking Technologies to collect Computer Information automatically as you browse the Website and the web.
1.3 Do Not Track
Some browsers have a “do not track” feature that lets you tell websites that you do not want to have your online activities tracked. At this time, we do not respond to browser “do not track” signals.
1.4 Personally Identifiable Information
We do not collect any personally identifiable information about you unless you voluntarily submit such information to us. “Personally identifiable information” includes individually identifiable information about an individual consumer collected online by us from the individual, including any of the following: (1) a first and last name; (2) a physical address, including without limitation a street name and name of a city or town; (3) an e-mail address; (4) a telephone or fax number; or (5) any other identifier that permits the physical or online contacting of a specific individual. The types of personally identifiable information that we may request include your name, address, e-mail address, and telephone number. We may store your personally identifiable information alongside non-personally identifiable information about you. We may store your personally identifiable information in multiple countries.
Our Website's registration form requires users to give us contact information (email address), and demographic information (such as their age and gender). Contact information from these forms is used to get in touch with the customer when necessary. Users may opt-out of receiving future mailings; see the choice/opt-out section below. Unique identifiers are collected from Website visitors to verify the user's identity and for use as account numbers in our record system. Demographic and profile data is also collected on our Website. If your account is linked to illegal activity or personal threats, your registration info will be made available to law enforcement personnel.
Credit card information is processed via secure server and not saved on our servers. Probiller is verified by Verisign as a trusted vendor.
All financial and payment data will only be shared with the Website's third party processors in order to initiate and complete any orders placed on your account. All credit card transactions and such are processed with industry standard encryption through third party processors. We take reasonable steps to ensure that said processors only use your information for that purpose. All financial data and information shall be considered private information and we will not share it with third parties except with your authorization or when necessary to carry out all and any transactions requested you with the understanding that such transactions may be subject to rules, terms, conditions and policies of a third party. All such information provided directly by you to a third party are not governed by this Privacy Policy. All such information provided to a third party is subject to their terms and conditions.
Your e-mail address may be used by to communicate special offers and other relevant information such as new services, subscription information, etc. In addition, there may be occasions when a subscriber will be presented with special offers either from us or from third-party service or content providers, which may include requests for consent to receive e-mail solicitations, communications, newsletters, commercial advertising, or other promotional or special event materials. If you are logged in when purchasing from the store, your order history will be saved.
This Website contains links to other sites. We are not responsible for the privacy practices or the content of such Websites.
4.1 Public Forums
This Website makes chat rooms, forums, message boards, and/or news groups available to its users. Please remember that any information that is disclosed in these areas becomes public information and you should exercise caution when deciding to disclose your personal information.
4.2 Social Platform Registrations and Social Media Plugins
Some sites permit or require users to register or log into their account via a social networking platform such as Login with Facebook or Flux, or permit you to use social media plugins such as the Facebook "Like" or Google "+1" buttons. When you use these social networking platforms and plugins, your username and password for the services and other information available about you or collected from you on these services may be shared with us.
When you use social networking platforms and plugins, you share your information with them and their privacy policy applies to their collection, use, and disclosure of such information. In addition, they may be able to collect information about you, including your activity on these sites, and they may notify your connections on the social networking platform about your use on the sites. Such services may also employ unique identifiers which allow your activity to be monitored across multiple websites for purposes of delivering more targeted advertising to you. Please note that their privacy policies may be different from our own and we encourage you to read them.
We may use any information provided to us by a user, including personally identifiable information, along with any data gathered from our web logs and from third parties to conduct investigations, and we may disclose this information to third parties, including law enforcement officials, investigators, or private parties seeking to protect and enforce their rights, if we have a good faith belief that it is necessary to comply with a court order, judicial proceeding, legal process, subpoena or warrant; we have a good faith belief that it is necessary to exercise our legal rights or defend against legal claims; or we believe that your actions violate the law or our Terms of Use or threaten the rights, property, or safety of our company, our users, or others.
Contacting the Website If you have any questions about this privacy statement, the practices of this site, or your dealings with site, you may contact:
We typically use your information to deliver products to you and to improve the design and performance of the Website. We may use your information to deliver to you, among other things, communications, newsletters and marketing materials from us. Your information may also be used to contact you when necessary.
Except as otherwise set forth in this Privacy Policy, we will not provide access to your personally identifiable information to third parties for any purpose.
By using the service, you do consent to us providing your information to third parties, including without limitation those third parties discussed in this Privacy Policy, that assist us in the operation and delivery of our Website, products and services. We will take reasonable steps to require any such third parties to comply with the terms of this Privacy Policy.
Your information will remain subject to the terms of this Privacy Policy even if we undergo a business transition. However, we may transfer your information to a successor person or entity upon an acquisition or other corporate reorganization. You hereby consent to such transfers, and we may assign and transfer all of the rights, benefits, duties, and obligations of this Privacy Policy.
We may disclose your information if, among other things, we have a good faith belief that we are required to do so by law or if acting with a good faith belief that such disclosure is reasonably necessary to: (1) comply with legal process; (2) enforce this Policy or the Terms; (3) respond to legal claims; (4) respond to your requests for customer services or transaction completion; or (5) protect the rights, property or personal safety of Nutaku, the Website’s users or the public.
If you do not want us to share or disclose your information as stated herein, please do not use the Website or submit personally identifiable information.
We cannot always ensure that such changes or modifications will be reflected in all iterations of your information as previously stored
Choice/Opt-Out Our Website provides users the opportunity to opt-out of receiving promotional/marketing information from our partners, and us. This may be done from the account options page.
Data Quality/Access This Website gives users the option of changing and modifying information previously provided. This may be done from the account options page. We cannot always ensure that such changes or modifications will be reflected in all iterations of your information as previously stored.
California Civil Code Section 1798.83 permits Users who are California residents to request certain information regarding its disclosure of personally identifiable information to third parties for their direct marketing purposes. To make such a request, please write to us at:However, at this time we do not share any of your personally identifiable information with third parties for direct marketing purposes.
We take steps to safeguard and deter unauthorized access to your information. Although we take reasonable measures to safeguard against unauthorized disclosures of your information, no e-commerce platform, website, electronic database or system is completely secure.


|
Java™ Platform Standard Ed. 6 |
|||||||||
| PREV NEXT | FRAMES NO FRAMES |
| Packages that use Rectangle | |
|---|---|
| java.awt | Contains all of the classes for creating user interfaces and for painting graphics and images. |
| java.awt.event | Provides interfaces and classes for dealing with different types of events fired by AWT components. |
| java.awt.font | Provides classes and interface relating to fonts. |
| java.awt.geom | Provides the Java 2D classes for defining and performing operations on objects related to two-dimensional geometry. |
| java.awt.im | Provides classes and interfaces for the input method framework. |
| java.awt.im.spi | Provides interfaces that enable the development of input methods that can be used with any Java runtime environment. |
| java.awt.image | Provides classes for creating and modifying images. |
| java.beans | Contains classes related to developing beans -- components based on the JavaBeansTM architecture. |
| javax.accessibility | Defines a contract between user-interface components and an assistive technology that provides access to those components. |
| javax.imageio | The main package of the Java Image I/O API. |
| javax.swing | Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms. |
| javax.swing.border | Provides classes and interface for drawing specialized borders around a Swing component. |
| javax.swing.plaf | Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities. |
| javax.swing.plaf.basic | Provides user interface objects built according to the Basic look and feel. |
| javax.swing.plaf.metal | Provides user interface objects built according to the Java look and feel (once codenamed Metal), which is the default look and feel. |
| javax.swing.plaf.multi | Provides user interface objects that combine two or more look and feels. |
| javax.swing.plaf.synth | Synth is a skinnable look and feel in which all painting is delegated. |
| javax.swing.table | Provides classes and interfaces for dealing with
javax.swing.JTable . |
| javax.swing.text | Provides classes and interfaces that deal with editable and noneditable text components. |
| javax.swing.text.html | Provides the class HTMLEditorKit and supporting classes
for creating HTML text editors. |
| javax.swing.tree | Provides classes and interfaces for dealing with
javax.swing.JTree . |
| Uses of Rectangle in java.awt |
|---|
| Fields in java.awt declared as Rectangle | |
|---|---|
protected Rectangle |
Polygon.bounds
The bounds of this Polygon . |
| Methods in java.awt that return Rectangle | |
|---|---|
Rectangle |
Component.bounds()
Deprecated. As of JDK version 1.1, replaced by getBounds() . |
Rectangle |
Polygon.getBoundingBox()
Deprecated. As of JDK version 1.1, replaced by getBounds() . |
Rectangle |
MenuComponent.AccessibleAWTMenuComponent.getBounds()
Gets the bounds of this object in the form of a Rectangle object. |
Rectangle |
List.AccessibleAWTList.AccessibleAWTListChild.getBounds()
Gets the bounds of this object in the form of a Rectangle object. |
Rectangle |
Rectangle.getBounds()
Gets the bounding Rectangle of this Rectangle . |
abstract Rectangle |
GraphicsConfiguration.getBounds()
Returns the bounds of the GraphicsConfiguration
in the device coordinates. |
Rectangle |
Component.getBounds()
Gets the bounds of this component in the form of a Rectangle object. |
Rectangle |
Component.AccessibleAWTComponent.getBounds()
Gets the bounds of this object in the form of a Rectangle object. |
Rectangle |
SplashScreen.getBounds()
Returns the bounds of the splash screen window as a Rectangle . |
Rectangle |
Polygon.getBounds()
Gets the bounding box of this Polygon . |
Rectangle |
Shape.getBounds()
Returns an integer Rectangle that completely encloses the
Shape . |
Rectangle |
Component.getBounds(Rectangle rv)
Stores the bounds of this component into "return value" rv and return rv. |
Rectangle |
TextComponent.AccessibleAWTTextComponent.getCharacterBounds(int i)
Determines the bounding box of the character at the given index into the string. |
abstract Rectangle |
Graphics.getClipBounds()
Returns the bounding rectangle of the current clipping area. |
Rectangle |
Graphics.getClipBounds(Rectangle r)
Returns the bounding rectangle of the current clipping area. |
Rectangle |
Graphics.getClipRect()
Deprecated. As of JDK version 1.1, replaced by getClipBounds() . |
Rectangle |
Frame.getMaximizedBounds()
Gets maximized bounds for this frame. |
Rectangle |
GraphicsEnvironment.getMaximumWindowBounds()
Returns the maximum bounds for centered Windows. |
Rectangle |
Rectangle.intersection(Rectangle r)
Computes the intersection of this Rectangle with the
specified Rectangle . |
Rectangle |
Rectangle.union(Rectangle r)
Computes the union of this Rectangle with the
specified Rectangle . |
| Methods in java.awt with parameters of type Rectangle | |
|---|---|
void |
Rectangle.add(Rectangle r)
Adds a Rectangle to this Rectangle . |
protected void |
GridBagLayout.adjustForGravity(GridBagConstraints constraints,
Rectangle r)
Adjusts the x, y, width, and height fields to the correct values depending on the constraint geometry and pads. |
protected void |
GridBagLayout.AdjustForGravity(GridBagConstraints constraints,
Rectangle r)
This method is obsolete and supplied for backwards compatability only; new code should call adjustForGravity instead. |
boolean |
Rectangle.contains(Rectangle r)
Checks whether or not this Rectangle entirely contains
the specified Rectangle . |
PaintContext |
LinearGradientPaint.createContext(ColorModel cm,
Rectangle deviceBounds,
Rectangle2D userBounds,
AffineTransform transform,
RenderingHints hints)
Creates and returns a PaintContext used to
generate the color pattern. |
PaintContext |
TexturePaint.createContext(ColorModel cm,
Rectangle deviceBounds,
Rectangle2D userBounds,
AffineTransform xform,
RenderingHints hints)
Creates and returns a context used to generate the color pattern. |
PaintContext |
SystemColor.createContext(ColorModel cm,
Rectangle r,
Rectangle2D r2d,
AffineTransform xform,
RenderingHints hints)
Creates and returns a PaintContext used to generate
a solid color pattern. |
PaintContext |
RadialGradientPaint.createContext(ColorModel cm,
Rectangle deviceBounds,
Rectangle2D userBounds,
AffineTransform transform,
RenderingHints hints)
Creates and returns a PaintContext used to
generate the color pattern. |
PaintContext |
GradientPaint.createContext(ColorModel cm,
Rectangle deviceBounds,
Rectangle2D userBounds,
AffineTransform xform,
RenderingHints hints)
Creates and returns a context used to generate the color pattern. |
PaintContext |
Paint.createContext(ColorModel cm,
Rectangle deviceBounds,
Rectangle2D userBounds,
AffineTransform xform,
RenderingHints hints)
Creates and returns a PaintContext used to
generate the color pattern. |
PaintContext |
Color.createContext(ColorModel cm,
Rectangle r,
Rectangle2D r2d,
AffineTransform xform,
RenderingHints hints)
Creates and returns a PaintContext used to generate a solid
color pattern. |
BufferedImage |
Robot.createScreenCapture(Rectangle screenRect)
Creates an image containing pixels read from the screen. |
Rectangle |
Component.getBounds(Rectangle rv)
Stores the bounds of this component into "return value" rv and return rv. |
Rectangle |
Graphics.getClipBounds(Rectangle r)
Returns the bounding rectangle of the current clipping area. |
abstract boolean |
Graphics2D.hit(Rectangle rect,
Shape s,
boolean onStroke)
Checks whether or not the specified Shape intersects
the specified Rectangle , which is in device
space. |
Rectangle |
Rectangle.intersection(Rectangle r)
Computes the intersection of this Rectangle with the
specified Rectangle . |
boolean |
Rectangle.intersects(Rectangle r)
Determines whether or not this Rectangle and the specified
Rectangle intersect. |
void |
MenuComponent.AccessibleAWTMenuComponent.setBounds(Rectangle r)
Sets the bounds of this object in the form of a Rectangle object. |
void |
Window.setBounds(Rectangle r)
Moves and resizes this component to conform to the new bounding rectangle r . |
void |
List.AccessibleAWTList.AccessibleAWTListChild.setBounds(Rectangle r)
Sets the bounds of this object in the form of a Rectangle object. |
void |
Rectangle.setBounds(Rectangle r)
Sets the bounding Rectangle of this Rectangle
to match the specified Rectangle . |
void |
Component.setBounds(Rectangle r)
Moves and resizes this component to conform to the new bounding rectangle r . |
void |
Component.AccessibleAWTComponent.setBounds(Rectangle r)
Sets the bounds of this object in the form of a Rectangle object. |
void |
Frame.setMaximizedBounds(Rectangle bounds)
Sets the maximized bounds for this frame. |
Rectangle |
Rectangle.union(Rectangle r)
Computes the union of this Rectangle with the
specified Rectangle . |
| Constructors in java.awt with parameters of type Rectangle | |
|---|---|
Rectangle(Rectangle r)
Constructs a new Rectangle , initialized to match
the values of the specified Rectangle . |
| Uses of Rectangle in java.awt.event |
|---|
| Methods in java.awt.event that return Rectangle | |
|---|---|
Rectangle |
PaintEvent.getUpdateRect()
Returns the rectangle representing the area which needs to be repainted in response to this event. |
| Methods in java.awt.event with parameters of type Rectangle | |
|---|---|
void |
PaintEvent.setUpdateRect(Rectangle updateRect)
Sets the rectangle representing the area which needs to be repainted in response to this event. |
| Constructors in java.awt.event with parameters of type Rectangle | |
|---|---|
PaintEvent(Component source,
int id,
Rectangle updateRect)
Constructs a PaintEvent object with the specified
source component and type. |
| Uses of Rectangle in java.awt.font |
|---|
| Methods in java.awt.font that return Rectangle | |
|---|---|
Rectangle |
GlyphVector.getGlyphPixelBounds(int index,
FontRenderContext renderFRC,
float x,
float y)
Returns the pixel bounds of the glyph at index when this GlyphVector is rendered in a Graphics with the
given FontRenderContext at the given location. |
Rectangle |
TextLayout.getPixelBounds(FontRenderContext frc,
float x,
float y)
Returns the pixel bounds of this TextLayout when
rendered in a graphics with the given
FontRenderContext at the given location. |
Rectangle |
GlyphVector.getPixelBounds(FontRenderContext renderFRC,
float x,
float y)
Returns the pixel bounds of this GlyphVector when
rendered in a graphics with the given
FontRenderContext at the given location. |
| Uses of Rectangle in java.awt.geom |
|---|
| Methods in java.awt.geom that return Rectangle | |
|---|---|
Rectangle |
QuadCurve2D.getBounds()
Returns an integer Rectangle that completely encloses the
Shape . |
Rectangle |
CubicCurve2D.getBounds()
Returns an integer Rectangle that completely encloses the
Shape . |
Rectangle |
Area.getBounds()
Returns a bounding Rectangle that completely encloses
this Area . |
Rectangle |
Path2D.getBounds()
Returns an integer Rectangle that completely encloses the
Shape . |
Rectangle |
Line2D.getBounds()
Returns an integer Rectangle that completely encloses the
Shape . |
Rectangle |
RectangularShape.getBounds()
Returns an integer Rectangle that completely encloses the
Shape . |
| Uses of Rectangle in java.awt.im |
|---|
| Methods in java.awt.im that return Rectangle | |
|---|---|
Rectangle |
InputMethodRequests.getTextLocation(TextHitInfo offset)
Gets the location of a specified offset in the current composed text, or of the selection in committed text. |
| Uses of Rectangle in java.awt.im.spi |
|---|
| Methods in java.awt.im.spi with parameters of type Rectangle | |
|---|---|
void |
InputMethod.notifyClientWindowChange(Rectangle bounds)
Notifies this input method of changes in the client window location or state. |
| Uses of Rectangle in java.awt.image |
|---|
| Methods in java.awt.image that return Rectangle | |
|---|---|
Rectangle |
Raster.getBounds()
Returns the bounding Rectangle of this Raster. |
| Methods in java.awt.image with parameters of type Rectangle | |
|---|---|
WritableRaster |
Raster.createCompatibleWritableRaster(Rectangle rect)
Create a compatible WritableRaster with location (minX, minY) and size (width, height) specified by rect, a new SampleModel, and a new initialized DataBuffer. |
Raster |
BufferedImage.getData(Rectangle rect)
Computes and returns an arbitrary region of the BufferedImage . |
Raster |
RenderedImage.getData(Rectangle rect)
Computes and returns an arbitrary region of the RenderedImage. |
| Constructors in java.awt.image with parameters of type Rectangle | |
|---|---|
Raster(SampleModel sampleModel,
DataBuffer dataBuffer,
Rectangle aRegion,
Point sampleModelTranslate,
Raster parent)
Constructs a Raster with the given SampleModel, DataBuffer, and parent. |
|
WritableRaster(SampleModel sampleModel,
DataBuffer dataBuffer,
Rectangle aRegion,
Point sampleModelTranslate,
WritableRaster parent)
Constructs a WritableRaster with the given SampleModel, DataBuffer, and parent. |
| Uses of Rectangle in java.beans |
|---|
| Methods in java.beans with parameters of type Rectangle | |
|---|---|
void |
PropertyEditorSupport.paintValue(Graphics gfx,
Rectangle box)
Paint a representation of the value into a given area of screen real estate. |
void |
PropertyEditor.paintValue(Graphics gfx,
Rectangle box)
Paint a representation of the value into a given area of screen real estate. |
| Uses of Rectangle in javax.accessibility |
|---|
| Methods in javax.accessibility that return Rectangle | |
|---|---|
Rectangle |
AccessibleComponent.getBounds()
Gets the bounds of this object in the form of a Rectangle object. |
Rectangle |
AccessibleText.getCharacterBounds(int i)
Determines the bounding box of the character at the given index into the string. |
Rectangle |
AccessibleExtendedText.getTextBounds(int startIndex,
int endIndex)
Returns the bounding rectangle of the text between two indices. |
| Methods in javax.accessibility with parameters of type Rectangle | |
|---|---|
void |
AccessibleComponent.setBounds(Rectangle r)
Sets the bounds of this object in the form of a Rectangle object. |
| Uses of Rectangle in javax.imageio |
|---|
| Fields in javax.imageio declared as Rectangle | |
|---|---|
protected Rectangle |
IIOParam.sourceRegion
The source region, on null if none is set. |
| Methods in javax.imageio that return Rectangle | |
|---|---|
Rectangle |
IIOParam.getSourceRegion()
Returns the source region to be used. |
protected static Rectangle |
ImageReader.getSourceRegion(ImageReadParam param,
int srcWidth,
int srcHeight)
A utility method that may be used by readers to compute the region of the source image that should be read, taking into account any source region and subsampling offset settings in the supplied ImageReadParam . |
| Methods in javax.imageio with parameters of type Rectangle | |
|---|---|
protected static void |
ImageReader.computeRegions(ImageReadParam param,
int srcWidth,
int srcHeight,
BufferedImage image,
Rectangle srcRegion,
Rectangle destRegion)
Computes the source region of interest and the destination region of interest, taking the width and height of the source image, an optional destination image, and an optional ImageReadParam into account. |
void |
ImageWriter.prepareReplacePixels(int imageIndex,
Rectangle region)
Prepares the writer to handle a series of calls to the replacePixels methods. |
void |
IIOParam.setSourceRegion(Rectangle sourceRegion)
Sets the source region of interest. |
| Uses of Rectangle in javax.swing |
|---|
| Methods in javax.swing that return Rectangle | |
|---|---|
static Rectangle |
SwingUtilities.calculateInnerArea(JComponent c,
Rectangle r)
Stores the position and size of the inner painting area of the specified component in r and returns r . |
static Rectangle[] |
SwingUtilities.computeDifference(Rectangle rectA,
Rectangle rectB)
Convenience returning an array of rect representing the regions within rectA that do not overlap with rectB . |
static Rectangle |
SwingUtilities.computeIntersection(int x,
int y,
int width,
int height,
Rectangle dest)
Convenience to calculate the intersection of two rectangles without allocating a new rectangle. |
static Rectangle |
SwingUtilities.computeUnion(int x,
int y,
int width,
int height,
Rectangle dest)
Convenience method that calculates the union of two rectangles without allocating a new rectangle. |
static Rectangle |
SwingUtilities.convertRectangle(Component source,
Rectangle aRectangle,
Component destination)
Convert the rectangle aRectangle in source coordinate system to
destination coordinate system. |
Rectangle |
JTree.AccessibleJTree.AccessibleJTreeNode.getBounds()
|
Rectangle |
JTable.AccessibleJTable.AccessibleJTableCell.getBounds()
|
Rectangle |
JList.AccessibleJList.AccessibleJListChild.getBounds()
|
Rectangle |
JComponent.getBounds(Rectangle rv)
Stores the bounds of this component into "return value" rv and returns rv . |
Rectangle |
JTabbedPane.getBoundsAt(int index)
Returns the tab bounds at index . |
protected Rectangle |
DefaultDesktopManager.getBoundsForIconOf(JInternalFrame f)
The iconifyFrame() code calls this to determine the proper bounds for the desktopIcon. |
Rectangle |
JList.getCellBounds(int index0,
int index1)
Returns the bounding rectangle, in the list's coordinate system, for the range of cells specified by the two indices. |
Rectangle |
JTable.getCellRect(int row,
int column,
boolean includeSpacing)
Returns a rectangle for the cell that lies at the intersection of row and column . |
Rectangle |
ProgressMonitor.AccessibleProgressMonitor.getCharacterBounds(int i)
Determines the bounding box of the character at the given index into the string. |
Rectangle |
JSpinner.AccessibleJSpinner.getCharacterBounds(int i)
Determines the bounding box of the character at the given index into the string. |
Rectangle |
JLabel.AccessibleJLabel.getCharacterBounds(int i)
Determine the bounding box of the character at the given index into the string. |
Rectangle |
AbstractButton.AccessibleAbstractButton.getCharacterBounds(int i)
Determine the bounding box of the character at the given index into the string. |
Rectangle |
DebugGraphics.getClipBounds()
Overrides Graphics.getClipBounds . |
Rectangle |
RepaintManager.getDirtyRegion(JComponent aComponent)
Return the current dirty region for a component. |
static Rectangle |
SwingUtilities.getLocalBounds(Component aComponent)
Return the rectangle (0,0,bounds.width,bounds.height) for the component aComponent |
Rectangle |
JInternalFrame.getNormalBounds()
If the JInternalFrame is not in maximized state, returns
getBounds() ; otherwise, returns the bounds that the
JInternalFrame would be restored to. |
Rectangle |
JTree.getPathBounds(TreePath path)
Returns the Rectangle that the specified node will be drawn
into. |
protected Rectangle |
DefaultDesktopManager.getPreviousBounds(JInternalFrame f)
Gets the normal bounds of the component prior to the component being maximized. |
Rectangle |
JTree.getRowBounds(int row)
Returns the Rectangle that the node at the specified row is
drawn in. |
Rectangle |
JScrollPane.getViewportBorderBounds()
Returns the bounds of the viewport's border. |
Rectangle |
ScrollPaneLayout.getViewportBorderBounds(JScrollPane scrollpane)
Deprecated. As of JDK version Swing1.1 replaced by JScrollPane.getViewportBorderBounds() . |
Rectangle |
JViewport.getViewRect()
Returns a rectangle whose origin is getViewPosition
and size is getExtentSize . |
Rectangle |
JComponent.getVisibleRect()
Returns the Component 's "visible rectangle" - the
intersection of this component's visible rectangle,
new Rectangle(0, 0, getWidth(), getHeight()) ,
and all of its ancestors' visible rectangles. |
| Methods in javax.swing with parameters of type Rectangle | |
|---|---|
static Rectangle |
SwingUtilities.calculateInnerArea(JComponent c,
Rectangle r)
Stores the position and size of the inner painting area of the specified component in r and returns r . |
protected boolean |
JViewport.computeBlit(int dx,
int dy,
Point blitFrom,
Point blitTo,
Dimension blitSize,
Rectangle blitPaint)
Computes the parameters for a blit where the backing store image currently contains oldLoc in the upper left hand corner
and we're scrolling to newLoc . |
static Rectangle[] |
SwingUtilities.computeDifference(Rectangle rectA,
Rectangle rectB)
Convenience returning an array of rect representing the regions within rectA that do not overlap with rectB . |
static Rectangle |
SwingUtilities.computeIntersection(int x,
int y,
int width,
int height,
Rectangle dest)
Convenience to calculate the intersection of two rectangles without allocating a new rectangle. |
static Rectangle |
SwingUtilities.computeUnion(int x,
int y,
int width,
int height,
Rectangle dest)
Convenience method that calculates the union of two rectangles without allocating a new rectangle. |
void |
JComponent.computeVisibleRect(Rectangle visibleRect)
Returns the Component 's "visible rect rectangle" - the
intersection of the visible rectangles for this component
and all of its ancestors. |
static Rectangle |
SwingUtilities.convertRectangle(Component source,
Rectangle aRectangle,
Component destination)
Convert the rectangle aRectangle in source coordinate system to
destination coordinate system. |
Rectangle |
JComponent.getBounds(Rectangle rv)
Stores the bounds of this component into "return value" rv and returns rv . |
int |
JTree.getScrollableBlockIncrement(Rectangle visibleRect,
int orientation,
int direction)
Returns the amount for a block increment, which is the height or width of visibleRect , based on orientation . |
int |
JTable.getScrollableBlockIncrement(Rectangle visibleRect,
int orientation,
int direction)
Returns visibleRect.height or
visibleRect.width ,
depending on this table's orientation. |
int |
JList.getScrollableBlockIncrement(Rectangle visibleRect,
int orientation,
int direction)
Returns the distance to scroll to expose the next or previous block. |
int |
Scrollable.getScrollableBlockIncrement(Rectangle visibleRect,
int orientation,
int direction)
Components that display logical rows or columns should compute the scroll increment that will completely expose one block of rows or columns, depending on the value of orientation. |
int |
JTextArea.getScrollableUnitIncrement(Rectangle visibleRect,
int orientation,
int direction)
Components that display logical rows or columns should compute the scroll increment that will completely expose one new row or column, depending on the value of orientation. |
int |
JTree.getScrollableUnitIncrement(Rectangle visibleRect,
int orientation,
int direction)
Returns the amount to increment when scrolling. |
int |
JTable.getScrollableUnitIncrement(Rectangle visibleRect,
int orientation,
int direction)
Returns the scroll increment (in pixels) that completely exposes one new row or column (depending on the orientation). |
int |
JList.getScrollableUnitIncrement(Rectangle visibleRect,
int orientation,
int direction)
Returns the distance to scroll to expose the next or previous row (for vertical scrolling) or column (for horizontal scrolling). |
int |
Scrollable.getScrollableUnitIncrement(Rectangle visibleRect,
int orientation,
int direction)
Components that display logical rows or columns should compute the scroll increment that will completely expose one new row or column, depending on the value of orientation. |
static boolean |
SwingUtilities.isRectangleContainingRectangle(Rectangle a,
Rectangle b)
Return true if a contains b |
static String |
SwingUtilities.layoutCompoundLabel(FontMetrics fm,
String text,
Icon icon,
int verticalAlignment,
int horizontalAlignment,
int verticalTextPosition,
int horizontalTextPosition,
Rectangle viewR,
Rectangle iconR,
Rectangle textR,
int textIconGap)
Compute and return the location of the icons origin, the location of origin of the text baseline, and a possibly clipped version of the compound labels string. |
static String |
SwingUtilities.layoutCompoundLabel(JComponent c,
FontMetrics fm,
String text,
Icon icon,
int verticalAlignment,
int horizontalAlignment,
int verticalTextPosition,
int horizontalTextPosition,
Rectangle viewR,
Rectangle iconR,
Rectangle textR,
int textIconGap)
Compute and return the location of the icons origin, the location of origin of the text baseline, and a possibly clipped version of the compound labels string. |
void |
CellRendererPane.paintComponent(Graphics g,
Component c,
Container p,
Rectangle r)
Calls this.paintComponent() with the rectangles x,y,width,height fields. |
static void |
SwingUtilities.paintComponent(Graphics g,
Component c,
Container p,
Rectangle r)
Paints a component to the specified Graphics . |
void |
JComponent.paintImmediately(Rectangle r)
Paints the specified region now. |
void |
DefaultListCellRenderer.repaint(Rectangle r)
Overridden for performance reasons. |
void |
JComponent.repaint(Rectangle r)
Adds the specified region to the dirty region list if the component is showing. |
void |
JTextField.scrollRectToVisible(Rectangle r)
Scrolls the field left or right. |
void |
JViewport.scrollRectToVisible(Rectangle contentRect)
Scrolls the view so that Rectangle
within the view becomes visible. |
void |
JComponent.scrollRectToVisible(Rectangle aRect)
Forwards the scrollRectToVisible() message to the
JComponent 's parent. |
void |
JTree.AccessibleJTree.AccessibleJTreeNode.setBounds(Rectangle r)
|
void |
JTable.AccessibleJTable.AccessibleJTableCell.setBounds(Rectangle r)
|
void |
JList.AccessibleJList.AccessibleJListChild.setBounds(Rectangle r)
|
void |
JInternalFrame.setNormalBounds(Rectangle r)
Sets the normal bounds for this internal frame, the bounds that this internal frame would be restored to from its maximized state. |
protected void |
DefaultDesktopManager.setPreviousBounds(JInternalFrame f,
Rectangle r)
Stores the bounds of the component just before a maximize call. |
| Uses of Rectangle in javax.swing.border |
|---|
| Methods in javax.swing.border that return Rectangle | |
|---|---|
static Rectangle |
AbstractBorder.getInteriorRectangle(Component c,
Border b,
int x,
int y,
int width,
int height)
Returns a rectangle using the arguments minus the insets of the border. |
Rectangle |
AbstractBorder.getInteriorRectangle(Component c,
int x,
int y,
int width,
int height)
This convenience method calls the static method. |
| Uses of Rectangle in javax.swing.plaf |
|---|
| Methods in javax.swing.plaf that return Rectangle | |
|---|---|
abstract Rectangle |
ListUI.getCellBounds(JList list,
int index1,
int index2)
Returns the bounding rectangle, in the given list's coordinate system, for the range of cells specified by the two indices. |
abstract Rectangle |
TreeUI.getPathBounds(JTree tree,
TreePath path)
Returns the Rectangle enclosing the label portion that the last item in path will be drawn into. |
abstract Rectangle |
TabbedPaneUI.getTabBounds(JTabbedPane pane,
int index)
|
abstract Rectangle |
TextUI.modelToView(JTextComponent t,
int pos)
Converts the given location in the model to a place in the view coordinate system. |
abstract Rectangle |
TextUI.modelToView(JTextComponent t,
int pos,
Position.Bias bias)
Converts the given location in the model to a place in the view coordinate system. |
| Uses of Rectangle in javax.swing.plaf.basic |
|---|
| Subclasses of Rectangle in javax.swing.plaf.basic | |
|---|---|
static class |
BasicTextUI.BasicCaret
|
| Fields in javax.swing.plaf.basic declared as Rectangle | |
|---|---|
protected Rectangle |
BasicProgressBarUI.boxRect
Used to hold the location and size of the bouncing box (returned by getBox) to be painted. |
protected Rectangle |
BasicTabbedPaneUI.calcRect
A rectangle used for general layout calculations in order to avoid constructing many new Rectangles on the fly. |
protected Rectangle |
BasicSliderUI.contentRect
|
protected Rectangle |
BasicSliderUI.focusRect
|
protected Rectangle |
BasicSliderUI.labelRect
|
protected Rectangle[] |
BasicTabbedPaneUI.rects
|
protected Rectangle |
BasicSliderUI.thumbRect
|
protected Rectangle |
BasicScrollBarUI.thumbRect
|
protected Rectangle |
BasicSliderUI.tickRect
|
protected Rectangle |
BasicSliderUI.trackRect
|
protected Rectangle |
BasicScrollBarUI.trackRect
|
| Methods in javax.swing.plaf.basic that return Rectangle | |
|---|---|
protected Rectangle |
BasicComboPopup.computePopupBounds(int px,
int py,
int pw,
int ph)
Calculate the placement and size of the popup portion of the combo box based on the combo box location and the enclosing screen bounds. |
protected Rectangle |
BasicProgressBarUI.getBox(Rectangle r)
Stores the position and size of the bouncing box that would be painted for the current animation index in r and returns r . |
Rectangle |
BasicListUI.getCellBounds(JList list,
int index1,
int index2)
Returns the bounding rectangle, in the given list's coordinate system, for the range of cells specified by the two indices. |
Rectangle |
BasicTreeUI.NodeDimensionsHandler.getNodeDimensions(Object value,
int row,
int depth,
boolean expanded,
Rectangle size)
Responsible for getting the size of a particular node. |
Rectangle |
BasicTreeUI.getPathBounds(JTree tree,
TreePath path)
Returns the Rectangle enclosing the label portion that the last item in path will be drawn into. |
protected Rectangle |
BasicTabbedPaneUI.getTabBounds(int tabIndex,
Rectangle dest)
Returns the bounds of the specified tab in the coordinate space of the JTabbedPane component. |
Rectangle |
BasicTabbedPaneUI.getTabBounds(JTabbedPane pane,
int i)
Returns the bounds of the specified tab index. |
protected Rectangle |
BasicScrollBarUI.getThumbBounds()
Return the current size/location of the thumb. |
protected Rectangle |
BasicScrollBarUI.getTrackBounds()
Returns the current bounds of the track, i.e. |
protected Rectangle |
BasicTextUI.getVisibleEditorRect()
Gets the allocation to give the root View. |
Rectangle |
BasicTextUI.modelToView(JTextComponent tc,
int pos)
Converts the given location in the model to a place in the view coordinate system. |
Rectangle |
BasicTextUI.modelToView(JTextComponent tc,
int pos,
Position.Bias bias)
Converts the given location in the model to a place in the view coordinate system. |
protected Rectangle |
BasicComboBoxUI.rectangleForCurrentValue()
Returns the area that is reserved for drawing the currently selected item. |
| Methods in javax.swing.plaf.basic with parameters of type Rectangle | |
|---|---|
protected Rectangle |
BasicProgressBarUI.getBox(Rectangle r)
Stores the position and size of the bouncing box that would be painted for the current animation index in r and returns r . |
Rectangle |
BasicTreeUI.NodeDimensionsHandler.getNodeDimensions(Object value,
int row,
int depth,
boolean expanded,
Rectangle size)
Responsible for getting the size of a particular node. |
protected Rectangle |
BasicTabbedPaneUI.getTabBounds(int tabIndex,
Rectangle dest)
Returns the bounds of the specified tab in the coordinate space of the JTabbedPane component. |
protected String |
BasicLabelUI.layoutCL(JLabel label,
FontMetrics fontMetrics,
String text,
Icon icon,
Rectangle viewR,
Rectangle iconR,
Rectangle textR)
Forwards the call to SwingUtilities.layoutCompoundLabel(). |
protected void |
BasicTabbedPaneUI.layoutLabel(int tabPlacement,
FontMetrics metrics,
int tabIndex,
String title,
Icon icon,
Rectangle tabRect,
Rectangle iconRect,
Rectangle textRect,
boolean isSelected)
|
protected void |
BasicListUI.paintCell(Graphics g,
int row,
Rectangle rowBounds,
ListCellRenderer cellRenderer,
ListModel dataModel,
ListSelectionModel selModel,
int leadIndex)
Paint one List cell: compute the relevant state, get the "rubber stamp" cell renderer component, and then use the CellRendererPane to paint it. |
void |
BasicComboBoxUI.paintCurrentValue(Graphics g,
Rectangle bounds,
boolean hasFocus)
Paints the currently selected item. |
void |
BasicComboBoxUI.paintCurrentValueBackground(Graphics g,
Rectangle bounds,
boolean hasFocus)
Paints the background of the currently selected item. |
protected void |
BasicTreeUI.paintExpandControl(Graphics g,
Rectangle clipBounds,
Insets insets,
Rectangle bounds,
TreePath path,
int row,
boolean isExpanded,
boolean hasBeenExpanded,
boolean isLeaf)
Paints the expand (toggle) part of a row. |
protected void |
BasicButtonUI.paintFocus(Graphics g,
AbstractButton b,
Rectangle viewRect,
Rectangle textRect,
Rectangle iconRect)
|
protected void |
BasicRadioButtonUI.paintFocus(Graphics g,
Rectangle textRect,
Dimension size)
|
protected void |
BasicTabbedPaneUI.paintFocusIndicator(Graphics g,
int tabPlacement,
Rectangle[] rects,
int tabIndex,
Rectangle iconRect,
Rectangle textRect,
boolean isSelected)
|
protected void |
BasicTabbedPaneUI.paintFocusIndicator(Graphics g,
int tabPlacement,
Rectangle[] rects,
int tabIndex,
Rectangle iconRect,
Rectangle textRect,
boolean isSelected)
|
protected void |
BasicTreeUI.paintHorizontalPartOfLeg(Graphics g,
Rectangle clipBounds,
Insets insets,
Rectangle bounds,
TreePath path,
int row,
boolean isExpanded,
boolean hasBeenExpanded,
boolean isLeaf)
Paints the horizontal part of the leg. |
protected void |
BasicToggleButtonUI.paintIcon(Graphics g,
AbstractButton b,
Rectangle iconRect)
|
protected void |
BasicTabbedPaneUI.paintIcon(Graphics g,
int tabPlacement,
int tabIndex,
Icon icon,
Rectangle iconRect,
boolean isSelected)
|
protected void |
BasicButtonUI.paintIcon(Graphics g,
JComponent c,
Rectangle iconRect)
|
protected void |
BasicSliderUI.paintMajorTickForHorizSlider(Graphics g,
Rectangle tickBounds,
int x)
|
protected void |
BasicSliderUI.paintMajorTickForVertSlider(Graphics g,
Rectangle tickBounds,
int y)
|
protected void |
BasicSliderUI.paintMinorTickForHorizSlider(Graphics g,
Rectangle tickBounds,
int x)
|
protected void |
BasicSliderUI.paintMinorTickForVertSlider(Graphics g,
Rectangle tickBounds,
int y)
|
protected void |
BasicTreeUI.paintRow(Graphics g,
Rectangle clipBounds,
Insets insets,
Rectangle bounds,
TreePath path,
int row,
boolean isExpanded,
boolean hasBeenExpanded,
boolean isLeaf)
Paints the renderer part of a row. |
protected void |
BasicTabbedPaneUI.paintTab(Graphics g,
int tabPlacement,
Rectangle[] rects,
int tabIndex,
Rectangle iconRect,
Rectangle textRect)
|
protected void |
BasicTabbedPaneUI.paintTab(Graphics g,
int tabPlacement,
Rectangle[] rects,
int tabIndex,
Rectangle iconRect,
Rectangle textRect)
|
protected void |
BasicButtonUI.paintText(Graphics g,
AbstractButton b,
Rectangle textRect,
String text)
Method which renders the text of the current button. |
protected void |
BasicTabbedPaneUI.paintText(Graphics g,
int tabPlacement,
Font font,
FontMetrics metrics,
int tabIndex,
String title,
Rectangle textRect,
boolean isSelected)
|
protected void |
BasicButtonUI.paintText(Graphics g,
JComponent c,
Rectangle textRect,
String text)
As of Java 2 platform v 1.4 this method should not be used or overriden. |
protected void |
BasicMenuItemUI.paintText(Graphics g,
JMenuItem menuItem,
Rectangle textRect,
String text)
Renders the text of the current menu item. |
protected void |
BasicScrollBarUI.paintThumb(Graphics g,
JComponent c,
Rectangle thumbBounds)
|
protected void |
BasicScrollBarUI.paintTrack(Graphics g,
JComponent c,
Rectangle trackBounds)
|
protected void |
BasicTreeUI.paintVerticalPartOfLeg(Graphics g,
Rectangle clipBounds,
Insets insets,
TreePath path)
Paints the vertical part of the leg. |
| Uses of Rectangle in javax.swing.plaf.metal |
|---|
| Methods in javax.swing.plaf.metal with parameters of type Rectangle | |
|---|---|
void |
MetalComboBoxUI.paintCurrentValue(Graphics g,
Rectangle bounds,
boolean hasFocus)
If necessary paints the currently selected item. |
void |
MetalComboBoxUI.paintCurrentValueBackground(Graphics g,
Rectangle bounds,
boolean hasFocus)
If necessary paints the background of the currently selected item. |
protected void |
MetalToggleButtonUI.paintFocus(Graphics g,
AbstractButton b,
Rectangle viewRect,
Rectangle textRect,
Rectangle iconRect)
|
protected void |
MetalButtonUI.paintFocus(Graphics g,
AbstractButton b,
Rectangle viewRect,
Rectangle textRect,
Rectangle iconRect)
|
protected void |
MetalRadioButtonUI.paintFocus(Graphics g,
Rectangle t,
Dimension d)
|
protected void |
MetalTabbedPaneUI.paintFocusIndicator(Graphics g,
int tabPlacement,
Rectangle[] rects,
int tabIndex,
Rectangle iconRect,
Rectangle textRect,
boolean isSelected)
|
protected void |
MetalTabbedPaneUI.paintFocusIndicator(Graphics g,
int tabPlacement,
Rectangle[] rects,
int tabIndex,
Rectangle iconRect,
Rectangle textRect,
boolean isSelected)
|
protected void |
MetalTreeUI.paintHorizontalPartOfLeg(Graphics g,
Rectangle clipBounds,
Insets insets,
Rectangle bounds,
TreePath path,
int row,
boolean isExpanded,
boolean hasBeenExpanded,
boolean isLeaf)
|
protected void |
MetalToggleButtonUI.paintIcon(Graphics g,
AbstractButton b,
Rectangle iconRect)
Paints the appropriate icon of the button b in the
space iconRect . |
protected void |
MetalSliderUI.paintMajorTickForHorizSlider(Graphics g,
Rectangle tickBounds,
int x)
|
protected void |
MetalSliderUI.paintMajorTickForVertSlider(Graphics g,
Rectangle tickBounds,
int y)
|
protected void |
MetalSliderUI.paintMinorTickForHorizSlider(Graphics g,
Rectangle tickBounds,
int x)
|
protected void |
MetalSliderUI.paintMinorTickForVertSlider(Graphics g,
Rectangle tickBounds,
int y)
|
protected void |
MetalToggleButtonUI.paintText(Graphics g,
JComponent c,
Rectangle textRect,
String text)
|
protected void |
MetalButtonUI.paintText(Graphics g,
JComponent c,
Rectangle textRect,
String text)
|
protected void |
MetalScrollBarUI.paintThumb(Graphics g,
JComponent c,
Rectangle thumbBounds)
|
protected void |
MetalScrollBarUI.paintTrack(Graphics g,
JComponent c,
Rectangle trackBounds)
|
protected void |
MetalTreeUI.paintVerticalPartOfLeg(Graphics g,
Rectangle clipBounds,
Insets insets,
TreePath path)
|
| Uses of Rectangle in javax.swing.plaf.multi |
|---|
| Methods in javax.swing.plaf.multi that return Rectangle | |
|---|---|
Rectangle |
MultiListUI.getCellBounds(JList a,
int b,
int c)
Invokes the getCellBounds method on each UI handled by this object. |
Rectangle |
MultiTreeUI.getPathBounds(JTree a,
TreePath b)
Invokes the getPathBounds method on each UI handled by this object. |
Rectangle |
MultiTabbedPaneUI.getTabBounds(JTabbedPane a,
int b)
Invokes the getTabBounds method on each UI handled by this object. |
Rectangle |
MultiTextUI.modelToView(JTextComponent a,
int b)
Invokes the modelToView method on each UI handled by this object. |
Rectangle |
MultiTextUI.modelToView(JTextComponent a,
int b,
Position.Bias c)
Invokes the modelToView method on each UI handled by this object. |
| Uses of Rectangle in javax.swing.plaf.synth |
|---|
| Methods in javax.swing.plaf.synth with parameters of type Rectangle | |
|---|---|
String |
SynthGraphicsUtils.layoutText(SynthContext ss,
FontMetrics fm,
String text,
Icon icon,
int hAlign,
int vAlign,
int hTextPosition,
int vTextPosition,
Rectangle viewR,
Rectangle iconR,
Rectangle textR,
int iconTextGap)
Lays out text and an icon returning, by reference, the location to place the icon and text. |
void |
SynthGraphicsUtils.paintText(SynthContext ss,
Graphics g,
String text,
Rectangle bounds,
int mnemonicIndex)
Paints text at the specified location. |
| Uses of Rectangle in javax.swing.table |
|---|
| Methods in javax.swing.table that return Rectangle | |
|---|---|
Rectangle |
JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.getBounds()
|
Rectangle |
JTableHeader.getHeaderRect(int column)
Returns the rectangle containing the header tile at column . |
| Methods in javax.swing.table with parameters of type Rectangle | |
|---|---|
void |
DefaultTableCellRenderer.repaint(Rectangle r)
Overridden for performance reasons. |
void |
JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.setBounds(Rectangle r)
|
| Uses of Rectangle in javax.swing.text |
|---|
| Subclasses of Rectangle in javax.swing.text | |
|---|---|
class |
DefaultCaret
A default implementation of Caret. |
| Fields in javax.swing.text declared as Rectangle | |
|---|---|
protected Rectangle |
AsyncBoxView.ChildLocator.childAlloc
A shape to use for the child allocation to avoid creating a lot of garbage. |
protected Rectangle |
AsyncBoxView.ChildLocator.lastAlloc
The last seen allocation (for repainting when changes are flushed upward). |
| Methods in javax.swing.text that return Rectangle | |
|---|---|
Rectangle |
JTextComponent.AccessibleJTextComponent.getCharacterBounds(int i)
Determines the bounding box of the character at the given index into the string. |
protected Rectangle |
CompositeView.getInsideAllocation(Shape a)
Translates the immutable allocation given to the view to a mutable allocation that represents the interior allocation (i.e. |
Rectangle |
JTextComponent.AccessibleJTextComponent.getTextBounds(int startIndex,
int endIndex)
Returns the Rectangle enclosing the text between
two indicies. |
protected Rectangle |
PlainView.lineToRect(Shape a,
int line)
Determine the rectangle that represents the given line. |
Rectangle |
JTextComponent.modelToView(int pos)
Converts the given location in the model to a place in the view coordinate system. |
| Methods in javax.swing.text with parameters of type Rectangle | |
|---|---|
protected void |
DefaultCaret.adjustVisibility(Rectangle nloc)
Scrolls the associated view (if necessary) to make the caret visible. |
void |
FlowView.FlowStrategy.changedUpdate(FlowView fv,
DocumentEvent e,
Rectangle alloc)
Gives notification from the document that attributes were changed in a location that this view is responsible for. |
protected void |
BoxView.childAllocation(int index,
Rectangle alloc)
Allocates a region for a child view. |
protected abstract void |
CompositeView.childAllocation(int index,
Rectangle a)
Returns the allocation for a given child. |
protected void |
DefaultCaret.damage(Rectangle r)
Damages the area surrounding the caret to cause it to be repainted in a new location. |
int |
JTextComponent.getScrollableBlockIncrement(Rectangle visibleRect,
int orientation,
int direction)
Components that display logical rows or columns should compute the scroll increment that will completely expose one block of rows or columns, depending on the value of orientation. |
int |
JTextComponent.getScrollableUnitIncrement(Rectangle visibleRect,
int orientation,
int direction)
Components that display logical rows or columns should compute the scroll increment that will completely expose one new row or column, depending on the value of orientation. |
protected View |
BoxView.getViewAtPoint(int x,
int y,
Rectangle alloc)
Fetches the child view at the given coordinates. |
protected abstract View |
CompositeView.getViewAtPoint(int x,
int y,
Rectangle alloc)
Fetches the child view at the given coordinates. |
protected View |
TableView.getViewAtPosition(int pos,
Rectangle a)
Fetches the child view that represents the given position in the model. |
protected View |
TableView.TableRow.getViewAtPosition(int pos,
Rectangle a)
Fetches the child view that represents the given position in the model. |
protected View |
CompositeView.getViewAtPosition(int pos,
Rectangle a)
Fetches the child view that represents the given position in the model. |
void |
FlowView.FlowStrategy.insertUpdate(FlowView fv,
DocumentEvent e,
Rectangle alloc)
Gives notification that something was inserted into the document in a location that the given flow view is responsible for. |
protected boolean |
BoxView.isAfter(int x,
int y,
Rectangle innerAlloc)
Determines if a point falls after an allocated region. |
protected abstract boolean |
CompositeView.isAfter(int x,
int y,
Rectangle alloc)
Tests whether a point lies after the rectangle range. |
protected boolean |
BoxView.isBefore(int x,
int y,
Rectangle innerAlloc)
Determines if a point falls before an allocated region. |
protected abstract boolean |
CompositeView.isBefore(int x,
int y,
Rectangle alloc)
Tests whether a point lies before the rectangle range. |
protected void |
BoxView.paintChild(Graphics g,
Rectangle alloc,
int index)
Paints a child. |
void |
FlowView.FlowStrategy.removeUpdate(FlowView fv,
DocumentEvent e,
Rectangle alloc)
Gives notification that something was removed from the document in a location that the given flow view is responsible for. |
| Uses of Rectangle in javax.swing.text.html |
|---|
| Methods in javax.swing.text.html with parameters of type Rectangle | |
|---|---|
protected void |
ListView.paintChild(Graphics g,
Rectangle alloc,
int index)
Paints one of the children; called by paint(). |
| Uses of Rectangle in javax.swing.tree |
|---|
| Methods in javax.swing.tree that return Rectangle | |
|---|---|
Rectangle |
VariableHeightLayoutCache.getBounds(TreePath path,
Rectangle placeIn)
Returns the Rectangle enclosing the label portion
into which the item identified by path will be drawn. |
Rectangle |
FixedHeightLayoutCache.getBounds(TreePath path,
Rectangle placeIn)
Returns a rectangle giving the bounds needed to draw path. |
abstract Rectangle |
AbstractLayoutCache.getBounds(TreePath path,
Rectangle placeIn)
Returns a rectangle giving the bounds needed to draw path. |
protected Rectangle |
AbstractLayoutCache.getNodeDimensions(Object value,
int row,
int depth,
boolean expanded,
Rectangle placeIn)
Returns, by reference in placeIn ,
the size needed to represent value . |
abstract Rectangle |
AbstractLayoutCache.NodeDimensions.getNodeDimensions(Object value,
int row,
int depth,
boolean expanded,
Rectangle bounds)
Returns, by reference in bounds, the size and x origin to place value at. |
| Methods in javax.swing.tree with parameters of type Rectangle | |
|---|---|
Rectangle |
VariableHeightLayoutCache.getBounds(TreePath path,
Rectangle placeIn)
Returns the Rectangle enclosing the label portion
into which the item identified by path will be drawn. |
Rectangle |
FixedHeightLayoutCache.getBounds(TreePath path,
Rectangle placeIn)
Returns a rectangle giving the bounds needed to draw path. |
abstract Rectangle |
AbstractLayoutCache.getBounds(TreePath path,
Rectangle placeIn)
Returns a rectangle giving the bounds needed to draw path. |
protected Rectangle |
AbstractLayoutCache.getNodeDimensions(Object value,
int row,
int depth,
boolean expanded,
Rectangle placeIn)
Returns, by reference in placeIn ,
the size needed to represent value . |
abstract Rectangle |
AbstractLayoutCache.NodeDimensions.getNodeDimensions(Object value,
int row,
int depth,
boolean expanded,
Rectangle bounds)
Returns, by reference in bounds, the size and x origin to place value at. |
int |
VariableHeightLayoutCache.getPreferredWidth(Rectangle bounds)
Returns the preferred width and height for the region in visibleRegion . |
int |
AbstractLayoutCache.getPreferredWidth(Rectangle bounds)
Returns the preferred width for the passed in region. |
void |
DefaultTreeCellRenderer.repaint(Rectangle r)
Overridden for performance reasons. |
|
Java™ Platform Standard Ed. 6 |
|||||||||
| PREV NEXT | FRAMES NO FRAMES |
Copyright © 1993, 2011, Oracle and/or its affiliates. All rights reserved.


You have 3 Notification
Security 1234 missed the path
Security 2345 not-traced
Security 4567 missed a region
You have 9 Mails
Path checked successfully
There is a problem in logistics area
Path is cleared
Problem in the parking area