1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!-- NewPage --> 3<html lang="en"> 4<head> 5<!-- Generated by javadoc --> 6<title>SubsamplingScaleImageView.OnStateChangedListener (library 3.9.0 API)</title> 7<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> 8<script type="text/javascript" src="../../../../script.js"></script> 9</head> 10<body> 11<script type="text/javascript"><!-- 12 try { 13 if (location.href.indexOf('is-external=true') == -1) { 14 parent.document.title="SubsamplingScaleImageView.OnStateChangedListener (library 3.9.0 API)"; 15 } 16 } 17 catch(err) { 18 } 19//--> 20var methods = {"i0":6,"i1":6}; 21var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]}; 22var altColor = "altColor"; 23var rowColor = "rowColor"; 24var tableTab = "tableTab"; 25var activeTableTab = "activeTableTab"; 26</script> 27<noscript> 28<div>JavaScript is disabled on your browser.</div> 29</noscript> 30<!-- ========= START OF TOP NAVBAR ======= --> 31<div class="topNav"><a name="navbar.top"> 32<!-- --> 33</a> 34<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> 35<a name="navbar.top.firstrow"> 36<!-- --> 37</a> 38<ul class="navList" title="Navigation"> 39<li><a href="../../../../overview-summary.html">Overview</a></li> 40<li><a href="package-summary.html">Package</a></li> 41<li class="navBarCell1Rev">Class</li> 42<li><a href="package-tree.html">Tree</a></li> 43<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 44<li><a href="../../../../index-all.html">Index</a></li> 45<li><a href="../../../../help-doc.html">Help</a></li> 46</ul> 47</div> 48<div class="subNav"> 49<ul class="navList"> 50<li><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.OnImageEventListener.html" title="interface in com.davemorrissey.labs.subscaleview"><span class="typeNameLink">Prev Class</span></a></li> 51<li>Next Class</li> 52</ul> 53<ul class="navList"> 54<li><a href="../../../../index.html?com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.OnStateChangedListener.html" target="_top">Frames</a></li> 55<li><a href="SubsamplingScaleImageView.OnStateChangedListener.html" target="_top">No Frames</a></li> 56</ul> 57<ul class="navList" id="allclasses_navbar_top"> 58<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 59</ul> 60<div> 61<script type="text/javascript"><!-- 62 allClassesLink = document.getElementById("allclasses_navbar_top"); 63 if(window==top) { 64 allClassesLink.style.display = "block"; 65 } 66 else { 67 allClassesLink.style.display = "none"; 68 } 69 //--> 70</script> 71</div> 72<div> 73<ul class="subNavList"> 74<li>Summary: </li> 75<li>Nested | </li> 76<li>Field | </li> 77<li>Constr | </li> 78<li><a href="#method.summary">Method</a></li> 79</ul> 80<ul class="subNavList"> 81<li>Detail: </li> 82<li>Field | </li> 83<li>Constr | </li> 84<li><a href="#method.detail">Method</a></li> 85</ul> 86</div> 87<a name="skip.navbar.top"> 88<!-- --> 89</a></div> 90<!-- ========= END OF TOP NAVBAR ========= --> 91<!-- ======== START OF CLASS DATA ======== --> 92<div class="header"> 93<div class="subTitle">com.davemorrissey.labs.subscaleview</div> 94<h2 title="Interface SubsamplingScaleImageView.OnStateChangedListener" class="title">Interface SubsamplingScaleImageView.OnStateChangedListener</h2> 95</div> 96<div class="contentContainer"> 97<div class="description"> 98<ul class="blockList"> 99<li class="blockList"> 100<dl> 101<dt>All Known Implementing Classes:</dt> 102<dd><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.DefaultOnStateChangedListener.html" title="class in com.davemorrissey.labs.subscaleview">SubsamplingScaleImageView.DefaultOnStateChangedListener</a></dd> 103</dl> 104<dl> 105<dt>Enclosing class:</dt> 106<dd><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html" title="class in com.davemorrissey.labs.subscaleview">SubsamplingScaleImageView</a></dd> 107</dl> 108<hr> 109<br> 110<pre>public static interface <span class="typeNameLabel">SubsamplingScaleImageView.OnStateChangedListener</span></pre> 111<div class="block">An event listener, allowing activities to be notified of pan and zoom events. Initialisation 112 and calls made by your code do not trigger events; touch events and animations do. Methods in 113 this listener will be called on the UI thread and may be called very frequently - your 114 implementation should return quickly.</div> 115</li> 116</ul> 117</div> 118<div class="summary"> 119<ul class="blockList"> 120<li class="blockList"> 121<!-- ========== METHOD SUMMARY =========== --> 122<ul class="blockList"> 123<li class="blockList"><a name="method.summary"> 124<!-- --> 125</a> 126<h3>Method Summary</h3> 127<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 128<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span></caption> 129<tr> 130<th class="colFirst" scope="col">Modifier and Type</th> 131<th class="colLast" scope="col">Method and Description</th> 132</tr> 133<tr id="i0" class="altColor"> 134<td class="colFirst"><code>void</code></td> 135<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.OnStateChangedListener.html#onCenterChanged-android.graphics.PointF-int-">onCenterChanged</a></span>(<a href="https://developer.android.com/reference/android/graphics/PointF.html?is-external=true" title="class or interface in android.graphics">PointF</a> newCenter, 136 int origin)</code> 137<div class="block">The source center has been changed.</div> 138</td> 139</tr> 140<tr id="i1" class="rowColor"> 141<td class="colFirst"><code>void</code></td> 142<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.OnStateChangedListener.html#onScaleChanged-float-int-">onScaleChanged</a></span>(float newScale, 143 int origin)</code> 144<div class="block">The scale has changed.</div> 145</td> 146</tr> 147</table> 148</li> 149</ul> 150</li> 151</ul> 152</div> 153<div class="details"> 154<ul class="blockList"> 155<li class="blockList"> 156<!-- ============ METHOD DETAIL ========== --> 157<ul class="blockList"> 158<li class="blockList"><a name="method.detail"> 159<!-- --> 160</a> 161<h3>Method Detail</h3> 162<a name="onScaleChanged-float-int-"> 163<!-- --> 164</a> 165<ul class="blockList"> 166<li class="blockList"> 167<h4>onScaleChanged</h4> 168<pre>void onScaleChanged(float newScale, 169 int origin)</pre> 170<div class="block">The scale has changed. Use with <a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#getMaxScale--"><code>SubsamplingScaleImageView.getMaxScale()</code></a> and <a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#getMinScale--"><code>SubsamplingScaleImageView.getMinScale()</code></a> to determine 171 whether the image is fully zoomed in or out.</div> 172<dl> 173<dt><span class="paramLabel">Parameters:</span></dt> 174<dd><code>newScale</code> - The new scale.</dd> 175<dd><code>origin</code> - Where the event originated from - one of <a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#ORIGIN_ANIM"><code>SubsamplingScaleImageView.ORIGIN_ANIM</code></a>, <a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#ORIGIN_TOUCH"><code>SubsamplingScaleImageView.ORIGIN_TOUCH</code></a>.</dd> 176</dl> 177</li> 178</ul> 179<a name="onCenterChanged-android.graphics.PointF-int-"> 180<!-- --> 181</a> 182<ul class="blockListLast"> 183<li class="blockList"> 184<h4>onCenterChanged</h4> 185<pre>void onCenterChanged(<a href="https://developer.android.com/reference/android/graphics/PointF.html?is-external=true" title="class or interface in android.graphics">PointF</a> newCenter, 186 int origin)</pre> 187<div class="block">The source center has been changed. This can be a result of panning or zooming.</div> 188<dl> 189<dt><span class="paramLabel">Parameters:</span></dt> 190<dd><code>newCenter</code> - The new source center point.</dd> 191<dd><code>origin</code> - Where the event originated from - one of <a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#ORIGIN_ANIM"><code>SubsamplingScaleImageView.ORIGIN_ANIM</code></a>, <a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html#ORIGIN_TOUCH"><code>SubsamplingScaleImageView.ORIGIN_TOUCH</code></a>.</dd> 192</dl> 193</li> 194</ul> 195</li> 196</ul> 197</li> 198</ul> 199</div> 200</div> 201<!-- ========= END OF CLASS DATA ========= --> 202<!-- ======= START OF BOTTOM NAVBAR ====== --> 203<div class="bottomNav"><a name="navbar.bottom"> 204<!-- --> 205</a> 206<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> 207<a name="navbar.bottom.firstrow"> 208<!-- --> 209</a> 210<ul class="navList" title="Navigation"> 211<li><a href="../../../../overview-summary.html">Overview</a></li> 212<li><a href="package-summary.html">Package</a></li> 213<li class="navBarCell1Rev">Class</li> 214<li><a href="package-tree.html">Tree</a></li> 215<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 216<li><a href="../../../../index-all.html">Index</a></li> 217<li><a href="../../../../help-doc.html">Help</a></li> 218</ul> 219</div> 220<div class="subNav"> 221<ul class="navList"> 222<li><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.OnImageEventListener.html" title="interface in com.davemorrissey.labs.subscaleview"><span class="typeNameLink">Prev Class</span></a></li> 223<li>Next Class</li> 224</ul> 225<ul class="navList"> 226<li><a href="../../../../index.html?com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.OnStateChangedListener.html" target="_top">Frames</a></li> 227<li><a href="SubsamplingScaleImageView.OnStateChangedListener.html" target="_top">No Frames</a></li> 228</ul> 229<ul class="navList" id="allclasses_navbar_bottom"> 230<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 231</ul> 232<div> 233<script type="text/javascript"><!-- 234 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 235 if(window==top) { 236 allClassesLink.style.display = "block"; 237 } 238 else { 239 allClassesLink.style.display = "none"; 240 } 241 //--> 242</script> 243</div> 244<div> 245<ul class="subNavList"> 246<li>Summary: </li> 247<li>Nested | </li> 248<li>Field | </li> 249<li>Constr | </li> 250<li><a href="#method.summary">Method</a></li> 251</ul> 252<ul class="subNavList"> 253<li>Detail: </li> 254<li>Field | </li> 255<li>Constr | </li> 256<li><a href="#method.detail">Method</a></li> 257</ul> 258</div> 259<a name="skip.navbar.bottom"> 260<!-- --> 261</a></div> 262<!-- ======== END OF BOTTOM NAVBAR ======= --> 263</body> 264</html> 265