~ubuntu-branches/ubuntu/natty/otrs2/natty-updates

« back to all changes in this revision

Viewing changes to var/httpd/htdocs/yui/2.7.0/as-docs/com/yahoo/astra/utils/DisplayObjectUtil.html

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2010-08-09 19:43:44 UTC
  • mfrom: (1.1.12)
  • Revision ID: package-import@ubuntu.com-20100809194344-absef1ut5mfj3qhv
Tags: 2.4.7+dfsg1-1
* Strip out yui from the source in the dfsg version.
  Closes: #591196
* Depend on libjs-yui and link to this package, instead of using the embedded
  yui version. This changes make the flash ticket statistics unuseable!
  Closes: #592146

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
 
<html>
3
 
<head>
4
 
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
 
<link rel="stylesheet" href="../../../../style.css" type="text/css" media="screen">
6
 
<link rel="stylesheet" href="../../../../print.css" type="text/css" media="print">
7
 
<meta content="DisplayObjectUtil,com.yahoo.astra.utils.DisplayObjectUtil,align,localToLocal,resizeAndMaintainAspectRatio" name="keywords">
8
 
<title>com.yahoo.astra.utils.DisplayObjectUtil</title>
9
 
</head>
10
 
<body>
11
 
<script type="text/javascript" language="javascript" src="../../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../../cookies.js"></script><script type="text/javascript" language="javascript">
12
 
<!--
13
 
                                asdocTitle = 'DisplayObjectUtil - YUI Flash Component Documentation';
14
 
                                var baseRef = '../../../../';
15
 
                                window.onload = configPage;
16
 
                        --></script>
17
 
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
18
 
<tr>
19
 
<td align="left" class="titleTableTitle">YUI Flash Component Documentation</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../../all-classes.html')" href="../../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../all-classes.html')" href="../../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../index-list.html')" href="../../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../../index.html?com/yahoo/astra/utils/DisplayObjectUtil.html&amp;com/yahoo/astra/utils/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../../images/logo.jpg"></td>
20
 
</tr>
21
 
<tr class="titleTableRow2">
22
 
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;DisplayObjectUtil</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#methodSummary">Methods</a></td>
23
 
</tr>
24
 
<tr class="titleTableRow3">
25
 
<td colspan="2">&nbsp;</td>
26
 
</tr>
27
 
</table>
28
 
<script type="text/javascript" language="javascript">
29
 
<!--
30
 
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class DisplayObjectUtil"); titleBar_setSubNav(false,false,false,false,false,false,true,false,false,false,false,false,false,false);}
31
 
--></script>
32
 
<div class="MainContent">
33
 
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
34
 
<tr>
35
 
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">com.yahoo.astra.utils</a></td>
36
 
</tr>
37
 
<tr>
38
 
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class DisplayObjectUtil</td>
39
 
</tr>
40
 
</table>
41
 
<p></p>
42
 
  Utility functions for use with DisplayObjects.
43
 
  
44
 
  <p></p>
45
 
<br>
46
 
<hr>
47
 
</div>
48
 
<a name="methodSummary"></a>
49
 
<div class="summarySection">
50
 
<div class="summaryTableTitle">Public Methods</div>
51
 
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
52
 
<tr>
53
 
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
54
 
</tr>
55
 
<tr class="">
56
 
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
57
 
<div class="summarySignature">
58
 
<a class="signatureLink" href="#align()">align</a>(target:DisplayObject, bounds:Rectangle, horizontalAlign:String = null, verticalAlign:String = null):void</div>
59
 
<div class="summaryTableDescription">[static]
60
 
   Aligns a DisplayObject vertically and horizontally within specific bounds.</div>
61
 
</td><td class="summaryTableOwnerCol">DisplayObjectUtil</td>
62
 
</tr>
63
 
<tr class="">
64
 
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
65
 
<div class="summarySignature">
66
 
<a class="signatureLink" href="#localToLocal()">localToLocal</a>(point:Point, firstDisplayObject:DisplayObject, secondDisplayObject:DisplayObject):Point</div>
67
 
<div class="summaryTableDescription">[static]
68
 
   Converts a point from the local coordinate system of one DisplayObject to
69
 
   the local coordinate system of another DisplayObject.</div>
70
 
</td><td class="summaryTableOwnerCol">DisplayObjectUtil</td>
71
 
</tr>
72
 
<tr class="">
73
 
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
74
 
<div class="summarySignature">
75
 
<a class="signatureLink" href="#resizeAndMaintainAspectRatio()">resizeAndMaintainAspectRatio</a>(target:DisplayObject, width:Number, height:Number, aspectRatio:Number):void</div>
76
 
<div class="summaryTableDescription">[static]
77
 
   Resizes a DisplayObject to fit into specified bounds such that the
78
 
   aspect ratio of the target's width and height does not change.</div>
79
 
</td><td class="summaryTableOwnerCol">DisplayObjectUtil</td>
80
 
</tr>
81
 
</table>
82
 
</div>
83
 
<script type="text/javascript" language="javascript">
84
 
<!--
85
 
showHideInherited();
86
 
--></script>
87
 
<div class="MainContent">
88
 
<a name="methodDetail"></a>
89
 
<div class="detailSectionHeader">Method detail</div>
90
 
<a name="align()"></a>
91
 
<table cellspacing="0" cellpadding="0" class="detailHeader">
92
 
<tr>
93
 
<td class="detailHeaderName">align</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
94
 
</tr>
95
 
</table>
96
 
<div class="detailBody">
97
 
<code>public static function align(target:DisplayObject, bounds:Rectangle, horizontalAlign:String = null, verticalAlign:String = null):void</code><p>
98
 
   Aligns a DisplayObject vertically and horizontally within specific bounds.
99
 
   
100
 
   </p><span class="label">Parameters</span>
101
 
<table border="0" cellspacing="0" cellpadding="0">
102
 
<tr>
103
 
<td width="20px"></td><td><code><span class="label">target</span>:DisplayObject</code> &mdash;   The DisplayObject to align.
104
 
   </td>
105
 
</tr>
106
 
<tr>
107
 
<td class="paramSpacer">&nbsp;</td>
108
 
</tr>
109
 
<tr>
110
 
<td width="20px"></td><td><code><span class="label">bounds</span>:Rectangle</code> &mdash;   The rectangle in which to align the target DisplayObject.
111
 
   </td>
112
 
</tr>
113
 
<tr>
114
 
<td class="paramSpacer">&nbsp;</td>
115
 
</tr>
116
 
<tr>
117
 
<td width="20px"></td><td><code><span class="label">horizontalAlign</span>:String</code> (default = <code>null</code>)<code></code> &mdash; The alignment position along the horizontal axis. If <code>null</code>,
118
 
          the target's horizontal position will not change.
119
 
   </td>
120
 
</tr>
121
 
<tr>
122
 
<td class="paramSpacer">&nbsp;</td>
123
 
</tr>
124
 
<tr>
125
 
<td width="20px"></td><td><code><span class="label">verticalAlign</span>:String</code> (default = <code>null</code>)<code></code> &mdash;  The alignment position along the vertical axis. If <code>null</code>,
126
 
          the target's vertical position will not change.
127
 
   </td>
128
 
</tr>
129
 
</table>
130
 
</div>
131
 
<a name="localToLocal()"></a>
132
 
<table cellspacing="0" cellpadding="0" class="detailHeader">
133
 
<tr>
134
 
<td class="detailHeaderName">localToLocal</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
135
 
</tr>
136
 
</table>
137
 
<div class="detailBody">
138
 
<code>public static function localToLocal(point:Point, firstDisplayObject:DisplayObject, secondDisplayObject:DisplayObject):Point</code><p>
139
 
   Converts a point from the local coordinate system of one DisplayObject to
140
 
   the local coordinate system of another DisplayObject.
141
 
      </p><span class="label">Parameters</span>
142
 
<table border="0" cellspacing="0" cellpadding="0">
143
 
<tr>
144
 
<td width="20px"></td><td><code><span class="label">point</span>:Point</code> &mdash;     the point to convert
145
 
   </td>
146
 
</tr>
147
 
<tr>
148
 
<td class="paramSpacer">&nbsp;</td>
149
 
</tr>
150
 
<tr>
151
 
<td width="20px"></td><td><code><span class="label">firstDisplayObject</span>:DisplayObject</code> &mdash; the original coordinate system
152
 
   </td>
153
 
</tr>
154
 
<tr>
155
 
<td class="paramSpacer">&nbsp;</td>
156
 
</tr>
157
 
<tr>
158
 
<td width="20px"></td><td><code><span class="label">secondDisplayObject</span>:DisplayObject</code> &mdash; the new coordinate system
159
 
   </td>
160
 
</tr>
161
 
</table>
162
 
<p></p>
163
 
<span class="label">Returns</span>
164
 
<table border="0" cellspacing="0" cellpadding="0">
165
 
<tr>
166
 
<td width="20"></td><td><code>Point</code></td>
167
 
</tr>
168
 
</table>
169
 
</div>
170
 
<a name="resizeAndMaintainAspectRatio()"></a>
171
 
<table cellspacing="0" cellpadding="0" class="detailHeader">
172
 
<tr>
173
 
<td class="detailHeaderName">resizeAndMaintainAspectRatio</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
174
 
</tr>
175
 
</table>
176
 
<div class="detailBody">
177
 
<code>public static function resizeAndMaintainAspectRatio(target:DisplayObject, width:Number, height:Number, aspectRatio:Number):void</code><p>
178
 
   Resizes a DisplayObject to fit into specified bounds such that the
179
 
   aspect ratio of the target's width and height does not change.
180
 
   
181
 
   </p><span class="label">Parameters</span>
182
 
<table border="0" cellspacing="0" cellpadding="0">
183
 
<tr>
184
 
<td width="20px"></td><td><code><span class="label">target</span>:DisplayObject</code> &mdash;  The DisplayObject to resize.
185
 
   </td>
186
 
</tr>
187
 
<tr>
188
 
<td class="paramSpacer">&nbsp;</td>
189
 
</tr>
190
 
<tr>
191
 
<td width="20px"></td><td><code><span class="label">width</span>:Number</code> &mdash;   The desired width for the target.
192
 
   </td>
193
 
</tr>
194
 
<tr>
195
 
<td class="paramSpacer">&nbsp;</td>
196
 
</tr>
197
 
<tr>
198
 
<td width="20px"></td><td><code><span class="label">height</span>:Number</code> &mdash;  The desired height for the target.
199
 
   </td>
200
 
</tr>
201
 
<tr>
202
 
<td class="paramSpacer">&nbsp;</td>
203
 
</tr>
204
 
<tr>
205
 
<td width="20px"></td><td><code><span class="label">aspectRatio</span>:Number</code> &mdash; The desired aspect ratio. If NaN, the aspect
206
 
         ratio is calculated from the target's current
207
 
         width and height.
208
 
   </td>
209
 
</tr>
210
 
</table>
211
 
</div>
212
 
<br>
213
 
<br>
214
 
<hr>
215
 
<br>
216
 
<p></p>
217
 
<center class="copyright"> 
218
 
</center>
219
 
</div>
220
 
</body>
221
 
</html>
222
 
<!-- -->