/openjdk7/jdk/src/share/classes/javax/swing/text/html/ |
H A D | ListView.java | 74 Rectangle alloc = allocation.getBounds(); 80 if ((clip.x + clip.width) < (alloc.x + getLeftInset())) { 81 Rectangle childRect = alloc; 82 alloc = getInsideAllocation(allocation); 86 childRect.setBounds(alloc); 108 * @param alloc the allocated region to render the child into 111 protected void paintChild(Graphics g, Rectangle alloc, int index) { argument 112 listPainter.paint(g, alloc.x, alloc.y, alloc [all...] |
H A D | HRuleView.java | 115 Rectangle alloc = (a instanceof Rectangle) ? (Rectangle)a : 118 int y = alloc.y + SPACE_ABOVE + (int)topMargin; 119 int width = alloc.width - (int)(leftMargin + rightMargin); 123 int height = alloc.height - (SPACE_ABOVE + SPACE_BELOW + 131 x = alloc.x + (alloc.width / 2) - (width / 2); 134 x = alloc.x + alloc.width - width - (int)rightMargin; 138 x = alloc.x + (int)leftMargin; 278 Rectangle alloc [all...] |
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/windows/ |
H A D | WindowsTextUI.java | 96 Rectangle alloc = bounds.getBounds(); 134 int p0ToMarginWidth = alloc.x + alloc.width - p0.x; 141 g.fillRect(alloc.x, p0.y + p0.height, alloc.width, 144 if (secondIsDot && p1.x > alloc.x) { 147 g.fillRect(alloc.x, p1.y, (p1.x - alloc.x), p1.height); 187 Rectangle alloc; 189 alloc [all...] |
/openjdk7/jdk/src/share/classes/javax/swing/text/ |
H A D | IconView.java | 71 Rectangle alloc = a.getBounds(); 72 c.paintIcon(getContainer(), g, alloc.x, alloc.y); 156 Rectangle alloc = (Rectangle) a; 157 if (x < alloc.x + (alloc.width / 2)) {
|
H A D | WrappedPlainView.java | 356 Rectangle alloc = (Rectangle) a; 357 tabBase = alloc.x; 465 Rectangle alloc = ((a != null) && isAllocationValid()) ? 468 View v = getViewAtPosition(pos, alloc); 470 v.insertUpdate(e, alloc, f); 487 Rectangle alloc = ((a != null) && isAllocationValid()) ? 490 View v = getViewAtPosition(pos, alloc); 492 v.removeUpdate(e, alloc, f); 579 Rectangle alloc = (Rectangle) a; 580 int y = alloc [all...] |
H A D | GlyphPainter1.java | 98 Rectangle alloc = (a instanceof Rectangle) ? (Rectangle)a : a.getBounds(); 101 int x = alloc.x; 113 int y = alloc.y + metrics.getHeight() - metrics.getDescent(); 128 Rectangle alloc = (a instanceof Rectangle) ? (Rectangle)a : a.getBounds(); 137 return new Rectangle(alloc.x + alloc.width, alloc.y, 0, 144 int width = Utilities.getTabbedTextWidth(v, text, metrics, alloc.x, expander, p0, 147 return new Rectangle(alloc.x + width, alloc [all...] |
H A D | CompositeView.java | 231 Rectangle alloc = getInsideAllocation(a); 232 childAllocation(index, alloc); 233 return alloc; 304 Rectangle alloc = getInsideAllocation(a); 305 Rectangle r0 = new Rectangle(alloc); 308 Rectangle r1 = new Rectangle(alloc); 346 tempRect.setBounds(alloc); 391 Rectangle alloc = getInsideAllocation(a); 392 if (isBefore((int) x, (int) y, alloc)) { 406 } else if (isAfter((int) x, (int) y, alloc)) { 513 isBefore(int x, int y, Rectangle alloc) argument 523 isAfter(int x, int y, Rectangle alloc) argument 534 getViewAtPoint(int x, int y, Rectangle alloc) argument [all...] |
H A D | PasswordView.java | 162 Rectangle alloc = adjustAllocation(a).getBounds(); 164 alloc.x += dx; 165 alloc.width = 1; 166 return alloc; 194 Rectangle alloc = (a instanceof Rectangle) ? (Rectangle)a : 197 ((int)fx - alloc.x) / charWidth : Integer.MAX_VALUE);
|
H A D | PlainView.java | 252 Rectangle alloc = (Rectangle) a; 253 tabBase = alloc.x; 272 int heightBelow = (alloc.y + alloc.height) - (clip.y + clip.height); 273 int heightAbove = clip.y - alloc.y; 279 linesTotal = alloc.height / fontHeight; 280 if (alloc.height % fontHeight != 0) { 383 Rectangle alloc = a.getBounds(); 387 if (y < alloc.y) { 391 } else if (y > alloc [all...] |
H A D | BoxView.java | 156 * @param alloc the allocated region to paint into 159 protected void paintChild(Graphics g, Rectangle alloc, int index) { argument 161 child.paint(g, alloc); 251 Rectangle alloc = getInsideAllocation(a); 253 alloc.x += majorOffsets[index]; 254 alloc.width -= majorOffsets[index]; 256 alloc.y += minorOffsets[index]; 257 alloc.height -= minorOffsets[index]; 259 c.repaint(alloc.x, alloc 656 getViewAtPoint(int x, int y, Rectangle alloc) argument 694 childAllocation(int index, Rectangle alloc) argument [all...] |
H A D | GlyphPainter2.java | 117 Rectangle2D alloc = a.getBounds2D(); 119 float y = (float) alloc.getY() + layout.getAscent() + layout.getLeading(); 120 float x = (float) alloc.getX(); 141 Rectangle2D alloc = a.getBounds2D(); 148 alloc.setRect(alloc.getX() + locs[0], alloc.getY(), 1, alloc.getHeight()); 149 return alloc; 170 Rectangle2D alloc [all...] |
H A D | FlowView.java | 363 * @param alloc the current allocation of the view inside of the insets. 367 public void insertUpdate(FlowView fv, DocumentEvent e, Rectangle alloc) { argument 374 if (alloc != null) { 377 host.repaint(alloc.x, alloc.y, alloc.width, alloc.height); 389 * @param alloc the current allocation of the view inside of the insets. 392 public void removeUpdate(FlowView fv, DocumentEvent e, Rectangle alloc) { argument 394 if (alloc ! 414 changedUpdate(FlowView fv, DocumentEvent e, Rectangle alloc) argument 824 isBefore(int x, int y, Rectangle alloc) argument 838 isAfter(int x, int y, Rectangle alloc) argument 853 getViewAtPoint(int x, int y, Rectangle alloc) argument [all...] |
H A D | ComponentView.java | 115 Rectangle alloc = (a instanceof Rectangle) ? 117 c.setBounds(alloc.x, alloc.y, alloc.width, alloc.height); 355 Rectangle alloc = (Rectangle) a; 356 if (x < alloc.x + (alloc.width / 2)) {
|
H A D | DefaultHighlighter.java | 404 Rectangle alloc = bounds.getBounds(); 426 int p0ToMarginWidth = alloc.x + alloc.width - p0.x; 429 g.fillRect(alloc.x, p0.y + p0.height, alloc.width, 432 g.fillRect(alloc.x, p1.y, (p1.x - alloc.x), p1.height); 536 Rectangle alloc; 538 alloc = (Rectangle)bounds; 541 alloc [all...] |
/openjdk7/hotspot/src/share/vm/opto/ |
H A D | macro.hpp | 80 void expand_allocate(AllocateNode *alloc); 81 void expand_allocate_array(AllocateArrayNode *alloc); 82 void expand_allocate_common(AllocateNode* alloc, 86 Node *value_from_mem(Node *mem, BasicType ft, const Type *ftype, const TypeOopPtr *adr_t, Node *alloc); 87 Node *value_from_mem_phi(Node *mem, BasicType ft, const Type *ftype, const TypeOopPtr *adr_t, Node *alloc, Node_Stack *value_phis, int level); 89 bool eliminate_allocate_node(AllocateNode *alloc); 90 bool can_eliminate_allocation(AllocateNode *alloc, GrowableArray <SafePointNode *>& safepoints); 91 bool scalar_replacement(AllocateNode *alloc, GrowableArray <SafePointNode *>& safepoints_done); 92 void process_users_of_allocation(AllocateNode *alloc); 109 Node* initialize_object(AllocateNode* alloc, [all...] |
H A D | macro.cpp | 307 static Node *scan_mem_chain(Node *mem, int alias_idx, int offset, Node *start_mem, Node *alloc, PhaseGVN *phase) { argument 309 Node *alloc_mem = alloc->in(TypeFunc::Memory); 320 if (in->is_Initialize() && in->as_Initialize()->allocation() == alloc) { 342 if (adr_offset == offset && adr_iid == alloc->_idx) 349 if (!ClearArrayNode::step_through(&mem, alloc->_idx, phase)) { 353 assert(alloc == AllocateNode::Ideal_allocation(mem->in(3), phase, offset), "sanity"); 354 InitializeNode* init = alloc->as_Allocate()->initialization(); 360 return alloc->in(TypeFunc::Memory); // It will produce zero value (see callers). 384 Node *PhaseMacroExpand::value_from_mem_phi(Node *mem, BasicType ft, const Type *phi_type, const TypeOopPtr *adr_t, Node *alloc, Node_Stack *value_phis, int level) { argument 408 Node *alloc_mem = alloc 472 value_from_mem(Node *sfpt_mem, BasicType ft, const Type *ftype, const TypeOopPtr *adr_t, Node *alloc) argument 562 can_eliminate_allocation(AllocateNode *alloc, GrowableArray <SafePointNode *>& safepoints) argument 681 scalar_replacement(AllocateNode *alloc, GrowableArray <SafePointNode *>& safepoints) argument 852 process_users_of_allocation(AllocateNode *alloc) argument 948 eliminate_allocate_node(AllocateNode *alloc) argument 1082 expand_allocate_common( AllocateNode* alloc, Node* length, const TypeFunc* slow_call_type, address slow_call_address ) argument 1547 initialize_object(AllocateNode* alloc, Node* control, Node* rawmem, Node* object, Node* klass_node, Node* length, Node* size_in_bytes) argument 1762 expand_allocate(AllocateNode *alloc) argument 1768 expand_allocate_array(AllocateArrayNode *alloc) argument [all...] |
/openjdk7/jdk/src/macosx/native/jobjc/src/tests/native/ |
H A D | FunCallBench.m | 55 return ptr_to_jlong([NSString alloc]); 61 return ptr_to_jlong(CFRetain([NSString alloc])); 68 if(!str) str = ptr_to_jlong([NSString alloc]);
|
/openjdk7/jdk/src/macosx/classes/com/apple/laf/ |
H A D | AquaCaret.java | 168 final Rectangle alloc = getComponent().getBounds(); 169 alloc.x = alloc.y = 0; 171 alloc.x += borderInsets.left; 172 alloc.y += borderInsets.top; 173 alloc.width -= borderInsets.left + borderInsets.right; 174 alloc.height -= borderInsets.top + borderInsets.bottom; 175 Rectangle2D.intersect(caretRect, alloc, caretRect);
|
/openjdk7/jdk/src/macosx/native/jobjc/src/tests/java/com/apple/jobjc/ |
H A D | NSClassTest.java | 36 NSString s = ((NSString) FND.NSString().alloc()).init(); 44 NSString s = ((NSString) FND.NSString().alloc()).init();
|
H A D | PooledTestCase.java | 40 pool = foundation.NSAutoreleasePool().alloc();
|
H A D | SubclassingTest.java | 59 final MyObject instObj = cls.alloc(); 65 final MyObject instObj = new MyObjectClass(runtime).alloc(); 76 final MyObject obj = ((MyObject) cls.alloc()).init(); 111 final MyObject instObj = new MyObjectClass(runtime).alloc(); 123 final MyObject instObj = new MyObjectClass(runtime).alloc(); 133 final MyObject instObj = new MyObjectClass(runtime).alloc(); 146 final MyObject instObj = new MyObjectClass(runtime).alloc(); 160 final MyObject instObj = new MyObjectClass(runtime).alloc();
|
H A D | VarArgsTest.java | 40 NSString nstr = ((NSString)FND.NSString().alloc()).initWithFormat(format, 1, 0.2, 1.2, abra); 52 NSDictionary dict = ((NSDictionary)FND.NSDictionary().alloc()).initWithObjectsAndKeys(v1, k1, v2, k2, null);
|
/openjdk7/jdk/src/share/classes/javax/swing/ |
H A D | OverlayLayout.java | 232 Dimension alloc = target.getSize(); 234 alloc.width -= in.left + in.right; 235 alloc.height -= in.top + in.bottom; 236 SizeRequirements.calculateAlignedPositions(alloc.width, xTotal, 239 SizeRequirements.calculateAlignedPositions(alloc.height, yTotal,
|
H A D | BoxLayout.java | 411 Dimension alloc = target.getSize(); 413 alloc.width -= in.left + in.right; 414 alloc.height -= in.top + in.bottom; 427 SizeRequirements.calculateTiledPositions(alloc.width, xTotal, 430 SizeRequirements.calculateAlignedPositions(alloc.height, yTotal, 434 SizeRequirements.calculateAlignedPositions(alloc.width, xTotal, 437 SizeRequirements.calculateTiledPositions(alloc.height, yTotal,
|
/openjdk7/jdk/src/share/classes/javax/swing/plaf/basic/ |
H A D | BasicTextUI.java | 735 Rectangle alloc = getVisibleEditorRect(); 736 if (alloc != null) { 737 rootView.paint(g, alloc); 995 Rectangle alloc = editor.getBounds(); 996 if ((alloc.width > 0) && (alloc.height > 0)) { 997 alloc.x = alloc.y = 0; 999 alloc.x += insets.left; 1000 alloc 1986 calculateViewPosition(Shape alloc, View v) argument [all...] |