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.DefaultOnStateChangedListener (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.DefaultOnStateChangedListener (library 3.9.0 API)"; 15 } 16 } 17 catch(err) { 18 } 19//--> 20var methods = {"i0":10,"i1":10}; 21var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete 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.DefaultOnImageEventListener.html" title="class in com.davemorrissey.labs.subscaleview"><span class="typeNameLink">Prev Class</span></a></li> 51<li><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.OnAnimationEventListener.html" title="interface in com.davemorrissey.labs.subscaleview"><span class="typeNameLink">Next Class</span></a></li> 52</ul> 53<ul class="navList"> 54<li><a href="../../../../index.html?com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.DefaultOnStateChangedListener.html" target="_top">Frames</a></li> 55<li><a href="SubsamplingScaleImageView.DefaultOnStateChangedListener.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><a href="#constructor.summary">Constr</a> | </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><a href="#constructor.detail">Constr</a> | </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="Class SubsamplingScaleImageView.DefaultOnStateChangedListener" class="title">Class SubsamplingScaleImageView.DefaultOnStateChangedListener</h2> 95</div> 96<div class="contentContainer"> 97<ul class="inheritance"> 98<li><a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> 99<li> 100<ul class="inheritance"> 101<li>com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.DefaultOnStateChangedListener</li> 102</ul> 103</li> 104</ul> 105<div class="description"> 106<ul class="blockList"> 107<li class="blockList"> 108<dl> 109<dt>All Implemented Interfaces:</dt> 110<dd><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.OnStateChangedListener.html" title="interface in com.davemorrissey.labs.subscaleview">SubsamplingScaleImageView.OnStateChangedListener</a></dd> 111</dl> 112<dl> 113<dt>Enclosing class:</dt> 114<dd><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.html" title="class in com.davemorrissey.labs.subscaleview">SubsamplingScaleImageView</a></dd> 115</dl> 116<hr> 117<br> 118<pre>public static class <span class="typeNameLabel">SubsamplingScaleImageView.DefaultOnStateChangedListener</span> 119extends <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> 120implements <a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.OnStateChangedListener.html" title="interface in com.davemorrissey.labs.subscaleview">SubsamplingScaleImageView.OnStateChangedListener</a></pre> 121<div class="block">Default implementation of <a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.OnStateChangedListener.html" title="interface in com.davemorrissey.labs.subscaleview"><code>SubsamplingScaleImageView.OnStateChangedListener</code></a>. This does nothing in any method.</div> 122</li> 123</ul> 124</div> 125<div class="summary"> 126<ul class="blockList"> 127<li class="blockList"> 128<!-- ======== CONSTRUCTOR SUMMARY ======== --> 129<ul class="blockList"> 130<li class="blockList"><a name="constructor.summary"> 131<!-- --> 132</a> 133<h3>Constructor Summary</h3> 134<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 135<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 136<tr> 137<th class="colOne" scope="col">Constructor and Description</th> 138</tr> 139<tr class="altColor"> 140<td class="colOne"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.DefaultOnStateChangedListener.html#DefaultOnStateChangedListener--">DefaultOnStateChangedListener</a></span>()</code> </td> 141</tr> 142</table> 143</li> 144</ul> 145<!-- ========== METHOD SUMMARY =========== --> 146<ul class="blockList"> 147<li class="blockList"><a name="method.summary"> 148<!-- --> 149</a> 150<h3>Method Summary</h3> 151<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 152<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="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> 153<tr> 154<th class="colFirst" scope="col">Modifier and Type</th> 155<th class="colLast" scope="col">Method and Description</th> 156</tr> 157<tr id="i0" class="altColor"> 158<td class="colFirst"><code>void</code></td> 159<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.DefaultOnStateChangedListener.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, 160 int origin)</code> 161<div class="block">The source center has been changed.</div> 162</td> 163</tr> 164<tr id="i1" class="rowColor"> 165<td class="colFirst"><code>void</code></td> 166<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.DefaultOnStateChangedListener.html#onScaleChanged-float-int-">onScaleChanged</a></span>(float newScale, 167 int origin)</code> 168<div class="block">The scale has changed.</div> 169</td> 170</tr> 171</table> 172<ul class="blockList"> 173<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> 174<!-- --> 175</a> 176<h3>Methods inherited from class java.lang.<a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> 177<code><a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> 178</ul> 179</li> 180</ul> 181</li> 182</ul> 183</div> 184<div class="details"> 185<ul class="blockList"> 186<li class="blockList"> 187<!-- ========= CONSTRUCTOR DETAIL ======== --> 188<ul class="blockList"> 189<li class="blockList"><a name="constructor.detail"> 190<!-- --> 191</a> 192<h3>Constructor Detail</h3> 193<a name="DefaultOnStateChangedListener--"> 194<!-- --> 195</a> 196<ul class="blockListLast"> 197<li class="blockList"> 198<h4>DefaultOnStateChangedListener</h4> 199<pre>public DefaultOnStateChangedListener()</pre> 200</li> 201</ul> 202</li> 203</ul> 204<!-- ============ METHOD DETAIL ========== --> 205<ul class="blockList"> 206<li class="blockList"><a name="method.detail"> 207<!-- --> 208</a> 209<h3>Method Detail</h3> 210<a name="onCenterChanged-android.graphics.PointF-int-"> 211<!-- --> 212</a> 213<ul class="blockList"> 214<li class="blockList"> 215<h4>onCenterChanged</h4> 216<pre>public 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, 217 int origin)</pre> 218<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.OnStateChangedListener.html#onCenterChanged-android.graphics.PointF-int-">SubsamplingScaleImageView.OnStateChangedListener</a></code></span></div> 219<div class="block">The source center has been changed. This can be a result of panning or zooming.</div> 220<dl> 221<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 222<dd><code><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.OnStateChangedListener.html#onCenterChanged-android.graphics.PointF-int-">onCenterChanged</a></code> in interface <code><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.OnStateChangedListener.html" title="interface in com.davemorrissey.labs.subscaleview">SubsamplingScaleImageView.OnStateChangedListener</a></code></dd> 223<dt><span class="paramLabel">Parameters:</span></dt> 224<dd><code>newCenter</code> - The new source center point.</dd> 225<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> 226</dl> 227</li> 228</ul> 229<a name="onScaleChanged-float-int-"> 230<!-- --> 231</a> 232<ul class="blockListLast"> 233<li class="blockList"> 234<h4>onScaleChanged</h4> 235<pre>public void onScaleChanged(float newScale, 236 int origin)</pre> 237<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.OnStateChangedListener.html#onScaleChanged-float-int-">SubsamplingScaleImageView.OnStateChangedListener</a></code></span></div> 238<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 239 whether the image is fully zoomed in or out.</div> 240<dl> 241<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 242<dd><code><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.OnStateChangedListener.html#onScaleChanged-float-int-">onScaleChanged</a></code> in interface <code><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.OnStateChangedListener.html" title="interface in com.davemorrissey.labs.subscaleview">SubsamplingScaleImageView.OnStateChangedListener</a></code></dd> 243<dt><span class="paramLabel">Parameters:</span></dt> 244<dd><code>newScale</code> - The new scale.</dd> 245<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> 246</dl> 247</li> 248</ul> 249</li> 250</ul> 251</li> 252</ul> 253</div> 254</div> 255<!-- ========= END OF CLASS DATA ========= --> 256<!-- ======= START OF BOTTOM NAVBAR ====== --> 257<div class="bottomNav"><a name="navbar.bottom"> 258<!-- --> 259</a> 260<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> 261<a name="navbar.bottom.firstrow"> 262<!-- --> 263</a> 264<ul class="navList" title="Navigation"> 265<li><a href="../../../../overview-summary.html">Overview</a></li> 266<li><a href="package-summary.html">Package</a></li> 267<li class="navBarCell1Rev">Class</li> 268<li><a href="package-tree.html">Tree</a></li> 269<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 270<li><a href="../../../../index-all.html">Index</a></li> 271<li><a href="../../../../help-doc.html">Help</a></li> 272</ul> 273</div> 274<div class="subNav"> 275<ul class="navList"> 276<li><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.DefaultOnImageEventListener.html" title="class in com.davemorrissey.labs.subscaleview"><span class="typeNameLink">Prev Class</span></a></li> 277<li><a href="../../../../com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.OnAnimationEventListener.html" title="interface in com.davemorrissey.labs.subscaleview"><span class="typeNameLink">Next Class</span></a></li> 278</ul> 279<ul class="navList"> 280<li><a href="../../../../index.html?com/davemorrissey/labs/subscaleview/SubsamplingScaleImageView.DefaultOnStateChangedListener.html" target="_top">Frames</a></li> 281<li><a href="SubsamplingScaleImageView.DefaultOnStateChangedListener.html" target="_top">No Frames</a></li> 282</ul> 283<ul class="navList" id="allclasses_navbar_bottom"> 284<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 285</ul> 286<div> 287<script type="text/javascript"><!-- 288 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 289 if(window==top) { 290 allClassesLink.style.display = "block"; 291 } 292 else { 293 allClassesLink.style.display = "none"; 294 } 295 //--> 296</script> 297</div> 298<div> 299<ul class="subNavList"> 300<li>Summary: </li> 301<li>Nested | </li> 302<li>Field | </li> 303<li><a href="#constructor.summary">Constr</a> | </li> 304<li><a href="#method.summary">Method</a></li> 305</ul> 306<ul class="subNavList"> 307<li>Detail: </li> 308<li>Field | </li> 309<li><a href="#constructor.detail">Constr</a> | </li> 310<li><a href="#method.detail">Method</a></li> 311</ul> 312</div> 313<a name="skip.navbar.bottom"> 314<!-- --> 315</a></div> 316<!-- ======== END OF BOTTOM NAVBAR ======= --> 317</body> 318</html> 319