![]() Void setLineStyle(String objName, int style) Shows or hides the all objects in the given layer Void setLayerVisible(int layer, boolean visible) Returns whether the rename was successful Turns the trace of the object with the given name on or off.īoolean renameObject(String oldObjName, String newObjName) Void setTrace(String objName, boolean flag) Sets the "Fixed" and "Selection Allowed" state of the object with the given name. ![]() Void setFixed(String objName, boolean fixed, boolean selectionAllowed) Possible label styles are NAME = 0, NAME_VALUE = 1, VALUE = 2 and (from GeoGebra 3.2) CAPTION = 3 Sets the label style of the object with the given name in the graphics window. Void setLabelStyle(String objName, int style) Shows or hides the label of the object with the given name in the graphics window. Void setLabelVisible(String objName, boolean visible) Shows or hides the object with the given name in the graphics window. Void setVisible(String objName, boolean visible) Sets the color of the object with the given name. Void setColor(String objName, int red, int green, int Sets the caption of object with given name. Void setCaption(String objName, String caption) Note: if the specified object is not a point, vector, line or absolutely positioned object (text, button, checkbox, input box) nothing is done. Sets the coordinates of the object with the given name. Void setCoords(String objName, double x, double y, double z) Void setCoords(String objName, double x, double y) Sets the value of the list element at position 'i' to 'value' Void setListValue(String objName, int i, double value) For any other object type, nothing is done. Sets the text value of the object with the given name. Void setTextValue(String objName, String value) Note: if the specified object is boolean, use a value of 1 to set it to true and any other value to set it to false. Sets the double value of the object with the given name. Void setValue(String objName, double value) Setting the state of objects General methods Method SignatureĪffects or not the status of "auxiliary object" to object geo. Useful if you want the user to be able to undo that action of evalCommand eg if you have made an HTML button to act as a custom tool Passes the string to GeoGebra's CAS and returns the result as a String. Like evalCommand(), but the return value is a String containing a comma-separated list of the labels of the created objects eg "A,B,C" String evalCommandGetLabels(String cmdString) ![]() ![]() Note: you must use English commands names Returns whether command evaluation was successful.įrom GeoGebra 3.2 you can pass multiple commands at once by separating them with \n. Commands and Undo-Points Method SignatureĮvaluates the given string just like it would be evaluated when entered into GeoGebra's input bar. Please see Style Bar Options for Tools and Objects for more information.Note: Arguments in square brackets can be omitted. display additional Views in the GeoGebra window (GeoGebra Web and Tablet Apps)ĭepending on the Tool or object you select, the buttons in the Style Bar adapt to your selection.open the Properties Dialog (GeoGebra Web and Tablet Apps).show / hide the coordinate axes and a grid (different kinds of grids in the GeoGebra Web and Tablet Apps).The Graphics View Style Bar contains buttons to If the copied object depends on at least one point then it can snap onto existing points when pasted (but only the point following the mouse pointer will do this).ĭisplay of Mathematical Objects Graphics View Style Bar The pasted object is fixed when you click on the Graphics View. Example: If you copy objects depending on sliders into a new window, it will copy the slider (invisible) into the window, too. ![]()
0 Comments
Leave a Reply. |