Android Open Source - 101AndroidApps Setting






From Project

Back to project page 101AndroidApps.

License

The source code is released under:

Licenced under the Creative Commons Attribution 4.0 licence. For full text see http://creativecommons.org/licenses/by/4.0/

If you think the Android project 101AndroidApps listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.hulzenga.ioi.android.app_006;
/*from   w ww.  j a va2  s  .  c  o m*/
import com.hulzenga.ioi.android.R;

import android.hardware.Camera.Parameters;

/**
 * Created by jouke on 6/3/14.
 */
public enum Setting {


  CAMERA_FACING_FRONT( "front", R.drawable.app_006_camera_facing_front),
  CAMERA_FACING_BACK( "back", R.drawable.app_006_camera_facing_back),

  FLASH_MODE_OFF(Parameters.FLASH_MODE_OFF, R.drawable.app_006_flash_no),
  FLASH_MODE_ON(Parameters.FLASH_MODE_ON, R.drawable.app_006_flash),
  FLASH_MODE_AUTO(Parameters.FLASH_MODE_AUTO, R.drawable.app_006_flash_automatic),
  FLASH_MODE_RED_EYE(Parameters.FLASH_MODE_RED_EYE, R.drawable.app_006_flash_red_eye),
  FLASH_MODE_TORCH(Parameters.FLASH_MODE_TORCH, R.drawable.app_006_flash_torch),

  EFFECT_NONE(Parameters.EFFECT_NONE, R.drawable.app_006_color_effect_none),
  EFFECT_MONO(Parameters.EFFECT_MONO, R.drawable.app_006_color_effect_mono),
  EFFECT_NEGATIVE(Parameters.EFFECT_NEGATIVE, R.drawable.app_006_color_effect_negative),
  EFFECT_SEPIA(Parameters.EFFECT_SEPIA, R.drawable.app_006_color_effect_sepia),
  EFFECT_SOLARIZE(Parameters.EFFECT_SOLARIZE, R.drawable.app_006_color_effect_solarize),
  EFFECT_POSTERIZE(Parameters.EFFECT_POSTERIZE, R.drawable.app_006_color_effect_posterize),
  EFFECT_AQUA(Parameters.EFFECT_AQUA, R.drawable.app_006_color_effect_aqua),
  EFFECT_BLACKBOARD(Parameters.EFFECT_BLACKBOARD, R.drawable.app_006_color_effect_blackboard),
  EFFECT_WHITEBOARD(Parameters.EFFECT_WHITEBOARD, R.drawable.app_006_color_effect_whiteboard),


  EXPOSURE,
  IMAGE_SIZE,
  FOCUS,
  SCENE_MODE,
  ISO,
  WHITE_BALANCE,
  TIMER;


  public enum IconGroup {
    CAMERA(
        CAMERA_FACING_FRONT, CAMERA_FACING_BACK
    ),
    FLASH(
        FLASH_MODE_OFF, FLASH_MODE_ON, FLASH_MODE_AUTO, FLASH_MODE_RED_EYE, FLASH_MODE_TORCH
    ),
    COLOR_EFFECT(
        EFFECT_NONE,EFFECT_MONO,EFFECT_NEGATIVE,EFFECT_SEPIA,EFFECT_SOLARIZE,
        EFFECT_POSTERIZE,EFFECT_AQUA,EFFECT_BLACKBOARD,EFFECT_WHITEBOARD
    );

    private Setting[] mSettings;

    private IconGroup(Setting... subSettings) {
      mSettings = subSettings;
    }

    public Setting[] getSettings() {
      return mSettings;
    }
  }

  public enum WordGroup {

    OTHER_SETTINGS(
        IMAGE_SIZE, FOCUS, SCENE_MODE, ISO, WHITE_BALANCE, TIMER
    );

    private Setting[] mSettings;

    private WordGroup(Setting... subSettings) {
      mSettings = subSettings;
    }

    public Setting[] getSettings() {
      return mSettings;
    }
  }

  private String mParam;
  private int mIcon;
  private boolean mAvailable = true;

  private Setting(){};
  private Setting(String param, int icon) {
    mParam = param;
    mIcon = icon;
  }

  public String getParam() {
    return mParam;
  }

  public int getIcon() {
    return mIcon;
  }
}




Java Source Code List

com.hulzenga.ioi.android.AppActivity.java
com.hulzenga.ioi.android.AppDetailsDialog.java
com.hulzenga.ioi.android.App.java
com.hulzenga.ioi.android.TableOfContentsActivity.java
com.hulzenga.ioi.android.app_001.HelloWorldActivity.java
com.hulzenga.ioi.android.app_002.Ball.java
com.hulzenga.ioi.android.app_002.BouncyBallsActivity.java
com.hulzenga.ioi.android.app_002.BouncyBallsView.java
com.hulzenga.ioi.android.app_003.MonsterDatabaseActivity.java
com.hulzenga.ioi.android.app_003.MonsterEditDialog.java
com.hulzenga.ioi.android.app_003.MonsterGenerator.java
com.hulzenga.ioi.android.app_003.MonsterListAdapter.java
com.hulzenga.ioi.android.app_003.database.MonsterContract.java
com.hulzenga.ioi.android.app_003.database.MonsterDatabaseHelper.java
com.hulzenga.ioi.android.app_003.database.MonsterProvider.java
com.hulzenga.ioi.android.app_004.BouncyBall3dActivity.java
com.hulzenga.ioi.android.app_004.BouncyBall3dGLSurfaceView.java
com.hulzenga.ioi.android.app_004.BouncyBall3dRenderer.java
com.hulzenga.ioi.android.app_004.BouncyBallGame.java
com.hulzenga.ioi.android.app_005.ElementActivity.java
com.hulzenga.ioi.android.app_005.ElementAdapter.java
com.hulzenga.ioi.android.app_005.ElementAnimator.java
com.hulzenga.ioi.android.app_005.ElementSnakeView.java
com.hulzenga.ioi.android.app_005.ElementView.java
com.hulzenga.ioi.android.app_005.Element.java
com.hulzenga.ioi.android.app_006.EmptyFragment.java
com.hulzenga.ioi.android.app_006.ExposureFragment.java
com.hulzenga.ioi.android.app_006.SettingChangeListener.java
com.hulzenga.ioi.android.app_006.SettingIconFragment.java
com.hulzenga.ioi.android.app_006.SettingMenuFragment.java
com.hulzenga.ioi.android.app_006.SettingMenuLvl2Fragment.java
com.hulzenga.ioi.android.app_006.Setting.java
com.hulzenga.ioi.android.app_006.SimpleCameraActivity.java
com.hulzenga.ioi.android.app_006.SimpleCameraPreview.java
com.hulzenga.ioi.android.app_007.ButtonsFragment.java
com.hulzenga.ioi.android.app_007.HighScores.java
com.hulzenga.ioi.android.app_007.LinksFragment.java
com.hulzenga.ioi.android.app_007.Menu.java
com.hulzenga.ioi.android.app_007.Review.java
com.hulzenga.ioi.android.app_007.Score.java
com.hulzenga.ioi.android.app_007.StatusFragment.java
com.hulzenga.ioi.android.app_007.WikiGameActivity.java
com.hulzenga.ioi.android.app_007.Wiki.java
com.hulzenga.ioi.android.app_008.OverheidActivity.java
com.hulzenga.ioi.android.app_008.OverheidFeedAdapter.java
com.hulzenga.ioi.android.app_008.OverheidFeedFragment.java
com.hulzenga.ioi.android.app_008.OverheidFeedItem.java
com.hulzenga.ioi.android.app_008.OverheidFeed.java
com.hulzenga.ioi.android.app_008.OverheidPagerAdapter.java
com.hulzenga.ioi.android.app_009.ThumbsUpActivity.java
com.hulzenga.ioi.android.app_009.ThumbsUpServer.java
com.hulzenga.ioi.android.app_009.ThumbsUpService.java
com.hulzenga.ioi.android.app_010.CompassActivity.java
com.hulzenga.ioi.android.app_010.CompassDetailsView.java
com.hulzenga.ioi.android.app_010.CompassView.java
com.hulzenga.ioi.android.util.Constrain.java
com.hulzenga.ioi.android.util.DeveloperTools.java
com.hulzenga.ioi.android.util.FileManager.java
com.hulzenga.ioi.android.util.ScreenMetrics.java
com.hulzenga.ioi.android.util.open_gl.ColorFunctionFactory.java
com.hulzenga.ioi.android.util.open_gl.ColorFunction.java
com.hulzenga.ioi.android.util.open_gl.ShaderTools.java
com.hulzenga.ioi.android.util.open_gl.engine.NodeController.java
com.hulzenga.ioi.android.util.open_gl.engine.SceneGraph.java
com.hulzenga.ioi.android.util.open_gl.engine.SceneNode.java
com.hulzenga.ioi.android.util.open_gl.geometry.Box.java
com.hulzenga.ioi.android.util.open_gl.geometry.Cylinder.java
com.hulzenga.ioi.android.util.open_gl.geometry.Geometry.java
com.hulzenga.ioi.android.util.open_gl.geometry.Grid.java
com.hulzenga.ioi.android.util.open_gl.geometry.Sphere.java
com.hulzenga.ioi.android.util.open_gl.geometry.Transform.java
com.hulzenga.ioi.android.util.open_gl.vector.Vec3.java
com.hulzenga.ioi.android.util.open_gl.vector.Vec4.java
fi.iki.elonen.NanoHTTPD.java