LocatorAutoCreate

LocatorAutoCreate

is an option for LocatorPane, Manipulate, and related functions that specifies whether new locators should be created when clicking away from existing locators.

Details

  • The following settings can be given:
  • Truecreate a new locator with any Click
    {min,max}allow between min and max locators
    minallow anything more than min locators
    Allcreate a new locator with any mouse click
    {All,{min,max}}limit the number of possible locators
  • Use Click on Windows, Click on Macintosh, and Click on Linux.
  • With LocatorAutoCreate->True, any Click that does not hit an existing locator will cause a new locator to be created at the position of the click. Click on an existing locator deletes the locator.
  • With LocatorAutoCreate->{min,max}, any Click that would decrease the number of locators below min or above max will have no effect.
  • LocatorAutoCreate->All specifies that any mouse click that does not hit an existing locator should create a new locator. Click deletes a locator.
  • When a new locator is added, its coordinates are placed at the end of the list of coordinates for the enclosing LocatorPane or other object.

Examples

Basic Examples  (1)

Create a Manipulate where points can be added or deleted by Click:

Wolfram Research (2007), LocatorAutoCreate, Wolfram Language function, https://reference.wolfram.com/language/ref/LocatorAutoCreate.html.

Text

Wolfram Research (2007), LocatorAutoCreate, Wolfram Language function, https://reference.wolfram.com/language/ref/LocatorAutoCreate.html.

CMS

Wolfram Language. 2007. "LocatorAutoCreate." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/LocatorAutoCreate.html.

APA

Wolfram Language. (2007). LocatorAutoCreate. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/LocatorAutoCreate.html

BibTeX

@misc{reference.wolfram_2023_locatorautocreate, author="Wolfram Research", title="{LocatorAutoCreate}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/LocatorAutoCreate.html}", note=[Accessed: 19-March-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_locatorautocreate, organization={Wolfram Research}, title={LocatorAutoCreate}, year={2007}, url={https://reference.wolfram.com/language/ref/LocatorAutoCreate.html}, note=[Accessed: 19-March-2024 ]}