Package geogebra.main

Examples of geogebra.main.Application


  protected String strDependent = " (dependent)";
 
  protected void createDefaultGeoElements() {
    defaultGeoElements = new HashMap();   
   
    Application app = cons.getApplication();   
//    String strFree = " (" + app.getPlain("free") + ")";
//    String strDependent = " (" + app.getPlain("dependent") + ")";
    //String strFree = " (free)";
    //String strDependent = " (dependent)";
           
View Full Code Here


    int type = getDefaultType(geo);
     
   
    // default
    GeoElement defaultGeo = getDefaultGeo(type);
    Application app = cons.getApplication();
   
    if (defaultGeo != null) {
      geo.setAllVisualProperties(defaultGeo, isReset);   
     
      if(!isReset) {
        // set to highest used layer
        if (app != null) {
          EuclidianView ev = app.getEuclidianView();
          if (ev != null)
            geo.setLayer(ev.getMaxLayerUsed());
        }
      }
    }

        // label visibility
    int labelingStyle = app == null ? LABEL_VISIBLE_USE_DEFAULTS :
                    app.getLabelingStyle();
   
    // automatic labelling:
    // if algebra window open -> all labels
    // else -> no labels
    if (labelingStyle == LABEL_VISIBLE_AUTOMATIC) {
      if(app.hasGuiManager()) {
        labelingStyle = LABEL_VISIBLE_USE_DEFAULTS;
        /* TODO method chains doesn't allow app.getGuiManager().showAlgebraView() to appear here, fix this (F.S.)
        labelingStyle = app.getGuiManager().showAlgebraView() ?
                    LABEL_VISIBLE_USE_DEFAULTS :
                    LABEL_VISIBLE_ALWAYS_OFF;*/
 
View Full Code Here

TOP

Related Classes of geogebra.main.Application

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.