Goodwill and Purchased Intangible Assets  - Schedule of Goodwill (Details) $ in Thousands  | 
3 Months Ended | |
|---|---|---|
| 
 Sep. 30, 2016  
USD ($)  
reporting_unit 
 | 
 Jun. 30, 2014  
USD ($) 
 | 
|
| Goodwill | ||
| Number of reporting units | reporting_unit | 4 | |
| Goodwill | ||
| Balance as of June 30, 2016 | $ 335,177 | |
| Goodwill adjustment | 21 | |
| Balance as of September 30, 2016 | 335,198 | |
| Accumulated impairment loss | $ 277,600 | |
| Wafer Inspection | ||
| Goodwill | ||
| Balance as of June 30, 2016 | 281,026 | |
| Goodwill adjustment | 21 | |
| Balance as of September 30, 2016 | 281,047 | |
| Patterning | ||
| Goodwill | ||
| Balance as of June 30, 2016 | 53,255 | |
| Goodwill adjustment | 0 | |
| Balance as of September 30, 2016 | 53,255 | |
| Others | ||
| Goodwill | ||
| Balance as of June 30, 2016 | 896 | |
| Goodwill adjustment | 0 | |
| Balance as of September 30, 2016 | $ 896 | 
| X | ||||||||||
- Definition Amount after accumulated impairment loss of an asset representing future economic benefits arising from other assets acquired in a business combination that are not individually identified and separately recognized. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
  | 
| X | ||||||||||
- Definition Amount of accumulated impairment loss for an asset representing future economic benefits arising from other assets acquired in a business combination that are not individually identified and separately recognized. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
  | 
| X | ||||||||||
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. No definition available. 
  | 
| X | ||||||||||
- Definition A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period. No definition available. 
  | 
| X | ||||||||||
- Definition Amount of increase (decrease) from foreign currency translation adjustments and purchase accounting adjustments of an asset representing future economic benefits arising from other assets acquired in a business combination that are not individually identified and separately recognized. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
  | 
| X | ||||||||||
- Definition Number of reporting units tested for impairment of goodwill. A reporting unit is an operating segment or one level below an operating segment. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
  | 
| X | ||||||||||
- Details 
  | 
| X | ||||||||||
- Details 
  | 
| X | ||||||||||
- Details 
  |