AI2 Component  (Version nb184)
ComponentConstants.java
Go to the documentation of this file.
1 // -*- mode: java; c-basic-offset: 2; -*-
2 // Copyright 2009-2011 Google, All Rights reserved
3 // Copyright 2011-2018 MIT, All rights reserved
4 // Released under the Apache License, Version 2.0
5 // http://www.apache.org/licenses/LICENSE-2.0
6 
7 package com.google.appinventor.components.common;
8 
13 public class ComponentConstants {
14  private ComponentConstants() {
15  // nothing
16  }
17 
21  public static final int APP_INVENTOR_MIN_SDK = 7;
22 
26  public static final int LAYOUT_ORIENTATION_HORIZONTAL = 0;
27  public static final int LAYOUT_ORIENTATION_VERTICAL = 1;
28 
29  public static final int DEFAULT_ROW_COLUMN = -1;
30 
31  public static final int EMPTY_HV_ARRANGEMENT_WIDTH = 100;
32  public static final int EMPTY_HV_ARRANGEMENT_HEIGHT = 100;
33 
37  public static final int CANVAS_PREFERRED_WIDTH = 32;
38  public static final int CANVAS_PREFERRED_HEIGHT = 48;
39 
44  public static final int VIDEOPLAYER_PREFERRED_WIDTH = 176;
45  public static final int VIDEOPLAYER_PREFERRED_HEIGHT = 144;
46 
50  public static final int TEXTBOX_PREFERRED_WIDTH = 160;
51 
55  public static final int GRAVITY_LEFT = 1;
56  public static final int GRAVITY_RIGHT = 2;
57  public static final int GRAVITY_CENTER_HORIZONTAL = 3;
58 
59  public static final int GRAVITY_TOP = 1;
60  public static final int GRAVITY_CENTER_VERTICAL = 2;
61  public static final int GRAVITY_BOTTOM = 3;
62 
63  public static final int HORIZONTAL_ALIGNMENT_DEFAULT = GRAVITY_LEFT;
64  public static final int VERTICAL_ALIGNMENT_DEFAULT = GRAVITY_TOP;
65 
66  public static final int TEXT_RECEIVING_OFF = 1;
67  public static final int TEXT_RECEIVING_FOREGROUND = 2;
68  public static final int TEXT_RECEIVING_ALWAYS = 3;
69 
73  public static final int LISTVIEW_PREFERRED_WIDTH = 315;
74  public static final int LISTVIEW_PREFERRED_HEIGHT = 40;
75  public static final int LISTVIEW_FILTER_PREFERRED_HEIGHT = 30;
76 
81  public static boolean SCROLLABLE_ARRANGEMENT = true;
82  public static boolean NONSCROLLABLE_ARRANGEMENT = false;
83 
87  public static final String DEFAULT_THEME = "Classic";
88  public static final String DEFAULT_PRIMARY_COLOR = "&HFF3F51B5";
89  public static final String DEFAULT_PRIMARY_DARK_COLOR = "&HFF303F9F";
90  public static final String DEFAULT_ACCENT_COLOR = "&HFFFF4081";
91 
95  public static final int MAP_PREFERRED_WIDTH = 176;
96  public static final int MAP_PREFERRED_HEIGHT = 144;
97  public static final int MARKER_PREFERRED_WIDTH = 30;
98  public static final int MARKER_PREFERRED_HEIGHT = 50;
99  public static final int CIRCLE_PREFERRED_RADIUS = 30;
100  public static final int LINESTRING_PREFERRED_LENGTH = 60;
101  public static final int POLYGON_PREFERRED_WIDTH = 50;
102  public static final int POLYGON_PREFERRED_HEIGHT = 30;
103  public static final int RECTANGLE_PREFERRED_WIDTH = 50;
104  public static final int RECTANGLE_PREFERRED_HEIGHT = 30;
105 
106 }
107 
com.google.appinventor.components.common.ComponentConstants.LISTVIEW_PREFERRED_HEIGHT
static final int LISTVIEW_PREFERRED_HEIGHT
Definition: ComponentConstants.java:74
com.google.appinventor.components.common.ComponentConstants.LISTVIEW_PREFERRED_WIDTH
static final int LISTVIEW_PREFERRED_WIDTH
Definition: ComponentConstants.java:73
com.google.appinventor.components.common.ComponentConstants.VIDEOPLAYER_PREFERRED_HEIGHT
static final int VIDEOPLAYER_PREFERRED_HEIGHT
Definition: ComponentConstants.java:45
com.google.appinventor.components.common.ComponentConstants.DEFAULT_PRIMARY_DARK_COLOR
static final String DEFAULT_PRIMARY_DARK_COLOR
Definition: ComponentConstants.java:89
com.google.appinventor.components.common.ComponentConstants.TEXT_RECEIVING_ALWAYS
static final int TEXT_RECEIVING_ALWAYS
Definition: ComponentConstants.java:68
com.google.appinventor.components.common.ComponentConstants.DEFAULT_THEME
static final String DEFAULT_THEME
Definition: ComponentConstants.java:87
com.google.appinventor.components.common.ComponentConstants.POLYGON_PREFERRED_HEIGHT
static final int POLYGON_PREFERRED_HEIGHT
Definition: ComponentConstants.java:102
com.google.appinventor.components.common.ComponentConstants.MARKER_PREFERRED_WIDTH
static final int MARKER_PREFERRED_WIDTH
Definition: ComponentConstants.java:97
com.google.appinventor.components.common.ComponentConstants.TEXT_RECEIVING_FOREGROUND
static final int TEXT_RECEIVING_FOREGROUND
Definition: ComponentConstants.java:67
com.google.appinventor.components.common.ComponentConstants.NONSCROLLABLE_ARRANGEMENT
static boolean NONSCROLLABLE_ARRANGEMENT
Definition: ComponentConstants.java:82
com.google.appinventor.components.common.ComponentConstants.GRAVITY_LEFT
static final int GRAVITY_LEFT
Definition: ComponentConstants.java:55
com.google.appinventor.components.common.ComponentConstants.RECTANGLE_PREFERRED_HEIGHT
static final int RECTANGLE_PREFERRED_HEIGHT
Definition: ComponentConstants.java:104
com.google.appinventor.components.common.ComponentConstants.GRAVITY_CENTER_VERTICAL
static final int GRAVITY_CENTER_VERTICAL
Definition: ComponentConstants.java:60
com.google.appinventor.components.common.ComponentConstants.LINESTRING_PREFERRED_LENGTH
static final int LINESTRING_PREFERRED_LENGTH
Definition: ComponentConstants.java:100
com.google.appinventor.components.common.ComponentConstants.CANVAS_PREFERRED_HEIGHT
static final int CANVAS_PREFERRED_HEIGHT
Definition: ComponentConstants.java:38
com.google.appinventor.components.common.ComponentConstants.DEFAULT_PRIMARY_COLOR
static final String DEFAULT_PRIMARY_COLOR
Definition: ComponentConstants.java:88
com.google.appinventor.components.common.ComponentConstants.GRAVITY_TOP
static final int GRAVITY_TOP
Definition: ComponentConstants.java:59
com.google.appinventor.components.common.ComponentConstants.MAP_PREFERRED_HEIGHT
static final int MAP_PREFERRED_HEIGHT
Definition: ComponentConstants.java:96
com.google.appinventor.components.common.ComponentConstants.APP_INVENTOR_MIN_SDK
static final int APP_INVENTOR_MIN_SDK
Definition: ComponentConstants.java:21
com.google.appinventor.components.common.ComponentConstants.CANVAS_PREFERRED_WIDTH
static final int CANVAS_PREFERRED_WIDTH
Definition: ComponentConstants.java:37
com.google.appinventor.components.common.ComponentConstants.EMPTY_HV_ARRANGEMENT_WIDTH
static final int EMPTY_HV_ARRANGEMENT_WIDTH
Definition: ComponentConstants.java:31
com.google.appinventor.components.common.ComponentConstants.CIRCLE_PREFERRED_RADIUS
static final int CIRCLE_PREFERRED_RADIUS
Definition: ComponentConstants.java:99
com.google.appinventor.components.common.ComponentConstants.MARKER_PREFERRED_HEIGHT
static final int MARKER_PREFERRED_HEIGHT
Definition: ComponentConstants.java:98
com.google.appinventor.components.common.ComponentConstants.DEFAULT_ACCENT_COLOR
static final String DEFAULT_ACCENT_COLOR
Definition: ComponentConstants.java:90
com.google.appinventor.components.common.ComponentConstants.TEXTBOX_PREFERRED_WIDTH
static final int TEXTBOX_PREFERRED_WIDTH
Definition: ComponentConstants.java:50
com.google.appinventor.components.common.ComponentConstants.SCROLLABLE_ARRANGEMENT
static boolean SCROLLABLE_ARRANGEMENT
Definition: ComponentConstants.java:81
com.google.appinventor.components.common.ComponentConstants.POLYGON_PREFERRED_WIDTH
static final int POLYGON_PREFERRED_WIDTH
Definition: ComponentConstants.java:101
com.google.appinventor.components.common.ComponentConstants.TEXT_RECEIVING_OFF
static final int TEXT_RECEIVING_OFF
Definition: ComponentConstants.java:66
com.google.appinventor.components.common.ComponentConstants.RECTANGLE_PREFERRED_WIDTH
static final int RECTANGLE_PREFERRED_WIDTH
Definition: ComponentConstants.java:103
com.google.appinventor.components.common.ComponentConstants.GRAVITY_CENTER_HORIZONTAL
static final int GRAVITY_CENTER_HORIZONTAL
Definition: ComponentConstants.java:57
com.google.appinventor.components.common.ComponentConstants.GRAVITY_BOTTOM
static final int GRAVITY_BOTTOM
Definition: ComponentConstants.java:61
com.google.appinventor.components.common.ComponentConstants.LAYOUT_ORIENTATION_HORIZONTAL
static final int LAYOUT_ORIENTATION_HORIZONTAL
Definition: ComponentConstants.java:26
com.google.appinventor.components.common.ComponentConstants.VERTICAL_ALIGNMENT_DEFAULT
static final int VERTICAL_ALIGNMENT_DEFAULT
Definition: ComponentConstants.java:64
com.google.appinventor.components.common.ComponentConstants.DEFAULT_ROW_COLUMN
static final int DEFAULT_ROW_COLUMN
Definition: ComponentConstants.java:29
com.google.appinventor.components.common.ComponentConstants.HORIZONTAL_ALIGNMENT_DEFAULT
static final int HORIZONTAL_ALIGNMENT_DEFAULT
Definition: ComponentConstants.java:63
com.google.appinventor.components.common.ComponentConstants.EMPTY_HV_ARRANGEMENT_HEIGHT
static final int EMPTY_HV_ARRANGEMENT_HEIGHT
Definition: ComponentConstants.java:32
com.google.appinventor.components.common.ComponentConstants.LISTVIEW_FILTER_PREFERRED_HEIGHT
static final int LISTVIEW_FILTER_PREFERRED_HEIGHT
Definition: ComponentConstants.java:75
com.google.appinventor.components.common.ComponentConstants
Definition: ComponentConstants.java:13
com.google.appinventor.components.common.ComponentConstants.VIDEOPLAYER_PREFERRED_WIDTH
static final int VIDEOPLAYER_PREFERRED_WIDTH
Definition: ComponentConstants.java:44
com.google.appinventor.components.common.ComponentConstants.LAYOUT_ORIENTATION_VERTICAL
static final int LAYOUT_ORIENTATION_VERTICAL
Definition: ComponentConstants.java:27
com.google.appinventor.components.common.ComponentConstants.GRAVITY_RIGHT
static final int GRAVITY_RIGHT
Definition: ComponentConstants.java:56
com.google.appinventor.components.common.ComponentConstants.MAP_PREFERRED_WIDTH
static final int MAP_PREFERRED_WIDTH
Definition: ComponentConstants.java:95