コード例 #1
0
 public void setActualDepth(int actualDepth) {
   if (!safeEquals(myActualDepth, actualDepth)) {
     myActualDepth = actualDepth;
     myListener.actualDepthChanged();
     myThresholdHelper.depthOnThresholdMayBeChanged();
   }
 }
コード例 #2
0
 public void setDepthThreshold(int depthThreshold) {
   if (!safeEquals(myDepthThreshold, depthThreshold)) {
     myDepthThreshold = depthThreshold;
     // no such method in listener -- see also below
     myThresholdHelper.depthOnThresholdMayBeChanged();
   }
 }
コード例 #3
0
 public void setIgnoreDemandedDepth(boolean ignore) {
   if (myIgnoreDemandedDepth != ignore) {
     myIgnoreDemandedDepth = ignore;
     myListener.demandedDepthChanged();
     myThresholdHelper.depthOnThresholdMayBeChanged();
   }
 }
コード例 #4
0
 public void setDemandedDepth(int demandedDepth) {
   if (!safeEquals(myDemandedDepth, demandedDepth)) {
     myDemandedDepth = demandedDepth;
     myListener.demandedDepthChanged();
     myThresholdHelper.depthOnThresholdMayBeChanged();
   }
 }