Implement draw(), range() and nearest().