Skip navigation links
A B C D E F G H I J L M N O P Q R S T U V W X Y 

A

add(GObject) - Method in class stanford.androidlib.graphics.GCanvas
Adds the given GObject to this canvas.
add(GObject, float, float) - Method in class stanford.androidlib.graphics.GCanvas
Adds the given GObject to this canvas at the given x/y location.
add(GObject, GPoint) - Method in class stanford.androidlib.graphics.GCanvas
Adds the given GObject to this canvas at the given x/y location.
add(GObject) - Method in class stanford.androidlib.graphics.GCompound
Adds a new graphical object to this GCompound.
add(GObject, float, float) - Method in class stanford.androidlib.graphics.GCompound
Adds the graphical object to this canvas and sets its location to the point (xy).
add(GObject, GPoint) - Method in class stanford.androidlib.graphics.GCompound
Adds the graphical object to this canvas and sets its location to the specified point.
add(GRectangle) - Method in class stanford.androidlib.graphics.GRectangle
Adjusts the bounds of the current GRectangle so that it contains the rectangle represented by the argument.
add(float, float) - Method in class stanford.androidlib.graphics.GRectangle
Adds the specified point to the rectangle.
addAction(int, CharSequence, PendingIntent) - Method in class stanford.androidlib.SimpleNotification
 
addAction(int, int, PendingIntent) - Method in class stanford.androidlib.SimpleNotification
 
addAction(int, CharSequence, Class<? extends Activity>, Object...) - Method in class stanford.androidlib.SimpleNotification
 
addAction(int, CharSequence, Class<? extends Activity>, int, Object...) - Method in class stanford.androidlib.SimpleNotification
 
addAction(int, int, Class<? extends Activity>, Object...) - Method in class stanford.androidlib.SimpleNotification
 
addAction(int, int, Class<? extends Activity>, int, Object...) - Method in class stanford.androidlib.SimpleNotification
 
addAction(Notification.Action) - Method in class stanford.androidlib.SimpleNotification
 
addAction(NotificationCompat.Action) - Method in class stanford.androidlib.SimpleNotification
 
addArc(float, float, float, float) - Method in class stanford.androidlib.graphics.GPolygon
Adds a series of edges to the polygon that simulates the arc specified by the parameters.
addEdge(float, float) - Method in class stanford.androidlib.graphics.GPolygon
Adds an edge to the polygon whose components are given by the displacements dx and dy from the last vertex.
addExtras(Bundle) - Method in class stanford.androidlib.SimpleNotification
 
addFragment(int, Class<? extends Fragment>) - Method in class stanford.androidlib.SimpleActivity
Creates a fragment object from the given class and adds it to this activity in the view container with the given ID.
addFragment(int, Fragment) - Method in class stanford.androidlib.SimpleActivity
Adds the given fragment to this activity in the view container with the given ID.
addPerson(String) - Method in class stanford.androidlib.SimpleNotification
 
addPolarEdge(float, float) - Method in class stanford.androidlib.graphics.GPolygon
Adds an edge to the polygon specified in polar coordinates.
addVertex(float, float) - Method in class stanford.androidlib.graphics.GPolygon
Adds a vertex at (x, y) relative to the polygon origin.
allowNetworkingOnMainThread() - Method in class stanford.androidlib.SimpleActivity
Instructs Android to allow your app to perform networking operations on the main thread.
AMP - Static variable in class stanford.androidlib.xml.XML
The ampersand character.
angle(float, float) - Static method in class stanford.androidlib.graphics.GMath
Returns the angle in degrees from the origin to the point (xy).
angle(float, float, float, float) - Static method in class stanford.androidlib.graphics.GMath
Computes the angle in degrees formed by a line segment from the point (x0y0) and (x1y1).
animate(int) - Method in class stanford.androidlib.SimpleCanvas
Begins animating this canvas with the given number of frames per second.
AnimationLoop - Class in stanford.androidlib
This class is a helper to wrap up some of the icky code needed to initiate an animation thread that repaints a view at regular intervals.
AnimationLoop(View, int) - Constructor for class stanford.androidlib.AnimationLoop
Constructs a new drawing thread to update the given view the given number of times per second.
animationPause() - Method in class stanford.androidlib.SimpleCanvas
Halts animation until animationResume or animate is called.
animationResume() - Method in class stanford.androidlib.SimpleCanvas
Continues animation that was previously started and paused.
animationStop() - Method in class stanford.androidlib.SimpleCanvas
Halts animation.
APOS - Static variable in class stanford.androidlib.xml.XML
The Character '''.
asList() - Method in class stanford.androidlib.data.SimpleRow
Returns this row's contents as a List with the column values as its values.
asMap() - Method in class stanford.androidlib.data.SimpleRow
Returns this row's contents as a Map with the column names as the keys and the column values as the associated values for each key.
asMap(Bundle) - Static method in class stanford.androidlib.util.CollectionUtils
Returns the key/value pairs from the given bundle as a Map.
asMap(Intent) - Static method in class stanford.androidlib.util.CollectionUtils
Returns the key/value pairs from the given intent's parameters as a Map.
audioOutExists() - Method in class stanford.androidlib.SimpleActivity
Returns true if the device has an audio output.
AutoSaveFields - Annotation Type in stanford.androidlib
This annotation can be placed at the top of a SimpleActivity class to make its fields auto-save themselves when that activity loads and unloads from memory.

B

BANG - Static variable in class stanford.androidlib.xml.XML
The Character '!'.
BLACK - Static variable in class stanford.androidlib.graphics.GColor
A color constant representing the color black.
BLUE - Static variable in class stanford.androidlib.graphics.GColor
A color constant representing the color blue.
bluetoothExists() - Method in class stanford.androidlib.SimpleActivity
Returns true if the device has Bluetooth capability.
bound() - Method in class stanford.androidlib.graphics.GSprite
Moves this sprite so that it is within the bounds of its canvas.
bound(Canvas) - Method in class stanford.androidlib.graphics.GSprite
Moves this sprite so that it is within the bounds of the given canvas.
bound(RectF) - Method in class stanford.androidlib.graphics.GSprite
Moves this sprite so that it is within the bounds of the given rectangle.
bound(float, float, float, float) - Method in class stanford.androidlib.graphics.GSprite
Moves this sprite so that it is within the bounds of the given x/y area.
boundHorizontal() - Method in class stanford.androidlib.graphics.GSprite
Moves this sprite so that it is within the horizontal (x) bounds of its canvas.
boundHorizontal(Canvas) - Method in class stanford.androidlib.graphics.GSprite
Moves this sprite so that it is within the horizontal (x) bounds of the given canvas.
boundHorizontal(RectF) - Method in class stanford.androidlib.graphics.GSprite
Moves this sprite so that it is within the horizontal (x) bounds of the given rectangle.
boundHorizontal(float, float) - Method in class stanford.androidlib.graphics.GSprite
Moves this sprite so that it is within the horizontal (x) bounds of the given x area.
boundVertical() - Method in class stanford.androidlib.graphics.GSprite
Moves this sprite so that it is within the vertical (y) bounds of its canvas.
boundVertical(Canvas) - Method in class stanford.androidlib.graphics.GSprite
Moves this sprite so that it is within the vertical (y) bounds of the given canvas.
boundVertical(RectF) - Method in class stanford.androidlib.graphics.GSprite
Moves this sprite so that it is within the vertical (y) bounds of the given rectangle.
boundVertical(float, float) - Method in class stanford.androidlib.graphics.GSprite
Moves this sprite so that it is within the vertical (y) bounds of the given y area.
brighter(Paint) - Static method in class stanford.androidlib.graphics.GColor
Returns a new paint that is slightly brighter than the given paint.
BROWN - Static variable in class stanford.androidlib.graphics.GColor
A color constant representing the color brown.

C

cameraExists() - Method in class stanford.androidlib.SimpleActivity
Returns true if the device has a camera.
canvas - Variable in class stanford.androidlib.SimpleCanvas
 
clear() - Method in class stanford.androidlib.graphics.GPolygon
Calling this method deletes all vertices from the polygon and resets the scale and rotation factors to the their default values.
clearExtras() - Method in class stanford.androidlib.graphics.GSprite
Removes all extra properties inside this sprite.
clone() - Method in class stanford.androidlib.graphics.GPolygon
Overrides clone in Object to make sure that the vertex list is copied rather than shared.
close() - Method in class stanford.androidlib.data.SimpleCursor
 
CollectionUtils - Class in stanford.androidlib.util
This class contains some static methods related to Java collections that pertain to Android development.
collidesWith(GSprite) - Method in class stanford.androidlib.graphics.GSprite
Returns true if this sprite collides with the given other sprite.
contains(GObject) - Method in class stanford.androidlib.graphics.GCanvas
Returns whether this canvas contains the given graphical object.
contains(float, float) - Method in class stanford.androidlib.graphics.GCompound
Checks to see whether a point is "inside" the compound, which means that it is inside one of the components.
contains(float, float) - Method in class stanford.androidlib.graphics.GLine
Checks to see whether a point is inside the object.
contains(float, float) - Method in class stanford.androidlib.graphics.GObject
Checks to see whether a point is inside the object.
contains(GPoint) - Method in class stanford.androidlib.graphics.GObject
Checks to see whether a point is inside the object.
contains(float, float) - Method in class stanford.androidlib.graphics.GOval
Checks to see whether a point is inside the object.
contains(float, float) - Method in class stanford.androidlib.graphics.GPolygon
Checks to see whether a point is inside the object.
contains(float, float) - Method in class stanford.androidlib.graphics.GRectangle
Returns true if the GRectangle contains the specified point.
contains(GPoint) - Method in class stanford.androidlib.graphics.GRectangle
Returns true if the GRectangle contains the specified point.
copyStringToBuffer(int, CharArrayBuffer) - Method in class stanford.androidlib.data.SimpleCursor
 
cosDegrees(float) - Static method in class stanford.androidlib.graphics.GMath
Returns the trigonometric cosine of its argument where angle is expressed in degrees.
createDisplayBuffer(int, int) - Method in class stanford.androidlib.graphics.GCanvas
Sets the display buffer to a new empty bitmap image of the given size.
createFont(String) - Method in class stanford.androidlib.SimpleCanvas
Returns a new font typeface created using the given parameters.
createFont(String, int) - Method in class stanford.androidlib.SimpleCanvas
Returns a new font typeface created using the given parameters.
createFont(Typeface) - Method in class stanford.androidlib.SimpleCanvas
Returns a new font typeface created using the given parameters.
createFont(Typeface, int) - Method in class stanford.androidlib.SimpleCanvas
Returns a new font typeface created using the given parameters.
createPaint(int, int, int) - Method in class stanford.androidlib.SimpleCanvas
Returns a new Paint created using the given parameters.
createPaint(int, int, int, int) - Method in class stanford.androidlib.SimpleCanvas
Returns a new Paint created using the given parameters.
createPaint(int, int, int, int, Paint.Style) - Method in class stanford.androidlib.SimpleCanvas
Returns a new Paint created using the given parameters.
createRGBPixel(int, int, int) - Static method in class stanford.androidlib.graphics.GImage
Creates an opaque pixel value with the color components given by red, green, and blue.
createRGBPixel(int, int, int, int) - Static method in class stanford.androidlib.graphics.GImage
Creates a pixel value with the color components given by red, green, and blue and the transparency value alpha.
CYAN - Static variable in class stanford.androidlib.graphics.GColor
A color constant representing the color cyan.

D

DARK_GRAY - Static variable in class stanford.androidlib.graphics.GColor
A color constant representing the color black.
darker(Paint) - Static method in class stanford.androidlib.graphics.GColor
Returns a new paint that is slightly darker than the given paint.
databaseExists(String) - Method in class stanford.androidlib.SimpleActivity
Returns true if a database with the given name exists.
deactivate() - Method in class stanford.androidlib.data.SimpleCursor
 
DEFAULT_FONT - Static variable in class stanford.androidlib.graphics.GLabel
The default font used to display strings.
dial(String) - Method in class stanford.androidlib.SimpleActivity
Launches the system default phone dialer application to make a call to the given telephone number.
distance(float, float) - Static method in class stanford.androidlib.graphics.GMath
Computes the distance between the origin and the point (xy).
distance(float, float, float, float) - Static method in class stanford.androidlib.graphics.GMath
Computes the distance between the points (x0y0) and (x1y1).
drawBitmap(Bitmap, int, int) - Method in class stanford.androidlib.SimpleCanvas
Draws the given bitmap image onto this canvas.
drawImage(Bitmap, int, int) - Method in class stanford.androidlib.SimpleCanvas
Draws the given bitmap image onto this canvas.
drawOval(int, int, int, int) - Method in class stanford.androidlib.SimpleCanvas
Draws the given oval onto this canvas.
drawOval(int, int, int, int, Paint) - Method in class stanford.androidlib.SimpleCanvas
Draws the given oval onto this canvas.
drawRect(int, int, int, int) - Method in class stanford.androidlib.SimpleCanvas
Draws the given rectangle onto this canvas.
drawRect(int, int, int, int, Paint) - Method in class stanford.androidlib.SimpleCanvas
Draws the given rectangle onto this canvas.
drawRoundRect(int, int, int, int, int, int) - Method in class stanford.androidlib.SimpleCanvas
Draws the given rounded rectangle onto this canvas.
drawRoundRect(int, int, int, int, int, int, Paint) - Method in class stanford.androidlib.SimpleCanvas
Draws the given rounded rectangle onto this canvas.
drawString(String, int, int) - Method in class stanford.androidlib.SimpleCanvas
Draws the given string onto this canvas.
drawText(String, int, int) - Method in class stanford.androidlib.SimpleCanvas
Draws the given string onto this canvas.
drawText(String, int, int, Paint) - Method in class stanford.androidlib.SimpleCanvas
Draws the given string onto this canvas.

E

enableKeyboardEvents() - Method in class stanford.androidlib.SimpleCanvas
Call this to indicate that you want your simple canvas to receive events when the user types keys.
ensurePermission(String...) - Method in class stanford.androidlib.SimpleActivity
Checks whether the current app has all of the given permissions; if it does not have any, pops up a request for our application to acquire them.
entity - Static variable in class stanford.androidlib.xml.XMLTokener
The table of entity values.
EQ - Static variable in class stanford.androidlib.xml.XML
The Character '='.
equals(Object) - Method in class stanford.androidlib.graphics.GDimension
Tests whether two GDimension objects are equal.
equals(Object) - Method in class stanford.androidlib.graphics.GPoint
Tests whether two GPoint objects are equal.
equals(Object) - Method in class stanford.androidlib.graphics.GRectangle
Tests whether two GRectangle objects are equal.
escape(String) - Static method in class stanford.androidlib.xml.XML
Replace special characters with XML escapes:
executeSqlFile(String) - Method in class stanford.androidlib.data.SimpleDatabase
Reads the .sql file with the given name and executes all SQL statements inside it, placing them into a database with the same name as the file.
executeSqlFile(SQLiteDatabase, int) - Method in class stanford.androidlib.data.SimpleDatabase
Reads the .sql file with the given resource ID and executes all SQL statements inside it using the given database.
extend(NotificationCompat.Extender) - Method in class stanford.androidlib.SimpleNotification
 

F

find(int) - Method in class stanford.androidlib.SimpleActivity
An alias for findViewById, but written in such a way that the caller does not need to typecast the returned result.
findButton(int) - Method in class stanford.androidlib.SimpleActivity
Returns a widget of the given specific type so that casting is not needed as it would be with findViewById.
findById(int) - Method in class stanford.androidlib.SimpleActivity
An alias for findViewById, but written in such a way that the caller does not need to typecast the returned result.
findCalendarView(int) - Method in class stanford.androidlib.SimpleActivity
Returns a widget of the given specific type so that casting is not needed as it would be with findViewById.
findCheckBox(int) - Method in class stanford.androidlib.SimpleActivity
Returns a widget of the given specific type so that casting is not needed as it would be with findViewById.
findDatePicker(int) - Method in class stanford.androidlib.SimpleActivity
Returns a widget of the given specific type so that casting is not needed as it would be with findViewById.
findEditText(int) - Method in class stanford.androidlib.SimpleActivity
Returns a widget of the given specific type so that casting is not needed as it would be with findViewById.
findFragment(int) - Method in class stanford.androidlib.SimpleActivity
Returns a fragment with the given ID found inside this activity.
findFragmentById(int) - Method in class stanford.androidlib.SimpleActivity
Returns a fragment with the given ID found inside this activity.
findGridView(int) - Method in class stanford.androidlib.SimpleActivity
Returns a widget of the given specific type so that casting is not needed as it would be with findViewById.
findImageButton(int) - Method in class stanford.androidlib.SimpleActivity
Returns a widget of the given specific type so that casting is not needed as it would be with findViewById.
findImageView(int) - Method in class stanford.androidlib.SimpleActivity
Returns a widget of the given specific type so that casting is not needed as it would be with findViewById.
findListView(int) - Method in class stanford.androidlib.SimpleActivity
Returns a widget of the given specific type so that casting is not needed as it would be with findViewById.
findProgressBar(int) - Method in class stanford.androidlib.SimpleActivity
Returns a widget of the given specific type so that casting is not needed as it would be with findViewById.
findRadioButton(int) - Method in class stanford.androidlib.SimpleActivity
Returns a widget of the given specific type so that casting is not needed as it would be with findViewById.
findRadioGroup(int) - Method in class stanford.androidlib.SimpleActivity
Returns a widget of the given specific type so that casting is not needed as it would be with findViewById.
findRatingBar(int) - Method in class stanford.androidlib.SimpleActivity
Returns a widget of the given specific type so that casting is not needed as it would be with findViewById.
findScrollView(int) - Method in class stanford.androidlib.SimpleActivity
Returns a widget of the given specific type so that casting is not needed as it would be with findViewById.
findSearchView(int) - Method in class stanford.androidlib.SimpleActivity
Returns a widget of the given specific type so that casting is not needed as it would be with findViewById.
findSeekBar(int) - Method in class stanford.androidlib.SimpleActivity
Returns a widget of the given specific type so that casting is not needed as it would be with findViewById.
findSpace(int) - Method in class stanford.androidlib.SimpleActivity
Returns a widget of the given specific type so that casting is not needed as it would be with findViewById.
findSpinner(int) - Method in class stanford.androidlib.SimpleActivity
Returns a widget of the given specific type so that casting is not needed as it would be with findViewById.
findStackView(int) - Method in class stanford.androidlib.SimpleActivity
Returns a widget of the given specific type so that casting is not needed as it would be with findViewById.
findSwitch(int) - Method in class stanford.androidlib.SimpleActivity
Returns a widget of the given specific type so that casting is not needed as it would be with findViewById.
findTextView(int) - Method in class stanford.androidlib.SimpleActivity
Returns a widget of the given specific type so that casting is not needed as it would be with findViewById.
findTimePicker(int) - Method in class stanford.androidlib.SimpleActivity
Returns a widget of the given specific type so that casting is not needed as it would be with findViewById.
findToggleButton(int) - Method in class stanford.androidlib.SimpleActivity
Returns a widget of the given specific type so that casting is not needed as it would be with findViewById.
findToolbar(int) - Method in class stanford.androidlib.SimpleActivity
Returns a widget of the given specific type so that casting is not needed as it would be with findViewById.
findViewGroup(int) - Method in class stanford.androidlib.SimpleActivity
Returns a ViewGroup of the given specific type so that casting is not needed as it would be with findViewById.
findZoomButton(int) - Method in class stanford.androidlib.SimpleActivity
Returns a widget of the given specific type so that casting is not needed as it would be with findViewById.
finish(Object...) - Method in class stanford.androidlib.SimpleActivity
Shuts down this activity, returning RESULT_OK as its result code and the given 'extra' parameters.
finish(int, Object...) - Method in class stanford.androidlib.SimpleActivity
Shuts down this activity, returning the given result code and the given 'extra' parameters.
flipVelocity() - Method in class stanford.androidlib.graphics.GSprite
Inverts the sign of the sprite's velocity in both directions.
flipVelocityX() - Method in class stanford.androidlib.graphics.GSprite
Inverts the sign of the sprite's velocity in the x direction.
flipVelocityY() - Method in class stanford.androidlib.graphics.GSprite
Inverts the sign of the sprite's velocity in the y direction.

G

GArrow - Class in stanford.androidlib.graphics
This class represents a line with an arrowhead at one or both ends.
GArrow() - Constructor for class stanford.androidlib.graphics.GArrow
Constructs an arrow at (0, 0) of length 0.
GArrow(float, float) - Constructor for class stanford.androidlib.graphics.GArrow
Constructs an arrow from (0, 0) to (x1, y1).
GArrow(float, float, float, float) - Constructor for class stanford.androidlib.graphics.GArrow
Constructs an arrow from (x0, y0) to (x1, y1).
GCanvas - Class in stanford.androidlib.graphics
A GCanvas is similar to a GraphicsProgram from the Stanford/ACM Java Task Force library.
GCanvas(Context, AttributeSet) - Constructor for class stanford.androidlib.graphics.GCanvas
Required constructor; your canvas subclass must implement a constructor with exactly the same parameters.
GColor - Class in stanford.androidlib.graphics
A class of constant Paint objects representing commonly used colors.
GCompound - Class in stanford.androidlib.graphics
This class defines a graphical object that consists of a collection of other graphical objects.
GCompound() - Constructor for class stanford.androidlib.graphics.GCompound
Creates a new GCompound object with no internal components.
GDimension - Class in stanford.androidlib.graphics
This class is a double-precision version of the Dimension class in java.awt.
GDimension() - Constructor for class stanford.androidlib.graphics.GDimension
Constructs a new dimension object with zero values for width and height.
GDimension(float, float) - Constructor for class stanford.androidlib.graphics.GDimension
Constructs a new dimension object with the specified components.
GDimension(GDimension) - Constructor for class stanford.androidlib.graphics.GDimension
Constructs a new GDimension object from an existing one.
generateViewId() - Static method in class stanford.androidlib.SimpleActivity
Generates and returns a unique ID to be programmatically attached to a view.
get(int) - Method in class stanford.androidlib.data.SimpleCursor
Returns a column's value of any type.
get(String) - Method in class stanford.androidlib.data.SimpleCursor
Returns a column's value of any type.
getAccelerationX() - Method in class stanford.androidlib.graphics.GSprite
Returns this sprite's x acceleration; this will be 0 unless you have called setAcceleration.
getAccelerationY() - Method in class stanford.androidlib.graphics.GSprite
Returns this sprite's yacceleration; this will be 0 unless you have called setAcceleration.
getAllDrawableResourceIds() - Method in class stanford.androidlib.SimpleActivity
Returns the IDs of all drawables (images) in this app as a list of integers.
getAllDrawableResourceNames() - Method in class stanford.androidlib.SimpleActivity
Returns the names of all drawables (images) in this app as a list of strings.
getAllRawResourceIds() - Method in class stanford.androidlib.SimpleActivity
Returns the IDs of all raw files in this app as a list of integers.
getAllRawResourceNames() - Method in class stanford.androidlib.SimpleActivity
Returns the names of all raw files in this app as a list of strings.
getAlpha(int) - Static method in class stanford.androidlib.graphics.GImage
Returns the alpha component from an RGB value.
getAnimationTickCount() - Method in class stanford.androidlib.SimpleCanvas
Returns the number of frames of animation that have already passed.
getArrowSize() - Method in class stanford.androidlib.graphics.GArrow
 
getBackgroundColor() - Method in class stanford.androidlib.graphics.GCanvas
Returns the background color that will be drawn on this canvas.
getBitmap() - Method in class stanford.androidlib.graphics.GSprite
Returns the bitmap for this sprite as passed to the constructor.
getBitmap(int) - Method in class stanford.androidlib.SimpleActivity
Returns the bitmap image for the resource file with the given ID.
getBitmap(String) - Method in class stanford.androidlib.SimpleActivity
Returns the bitmap image for the file located at the given web URL.
getBitmap(int) - Method in class stanford.androidlib.SimpleCanvas
Returns the bitmap that corresponds to the given resource ID.
getBitmaps() - Method in class stanford.androidlib.graphics.GSprite
Returns the list of bitmaps for this sprite.
getBlob(String) - Method in class stanford.androidlib.data.SimpleCursor
Returns a blob from a column with the given name.
getBlob(int) - Method in class stanford.androidlib.data.SimpleCursor
 
getBlue(int) - Static method in class stanford.androidlib.graphics.GImage
Returns the blue component from an RGB value.
getBooleanExtra(String) - Method in class stanford.androidlib.SimpleActivity
Returns an 'extra' parameter with the given name from this activity's intent.
getBooleanExtra(String, boolean) - Method in class stanford.androidlib.SimpleActivity
Returns an 'extra' parameter with the given name from this activity's intent.
getBottomY() - Method in class stanford.androidlib.graphics.GObject
Returns the max Y of this object.
getBottomY() - Method in class stanford.androidlib.graphics.GSprite
Returns this sprite's bottom y-coordinate.
getBounds() - Method in class stanford.androidlib.graphics.GCompound
Returns the bounding rectangle for this compound object, which consists of the union of the bounding rectangles for each of the components.
getBounds() - Method in class stanford.androidlib.graphics.GImage
Returns the bounding box of this object.
getBounds() - Method in class stanford.androidlib.graphics.GLine
Returns the bounding box for this object.
getBounds() - Method in class stanford.androidlib.graphics.GObject
Returns the bounding box of this object, which is defined to be the smallest rectangle that covers everything drawn by the figure.
getBounds() - Method in class stanford.androidlib.graphics.GOval
Returns the bounding box of this object.
getBounds() - Method in class stanford.androidlib.graphics.GPolygon
Returns the bounding box of this object, which is defined to be the smallest rectangle that covers everything drawn by the figure.
getBounds() - Method in class stanford.androidlib.graphics.GRect
Returns the bounding box of this object.
getBounds() - Method in class stanford.androidlib.graphics.GRectangle
Returns a new GRectangle whose bounds are the same as this one.
getCanvas() - Method in class stanford.androidlib.SimpleCanvas
Returns the drawing canvas found inside of this object.
getCenterX() - Method in class stanford.androidlib.graphics.GObject
Returns the x-value of the center of this object.
getCenterY() - Method in class stanford.androidlib.graphics.GObject
Returns the y-value of the center of this object.
getCollisionMarginBottom() - Method in class stanford.androidlib.graphics.GSprite
Returns this sprite's collision margin in the y direction.
getCollisionMarginLeft() - Method in class stanford.androidlib.graphics.GSprite
Returns this sprite's collision margin in the x direction on the left side.
getCollisionMarginRight() - Method in class stanford.androidlib.graphics.GSprite
Returns this sprite's collision margin in the x direction on the right side.
getCollisionMarginTop() - Method in class stanford.androidlib.graphics.GSprite
Returns this sprite's collision margin in the y direction on top.
getCollisionMarginX() - Method in class stanford.androidlib.graphics.GSprite
Returns this sprite's collision margin in the x direction.
getCollisionMarginY() - Method in class stanford.androidlib.graphics.GSprite
Returns this sprite's collision margin in the y direction on top.
getColor() - Method in class stanford.androidlib.graphics.GObject
Returns the color used to display this object.
getColumnCount() - Method in class stanford.androidlib.data.SimpleCursor
 
getColumnIndex(String) - Method in class stanford.androidlib.data.SimpleCursor
 
getColumnIndexOrThrow(String) - Method in class stanford.androidlib.data.SimpleCursor
 
getColumnName(int) - Method in class stanford.androidlib.data.SimpleCursor
 
getColumnNames() - Method in class stanford.androidlib.data.SimpleCursor
 
getCount() - Method in class stanford.androidlib.data.SimpleCursor
 
getCurrentPoint() - Method in class stanford.androidlib.graphics.GPolygon
Returns the coordinates of the last vertex added to the polygon, or null if the polygon is empty.
getDisplayBuffer() - Method in class stanford.androidlib.graphics.GCanvas
Returns the display buffer you previously passed to setDisplayBuffer, or null if none has been set.
getDocumentsDirectory() - Method in class stanford.androidlib.SimpleActivity
Returns the directory where documents are stored on this device.
getDouble(String) - Method in class stanford.androidlib.data.SimpleCursor
Returns a double from a column with the given name.
getDouble(int) - Method in class stanford.androidlib.data.SimpleCursor
 
getDoubleExtra(String) - Method in class stanford.androidlib.SimpleActivity
Returns an 'extra' parameter with the given name from this activity's intent.
getDoubleExtra(String, double) - Method in class stanford.androidlib.SimpleActivity
Returns an 'extra' parameter with the given name from this activity's intent.
getDownloadsDirectory() - Method in class stanford.androidlib.SimpleActivity
Returns the directory where downloads are stored on this device.
getElement(int) - Method in class stanford.androidlib.graphics.GCanvas
Returns the graphical object at the specified index, numbering from back (0) to front in the the z ordering.
getElement(int) - Method in class stanford.androidlib.graphics.GCompound
Returns the graphical object at the specified index, numbering from back to front in the the z dimension.
getElementAt(float, float) - Method in class stanford.androidlib.graphics.GCanvas
Returns the GObject found at the given x/y location in this canvas.
getElementAt(GPoint) - Method in class stanford.androidlib.graphics.GCanvas
Returns the GObject found at the given x/y location in this canvas.
getElementAt(float...) - Method in class stanford.androidlib.graphics.GCanvas
Returns the GObject found at any of the given x/y locations in this canvas.
getElementAt(GPoint...) - Method in class stanford.androidlib.graphics.GCanvas
Returns the GObject found at any of the given x/y locations in this canvas.
getElementAt(float, float) - Method in class stanford.androidlib.graphics.GCompound
Returns the topmost graphical object that contains the point (x, y), or null if no such object exists.
getElementAt(GPoint) - Method in class stanford.androidlib.graphics.GCompound
Returns the topmost graphical object that contains the specified point, or null if no such object exists.
getElementCount() - Method in class stanford.androidlib.graphics.GCanvas
Returns the number of graphical objects stored in this canvas.
getElementCount() - Method in class stanford.androidlib.graphics.GCompound
Returns the number of graphical objects stored in this container.
getEndPoint() - Method in class stanford.androidlib.graphics.GLine
Returns the end point of the line as a GPoint object.
getEndX() - Method in class stanford.androidlib.graphics.GLine
Returns the end point's x-coordinate.
getEndY() - Method in class stanford.androidlib.graphics.GLine
Returns the end point's y-coordinate.
getExtra(String) - Method in class stanford.androidlib.graphics.GSprite
Returns the extra property inside this sprite with the given name.
getExtra(String) - Method in class stanford.androidlib.SimpleActivity
Returns an 'extra' parameter with the given name from this activity's intent.
getExtra(String, T) - Method in class stanford.androidlib.SimpleActivity
Returns an 'extra' parameter with the given name from this activity's intent.
getExtra(String) - Method in class stanford.androidlib.SimpleFragment
Returns an 'extra' parameter with the given name from this activity's intent.
getExtra(String, T) - Method in class stanford.androidlib.SimpleFragment
Returns an 'extra' parameter with the given name from this activity's intent.
getExtras() - Method in class stanford.androidlib.data.SimpleCursor
 
getExtras() - Method in class stanford.androidlib.graphics.GSprite
Returns all extras in this sprite as a Bundle.
getFillColor() - Method in interface stanford.androidlib.graphics.GFillable
Returns the color used to display the filled region of this object.
getFillColor() - Method in class stanford.androidlib.graphics.GOval
Returns the color used to display the filled region of this object.
getFillColor() - Method in class stanford.androidlib.graphics.GPolygon
Returns the color used to display the filled region of this object.
getFillColor() - Method in class stanford.androidlib.graphics.GRect
Returns the color used to display the filled region of this object.
getFloat(String) - Method in class stanford.androidlib.data.SimpleCursor
Returns a float from a column with the given name.
getFloat(int) - Method in class stanford.androidlib.data.SimpleCursor
 
getFont() - Method in class stanford.androidlib.graphics.GLabel
Returns the font in which the GLabel is displayed.
getFontSize() - Method in class stanford.androidlib.graphics.GLabel
Returns the font size currently used by this label.
getFontStyle() - Method in class stanford.androidlib.graphics.GLabel
Returns this label's current font style.
getFramesPerBitmap() - Method in class stanford.androidlib.graphics.GSprite
Returns the number of frames of animation that each bitmap in the list should be displayed before automatically cycling to the next frame bitmap.
getGCanvas() - Method in class stanford.androidlib.graphics.GObject
Returns the simple canvas this GObject is drawn inside of.
getGreen(int) - Static method in class stanford.androidlib.graphics.GImage
Returns the green component from an RGB value.
getHeight() - Method in class stanford.androidlib.graphics.GDimension
Returns the height of this GDimension.
getHeight() - Method in class stanford.androidlib.graphics.GLabel
Returns the height of this string, as it appears on the display.
getHeight() - Method in class stanford.androidlib.graphics.GObject
Returns the height of this object, which is defined to be the height of the bounding box.
getHeight() - Method in class stanford.androidlib.graphics.GOval
Returns the height of this object as a float-precision value, which is defined to be the height of the bounding box.
getHeight() - Method in class stanford.androidlib.graphics.GRect
Returns the height of this object as a float-precision value, which is defined to be the height of the bounding box.
getHeight() - Method in class stanford.androidlib.graphics.GRectangle
Returns the height of this GDimension.
getHeight() - Method in class stanford.androidlib.graphics.GSprite
Returns this sprite's height.
getImage() - Method in class stanford.androidlib.graphics.GImage
Returns the image stored inside this GImage.
getInstance() - Static method in class stanford.androidlib.util.RandomGenerator
Returns a RandomGenerator instance that can be shared among several classes.
getInt(String) - Method in class stanford.androidlib.data.SimpleCursor
Returns an int from a column with the given name.
getInt(int) - Method in class stanford.androidlib.data.SimpleCursor
 
getIntExtra(String) - Method in class stanford.androidlib.SimpleActivity
Returns an 'extra' parameter with the given name from this activity's intent.
getIntExtra(String, int) - Method in class stanford.androidlib.SimpleActivity
Returns an 'extra' parameter with the given name from this activity's intent.
getLabel() - Method in class stanford.androidlib.graphics.GLabel
Returns the string displayed by this object.
getLeftX() - Method in class stanford.androidlib.graphics.GSprite
Returns this sprite's leftmost x-coordinate.
getLibraryVersion() - Static method in class stanford.androidlib.SimpleActivity
Returns the current version of the library as a string, in format "YYYY/MM/DD HH:MMam".
getLibraryVersion() - Static method in class stanford.androidlib.Version
Returns the current version of the library as a string, in format "YYYY/MM/DD HH:MMam".
getLocation() - Method in class stanford.androidlib.graphics.GObject
Returns the location of this object as a GPoint.
getLocation() - Method in class stanford.androidlib.graphics.GPoint
Returns a new GPoint whose coordinates are the same as this one.
getLocation() - Method in class stanford.androidlib.graphics.GRectangle
Returns a new GPoint with the location of the rectangle.
getLocation() - Method in class stanford.androidlib.SimpleActivity
 
getLong(String) - Method in class stanford.androidlib.data.SimpleCursor
Returns a long from a column with the given name.
getLong(int) - Method in class stanford.androidlib.data.SimpleCursor
 
getLongExtra(String) - Method in class stanford.androidlib.SimpleActivity
Returns an 'extra' parameter with the given name from this activity's intent.
getLongExtra(String, long) - Method in class stanford.androidlib.SimpleActivity
Returns an 'extra' parameter with the given name from this activity's intent.
getMoviesDirectory() - Method in class stanford.androidlib.SimpleActivity
Returns the directory where movies are stored on this device.
getMusicDirectory() - Method in class stanford.androidlib.SimpleActivity
Returns the directory where music is stored on this device.
getNotificationUri() - Method in class stanford.androidlib.data.SimpleCursor
 
getPaint() - Method in class stanford.androidlib.graphics.GObject
Returns the color used to display this object.
getPhotosDirectory() - Method in class stanford.androidlib.SimpleActivity
Returns the directory where photos are stored on this device.
getPixelArray() - Method in class stanford.androidlib.graphics.GImage
Returns a two-dimensional array of pixel values from the stored image.
getPodcastsDirectory() - Method in class stanford.androidlib.SimpleActivity
Returns the directory where podcasts are stored on this device.
getPosition() - Method in class stanford.androidlib.data.SimpleCursor
 
getPreferenceBoolean(String) - Method in class stanford.androidlib.SimpleActivity
Returns the preference with the given name and value from the app's global preferences.
getPreferenceBoolean(String, boolean) - Method in class stanford.androidlib.SimpleActivity
Returns the preference with the given name and value from the app's global preferences.
getPreferenceDouble(String) - Method in class stanford.androidlib.SimpleActivity
Returns the preference with the given name and value from the app's global preferences.
getPreferenceDouble(String, double) - Method in class stanford.androidlib.SimpleActivity
Returns the preference with the given name and value from the app's global preferences.
getPreferenceInt(String) - Method in class stanford.androidlib.SimpleActivity
Returns the preference with the given name and value from the app's global preferences.
getPreferenceInt(String, int) - Method in class stanford.androidlib.SimpleActivity
Returns the preference with the given name and value from the app's global preferences.
getPreferenceLong(String) - Method in class stanford.androidlib.SimpleActivity
Returns the preference with the given name and value from the app's global preferences.
getPreferenceLong(String, long) - Method in class stanford.androidlib.SimpleActivity
Returns the preference with the given name and value from the app's global preferences.
getPreferenceString(String) - Method in class stanford.androidlib.SimpleActivity
Returns the preference with the given name and value from the app's global preferences.
getPreferenceString(String, String) - Method in class stanford.androidlib.SimpleActivity
Returns the preference with the given name and value from the app's global preferences.
getRed(int) - Static method in class stanford.androidlib.graphics.GImage
Returns the red component from an RGB value.
getResourceFullName(int) - Method in class stanford.androidlib.SimpleActivity
Returns the full name of the resource with the given ID, such as R.drawable.foobar = "drawable/foobar".
getResourceId(String, String) - Method in class stanford.androidlib.SimpleActivity
Returns a the ID of the resource with the given name and type, such as "foobar", "drawable" = R.drawable.foobar.
getResourceId(String) - Method in class stanford.androidlib.SimpleActivity
Returns a the ID of the resource with the given full name, such as "R.drawable.foobar" = R.drawable.foobar or "@drawable/foobar" = R.drawable.foobar.
getResourceName(int) - Method in class stanford.androidlib.SimpleActivity
Returns the short name of the resource with the given ID, such as R.drawable.foobar = "foobar".
getRightX() - Method in class stanford.androidlib.graphics.GObject
Returns the max X of this object.
getRightX() - Method in class stanford.androidlib.graphics.GSprite
Returns this sprite's rightmost x-coordinate.
getScaledBitmap(int, float, float) - Method in class stanford.androidlib.SimpleCanvas
Returns the bitmap that corresponds to the given resource ID.
getScreenDensity() - Method in class stanford.androidlib.SimpleActivity
Returns a string representing the current device's screen density, based on the following mapping: up to 120 dpi: "ldpi" 120 - 160 dpi: "mdpi" 160 - 240 dpi: "hdpi" 240 - 320 dpi: "xhdpi" 320 - 480 dpi: "xxhdpi" above 480 dpi: "xxxhdpi"
getScreenDpi() - Method in class stanford.androidlib.SimpleActivity
Returns the current device's screen density in dots-per-inch (DPI), rounded down to the nearest integer.
getScreenDpiX() - Method in class stanford.androidlib.SimpleActivity
Returns the current device's screen density in the x dimension in dots-per-inch (DPI), rounded down to the nearest integer.
getScreenDpiY() - Method in class stanford.androidlib.SimpleActivity
Returns the current device's screen density in the x dimension in dots-per-inch (DPI), rounded down to the nearest integer.
getScreenHeight() - Method in class stanford.androidlib.SimpleActivity
Returns the height of the current Android device's screen, in pixels.
getScreenHeightInches() - Method in class stanford.androidlib.SimpleActivity
Returns the device's physical screen height in inches, based on its screen resolution in pixels and its density in DPI.
getScreenRealHeight() - Method in class stanford.androidlib.SimpleActivity
Returns the 'real' height of the current Android device's screen, in pixels.
getScreenRealWidth() - Method in class stanford.androidlib.SimpleActivity
Returns the 'real' width of the current Android device's screen, in pixels.
getScreenSizeInches() - Method in class stanford.androidlib.SimpleActivity
Returns the device's physical screen diagonal size in inches, based on its screen resolution in pixels and its density in DPI.
getScreenWidth() - Method in class stanford.androidlib.SimpleActivity
Returns the width of the current Android device's screen, in pixels.
getScreenWidthInches() - Method in class stanford.androidlib.SimpleActivity
Returns the device's physical screen width in inches, based on its screen resolution in pixels and its density in DPI.
getSharedPreferenceBoolean(String, String) - Method in class stanford.androidlib.SimpleActivity
Returns the shared preference with the given name and value from the given shared preference filename.
getSharedPreferenceBoolean(String, String, boolean) - Method in class stanford.androidlib.SimpleActivity
Returns the shared preference with the given name and value from the given shared preference filename.
getSharedPreferenceDouble(String, String) - Method in class stanford.androidlib.SimpleActivity
Returns the shared preference with the given name and value from the given shared preference filename.
getSharedPreferenceDouble(String, String, double) - Method in class stanford.androidlib.SimpleActivity
Returns the shared preference with the given name and value from the given shared preference filename.
getSharedPreferenceInt(String, String) - Method in class stanford.androidlib.SimpleActivity
Returns the shared preference with the given name and value from the given shared preference filename.
getSharedPreferenceInt(String, String, int) - Method in class stanford.androidlib.SimpleActivity
Returns the shared preference with the given name and value from the given shared preference filename.
getSharedPreferenceLong(String, String) - Method in class stanford.androidlib.SimpleActivity
Returns the shared preference with the given name and value from the given shared preference filename.
getSharedPreferenceLong(String, String, long) - Method in class stanford.androidlib.SimpleActivity
Returns the shared preference with the given name and value from the given shared preference filename.
getSharedPreferenceString(String, String) - Method in class stanford.androidlib.SimpleActivity
Returns the shared preference with the given name and value from the given shared preference filename.
getSharedPreferenceString(String, String, String) - Method in class stanford.androidlib.SimpleActivity
Returns the shared preference with the given name and value from the given shared preference filename.
getShort(int) - Method in class stanford.androidlib.data.SimpleCursor
 
getSimpleActivity() - Method in class stanford.androidlib.SimpleCanvas
Returns the simple activity that this canvas is inside of.
getSimpleActivity() - Method in class stanford.androidlib.SimpleFragment
Returns the activity that contains this fragment as a SimpleActivity.
getSize() - Method in class stanford.androidlib.graphics.GDimension
Returns a new GDimension object equal to this one.
getSize() - Method in class stanford.androidlib.graphics.GImage
Returns the size of this object as a GDimension.
getSize() - Method in class stanford.androidlib.graphics.GObject
Returns the size of the bounding box for this object.
getSize() - Method in class stanford.androidlib.graphics.GOval
Returns the size of this object as a GDimension.
getSize() - Method in class stanford.androidlib.graphics.GRect
Returns the size of this object as a GDimension.
getSize() - Method in class stanford.androidlib.graphics.GRectangle
Returns a new GDimension object with the size of the GRectangle.
getStartPoint() - Method in class stanford.androidlib.graphics.GLine
Returns the coordinates of the initial point in the line.
getStartX() - Method in class stanford.androidlib.graphics.GLine
Returns the start point's x-coordinate.
getStartY() - Method in class stanford.androidlib.graphics.GLine
Returns the start point's y-coordinate.
getString(String) - Method in class stanford.androidlib.data.SimpleCursor
Returns a string from a column with the given name.
getString(int) - Method in class stanford.androidlib.data.SimpleCursor
 
getStringExtra(String) - Method in class stanford.androidlib.SimpleActivity
Returns an 'extra' parameter with the given name from this activity's intent.
getStringExtra(String, String) - Method in class stanford.androidlib.SimpleActivity
Returns an 'extra' parameter with the given name from this activity's intent.
getTableNames(SQLiteDatabase) - Static method in class stanford.androidlib.data.SimpleDatabase
Returns the names of all tables in the given database as an array.
getText() - Method in class stanford.androidlib.graphics.GLabel
Returns the string displayed by this object.
getTopY() - Method in class stanford.androidlib.graphics.GSprite
Returns this sprite's top y-coordinate.
getType(int) - Method in class stanford.androidlib.data.SimpleCursor
 
getVelocityX() - Method in class stanford.androidlib.graphics.GSprite
Returns this sprite's velocity in the x direction.
getVelocityY() - Method in class stanford.androidlib.graphics.GSprite
Returns this sprite's velocity in the y direction.
getWantsAllOnMoveCalls() - Method in class stanford.androidlib.data.SimpleCursor
 
getWidth() - Method in class stanford.androidlib.graphics.GDimension
Returns the width of this GDimension.
getWidth() - Method in class stanford.androidlib.graphics.GLabel
Returns the width of this string, as it appears on the display.
getWidth() - Method in class stanford.androidlib.graphics.GObject
Returns the width of this object, which is defined to be the width of the bounding box.
getWidth() - Method in class stanford.androidlib.graphics.GOval
Returns the width of this object as a float-precision value, which is defined to be the width of the bounding box.
getWidth() - Method in class stanford.androidlib.graphics.GRect
Returns the width of this object as a float-precision value, which is defined to be the width of the bounding box.
getWidth() - Method in class stanford.androidlib.graphics.GRectangle
Returns the width of this GDimension.
getWidth() - Method in class stanford.androidlib.graphics.GSprite
Returns the sprite's width.
getX() - Method in class stanford.androidlib.graphics.GObject
Returns the x-coordinate of the object.
getX() - Method in class stanford.androidlib.graphics.GPoint
Returns the x coordinate of this GPoint.
getX() - Method in class stanford.androidlib.graphics.GRectangle
Returns the x coordinate of this GRectangle.
getX() - Method in class stanford.androidlib.graphics.GSprite
Returns this sprite's leftmost x-coordinate.
getY() - Method in class stanford.androidlib.graphics.GObject
Returns the y-coordinate of the object.
getY() - Method in class stanford.androidlib.graphics.GPoint
Returns the y coordinate of this GPoint.
getY() - Method in class stanford.androidlib.graphics.GRectangle
Returns the y coordinate of this GRectangle.
getY() - Method in class stanford.androidlib.graphics.GSprite
Returns this sprite's top y-coordinate.
GFillable - Interface in stanford.androidlib.graphics
Specifies the characteristics of a graphical object that supports filling.
GImage - Class in stanford.androidlib.graphics
The GImage class is a graphical object whose appearance is defined by an image.
GImage(Bitmap) - Constructor for class stanford.androidlib.graphics.GImage
Creates a new GImage object at the origin.
GImage(Bitmap, float, float) - Constructor for class stanford.androidlib.graphics.GImage
Creates a new GImage object at the specified coordinates.
GImage(View, Bitmap) - Constructor for class stanford.androidlib.graphics.GImage
Creates a new GImage object at the origin inside the given view.
GImage(View, Bitmap, float, float) - Constructor for class stanford.androidlib.graphics.GImage
Creates a new GImage object at the given x/y location inside the given view.
GImage(Context, int) - Constructor for class stanford.androidlib.graphics.GImage
Creates a new GImage object at the origin inside the given context.
GImage(View, int) - Constructor for class stanford.androidlib.graphics.GImage
Creates a new GImage object at the origin inside the given view.
GImage(View, int, float, float) - Constructor for class stanford.androidlib.graphics.GImage
Creates a new GImage object at the given x/y location inside the given view.
GImage(Context, int, float, float) - Constructor for class stanford.androidlib.graphics.GImage
Creates a new GImage object at the given x/y location inside the given context.
GLabel - Class in stanford.androidlib.graphics
The GLabel class is a graphical object whose appearance consists of a text string.
GLabel() - Constructor for class stanford.androidlib.graphics.GLabel
Creates a new empty GLabel object with its top-left corner at (0, 0).
GLabel(String) - Constructor for class stanford.androidlib.graphics.GLabel
Creates a new GLabel object at with its top-left corner (0, 0), initialized to contain the specified string.
GLabel(String, float, float) - Constructor for class stanford.androidlib.graphics.GLabel
Creates a new GLabel object with its top-left corner at the specified position.
GLabel(int) - Constructor for class stanford.androidlib.graphics.GLabel
Creates a new GLabel object at with its top-left corner (0, 0), initialized to contain the string with the specified resource ID.
GLabel(int, float, float) - Constructor for class stanford.androidlib.graphics.GLabel
Creates a new GLabel object with its top-left corner at the specified position.
GLine - Class in stanford.androidlib.graphics
The GLine class is a graphical object whose appearance consists of a line segment.
GLine() - Constructor for class stanford.androidlib.graphics.GLine
Constructs a line segment from its endpoints.
GLine(float, float) - Constructor for class stanford.androidlib.graphics.GLine
Constructs a line segment from its endpoints.
GLine(float, float, float, float) - Constructor for class stanford.androidlib.graphics.GLine
Constructs a line segment from its endpoints.
GMath - Class in stanford.androidlib.graphics
This class defines a variety of static mathematical methods that are useful for the acm.graphics package.
GObject - Class in stanford.androidlib.graphics
 
GObject() - Constructor for class stanford.androidlib.graphics.GObject
Constructs a new empty object.
GOval - Class in stanford.androidlib.graphics
The GOval class is a graphical object whose appearance consists of an oval.
GOval() - Constructor for class stanford.androidlib.graphics.GOval
Constructs a new 0x0 oval, positioned at the origin.
GOval(float, float) - Constructor for class stanford.androidlib.graphics.GOval
Constructs a new oval with the specified width and height, positioned at the origin.
GOval(float, float, float, float) - Constructor for class stanford.androidlib.graphics.GOval
Constructs a new oval with the specified bounds.
GPoint - Class in stanford.androidlib.graphics
This class is a double-precision version of the Point class in java.awt.
GPoint() - Constructor for class stanford.androidlib.graphics.GPoint
Constructs a new GPoint at the origin (0, 0).
GPoint(float, float) - Constructor for class stanford.androidlib.graphics.GPoint
Constructs a new GPoint with the specified coordinates.
GPoint(GPoint) - Constructor for class stanford.androidlib.graphics.GPoint
Constructs a new GPoint from an existing one.
GPolygon - Class in stanford.androidlib.graphics
The GPolygon class is a graphical object whose appearance consists of a polygon.
GPolygon() - Constructor for class stanford.androidlib.graphics.GPolygon
Constructs a new empty polygon at the origin.
GPolygon(float, float) - Constructor for class stanford.androidlib.graphics.GPolygon
Constructs a new empty polygon at (x, y).
GPolygon(GPoint[]) - Constructor for class stanford.androidlib.graphics.GPolygon
Constructs a new polygon from the specified array of GPoint objects.
GRAY - Static variable in class stanford.androidlib.graphics.GColor
A color constant representing the color black.
GRect - Class in stanford.androidlib.graphics
The GRect class is a graphical object whose appearance consists of a rectangular box.
GRect() - Constructor for class stanford.androidlib.graphics.GRect
Constructs a new 0x0 rectangle, positioned at the origin.
GRect(float, float) - Constructor for class stanford.androidlib.graphics.GRect
Constructs a new rectangle with the specified width and height, positioned at the origin.
GRect(float, float, float, float) - Constructor for class stanford.androidlib.graphics.GRect
Constructs a new rectangle with the specified bounds.
GRectangle - Class in stanford.androidlib.graphics
This class is a float-precision version of the Rectangle class in java.awt.
GRectangle() - Constructor for class stanford.androidlib.graphics.GRectangle
Constructs a new empty GRectangle.
GRectangle(float, float, float, float) - Constructor for class stanford.androidlib.graphics.GRectangle
Constructs a new GRectangle with the specified coordinates and size.
GRectangle(float, float) - Constructor for class stanford.androidlib.graphics.GRectangle
Constructs a GRectangle at the origin with the specified width and height.
GRectangle(GPoint, GDimension) - Constructor for class stanford.androidlib.graphics.GRectangle
Constructs a new GRectangle with the specified location and size.
GRectangle(GPoint) - Constructor for class stanford.androidlib.graphics.GRectangle
Constructs a new empty GRectangle at the specified location.
GRectangle(GDimension) - Constructor for class stanford.androidlib.graphics.GRectangle
Constructs a new GRectangle at the origin with the specified size.
GRectangle(GRectangle) - Constructor for class stanford.androidlib.graphics.GRectangle
Constructs a new GRectangle from an existing one.
GREEN - Static variable in class stanford.androidlib.graphics.GColor
A color constant representing the color black.
GResizable - Interface in stanford.androidlib.graphics
Specifies the characteristics of a graphical object that supports the setSize and setBounds methods.
grow(float, float) - Method in class stanford.androidlib.graphics.GRectangle
Adjusts the edges of a rectangle by the specified dx and dy offsets along each of its borders.
GScalable - Interface in stanford.androidlib.graphics
Specifies the characteristics of a graphical object that supports the scale method.
GSprite - Class in stanford.androidlib.graphics
This class can be useful for creating objects in basic 2D games.
GSprite() - Constructor for class stanford.androidlib.graphics.GSprite
Constructs a new empty sprite at (0, 0).
GSprite(Bitmap) - Constructor for class stanford.androidlib.graphics.GSprite
Constructs a new sprite at (0, 0) that displays the given bitmap.
GSprite(ArrayList<Bitmap>) - Constructor for class stanford.androidlib.graphics.GSprite
Constructs a new sprite at (0, 0) that displays the given bitmaps.
GSprite(ArrayList<Bitmap>, float, float) - Constructor for class stanford.androidlib.graphics.GSprite
Constructs a new sprite at the given x/y location that displays the given bitmaps.
GSprite(Bitmap, float, float) - Constructor for class stanford.androidlib.graphics.GSprite
Constructs a new sprite at the given x/y location that displays the given bitmap.
GSprite(Bitmap, float, float, float, float) - Constructor for class stanford.androidlib.graphics.GSprite
Constructs a new sprite at the given x/y location and size that displays the given bitmap.
GSprite(GObject) - Constructor for class stanford.androidlib.graphics.GSprite
Constructs a new sprite at the given x/y location that displays the given graphical object.
GSprite(float, float, float, float) - Constructor for class stanford.androidlib.graphics.GSprite
Constructs a new sprite at the given x/y location that displays a plain rectangle of the given size.
GT - Static variable in class stanford.androidlib.xml.XML
The Character 'gt'.

H

handleEnterKeyPress(View) - Method in class stanford.androidlib.SimpleActivity
Attaches a listener so that this activity's onEnterKeyPress method will be called when the Enter key is pressed on the given view.
hasArrowheadEnd() - Method in class stanford.androidlib.graphics.GArrow
 
hasArrowheadStart() - Method in class stanford.androidlib.graphics.GArrow
 
hasCollisionBoundary() - Method in class stanford.androidlib.graphics.GSprite
Returns true if you have set a collision margin.
hasExtra(String) - Method in class stanford.androidlib.graphics.GSprite
Returns whether this sprite has the given extra property inside it.
hashCode() - Method in class stanford.androidlib.graphics.GDimension
Returns an integer hash code for the dimension object.
hashCode() - Method in class stanford.androidlib.graphics.GPoint
Returns an integer hash code for the point.
hashCode() - Method in class stanford.androidlib.graphics.GRectangle
Returns an integer hash code for the rectangle.
hasIntent() - Method in class stanford.androidlib.SimpleActivity
Returns true if this activity was launched with a non-null intent.
hasPermission(String) - Method in class stanford.androidlib.SimpleActivity
Returns true if our application has the given kind of permission, such as Manifest.permission.CAMERA.
hasPreference(String) - Method in class stanford.androidlib.SimpleActivity
Returns true if this activity contains a preference with the given name.
hasSharedPreference(String, String) - Method in class stanford.androidlib.SimpleActivity
Returns true if this activity contains a shared preference with the given name in the given shared preference filename.
hideFragment(Fragment) - Method in class stanford.androidlib.SimpleActivity
Hides the given fragment.
hideFragment(int) - Method in class stanford.androidlib.SimpleActivity
Hides the given fragment.

I

incrementProgressBy(int) - Method in class stanford.androidlib.SimpleProgressDialog
Increases progress by the given amount.
inflateLayout(int) - Method in class stanford.androidlib.SimpleActivity
A shortcut for getting the layout inflater and asking it to inflate the layout with the given ID, with a null root/parent parameter.
init() - Method in class stanford.androidlib.graphics.GCanvas
Called once after the canvas is put onto the screen.
IntentUtils - Class in stanford.androidlib.util
Utility methods related to intents.
intersection(GRectangle) - Method in class stanford.androidlib.graphics.GRectangle
Returns the largest rectangle that is contained in both r1 and r2.
intersects(GObject) - Method in class stanford.androidlib.graphics.GObject
True if this object touches the other object.
intersects(GRectangle) - Method in class stanford.androidlib.graphics.GRectangle
Returns true if r1 and r2 have a nonempty intersection.
intersects(GSprite) - Method in class stanford.androidlib.graphics.GSprite
Returns true if this sprite collides with the given other sprite.
IORuntimeException - Exception in stanford.androidlib
This exception class is a thin wrapper around Java's I/O exception classes like FileNotFoundException and IOException.
IORuntimeException() - Constructor for exception stanford.androidlib.IORuntimeException
 
IORuntimeException(Throwable) - Constructor for exception stanford.androidlib.IORuntimeException
 
IORuntimeException(String) - Constructor for exception stanford.androidlib.IORuntimeException
 
IORuntimeException(String, Throwable) - Constructor for exception stanford.androidlib.IORuntimeException
 
isAfterLast() - Method in class stanford.androidlib.data.SimpleCursor
 
isAnimated() - Method in class stanford.androidlib.SimpleCanvas
Returns whether animation is currently running and/or paused.
isAutoSaveFields() - Method in class stanford.androidlib.SimpleActivity
Returns true if your activity class has the @AutoSaveFields annotation.
isBeforeFirst() - Method in class stanford.androidlib.data.SimpleCursor
 
isClosed() - Method in class stanford.androidlib.data.SimpleCursor
 
isClosed() - Method in class stanford.androidlib.graphics.GArrow
 
isCollidable() - Method in class stanford.androidlib.graphics.GSprite
Returns whether this sprite can be collided with.
isEmpty() - Method in class stanford.androidlib.graphics.GRectangle
Returns true if the rectangle is empty.
isFilled() - Method in interface stanford.androidlib.graphics.GFillable
Returns whether this object is filled.
isFilled() - Method in class stanford.androidlib.graphics.GOval
Returns whether this object is filled.
isFilled() - Method in class stanford.androidlib.graphics.GPolygon
Returns whether this object is filled.
isFilled() - Method in class stanford.androidlib.graphics.GRect
Returns whether this object is filled.
isFinished() - Method in class stanford.androidlib.SimpleProgressDialog
Returns true if the dialog's progress has reached its max.
isFirst() - Method in class stanford.androidlib.data.SimpleCursor
 
isInBounds() - Method in class stanford.androidlib.graphics.GSprite
Returns whether this sprite is within the bounds of its canvas.
isInBounds(Canvas) - Method in class stanford.androidlib.graphics.GSprite
Returns whether this sprite is within the bounds of the given canvas.
isInBounds(RectF) - Method in class stanford.androidlib.graphics.GSprite
Returns whether this sprite is within the bounds of the given rectangle.
isInBounds(float, float, float, float) - Method in class stanford.androidlib.graphics.GSprite
Returns whether this sprite is within the bounds of the given x/y area.
isInBoundsHorizontal() - Method in class stanford.androidlib.graphics.GSprite
Returns whether this sprite is within the horizontal (x) bounds of its canvas.
isInBoundsHorizontal(Canvas) - Method in class stanford.androidlib.graphics.GSprite
Returns whether this sprite is within the horizontal (x) bounds of the given canvas.
isInBoundsHorizontal(RectF) - Method in class stanford.androidlib.graphics.GSprite
Returns whether this sprite is within the horizontal (x) bounds of the given rectangle.
isInBoundsHorizontal(float, float) - Method in class stanford.androidlib.graphics.GSprite
Returns whether this sprite is within the horizontal (x) bounds of the given x area.
isInBoundsVertical() - Method in class stanford.androidlib.graphics.GSprite
Returns whether this sprite is within the vertical (y) bounds of its canvas.
isInBoundsVertical(Canvas) - Method in class stanford.androidlib.graphics.GSprite
Returns whether this sprite is within the vertical (y) bounds of the given canvas.
isInBoundsVertical(RectF) - Method in class stanford.androidlib.graphics.GSprite
Returns whether this sprite is within the vertical (y) bounds of the given rectangle.
isInBoundsVertical(float, float) - Method in class stanford.androidlib.graphics.GSprite
Returns whether this sprite is within the vertical (y) bounds of the given y area.
isInitialized() - Method in class stanford.androidlib.graphics.GCanvas
Returns true if canvas has already been initialized; that is, if init() has been called.
isInProgress() - Method in class stanford.androidlib.SimpleProgressDialog
Returns true if the dialog's progress has not yet reached its max, or true if the dialog is indeterminate.
isLandscape() - Method in class stanford.androidlib.SimpleActivity
Returns true if the device is in landscape orientation.
isLast() - Method in class stanford.androidlib.data.SimpleCursor
 
isLoopBitmaps() - Method in class stanford.androidlib.graphics.GSprite
Returns whether the sequence of bitmaps (as passed to the constructor or setBitmaps) should loop back to the first one after it ends.
isLTR() - Method in class stanford.androidlib.SimpleLocalization
Returns true if this app is running in a Left-to-Right (LTR) layout.
isMoving() - Method in class stanford.androidlib.graphics.GSprite
Returns whether this sprite has a non-zero velocity in any dimension.
isNull(int) - Method in class stanford.androidlib.data.SimpleCursor
 
isPortrait() - Method in class stanford.androidlib.SimpleActivity
Returns true if the device is in portrait orientation.
isRTL() - Method in class stanford.androidlib.SimpleLocalization
Returns true if this app is running in a Right-to-Left (RTL) layout.
isRunning() - Method in class stanford.androidlib.AnimationLoop
Returns true if the drawing thread is currently started and running.
isVisible() - Method in class stanford.androidlib.graphics.GObject
Checks to see whether this object is visible.
isVisible() - Method in class stanford.androidlib.graphics.GSprite
Returns whether the sprite is visible.
iterator() - Method in class stanford.androidlib.data.SimpleCursor
 
iterator() - Method in class stanford.androidlib.graphics.GCanvas
Returns an iterator over the GObjects found in this canvas.
iterator(boolean) - Method in class stanford.androidlib.graphics.GCanvas
Returns an iterator over the GObjects found in this canvas.
iterator() - Method in class stanford.androidlib.graphics.GCompound
Returns an Iterator that cycles through the elements within this container in the default direction, which is from back to front.

J

JSONRuntimeException - Exception in stanford.androidlib.json
RuntimeException thrown when JSON data is invalid.
JSONRuntimeException() - Constructor for exception stanford.androidlib.json.JSONRuntimeException
 
JSONRuntimeException(Throwable) - Constructor for exception stanford.androidlib.json.JSONRuntimeException
 
JSONRuntimeException(String) - Constructor for exception stanford.androidlib.json.JSONRuntimeException
 
JSONRuntimeException(String, Throwable) - Constructor for exception stanford.androidlib.json.JSONRuntimeException
 

L

LIGHT_GRAY - Static variable in class stanford.androidlib.graphics.GColor
A color constant representing the color black.
LINE_TOLERANCE - Static variable in class stanford.androidlib.graphics.GLine
This constant defines how close (measured in pixel units) a point has to be to a line before that point is considered to be "contained" within the line.
listCreateAdapter(T...) - Method in class stanford.androidlib.SimpleActivity
Creates and returns an ArrayAdapter to store the given items.
listCreateAdapter(int, int, T...) - Method in class stanford.androidlib.SimpleActivity
Creates and returns an ArrayAdapter to store the given items, using the given layout ID and TextView ID.
listCreateAdapter(List<T>) - Method in class stanford.androidlib.SimpleActivity
Creates and returns an ArrayAdapter to store the given items.
listCreateAdapter(List<T>, int, int) - Method in class stanford.androidlib.SimpleActivity
Creates and returns an ArrayAdapter to store the given items, using the given layout ID and TextView ID.
listGetItems(AdapterView<?>) - Method in class stanford.androidlib.SimpleActivity
Returns the text of the items currently in the given list view as an ArrayList.
listSetItems(AdapterView<?>, ArrayList<String>) - Method in class stanford.androidlib.SimpleActivity
Sets the items currently in the given list view to those stored in the given ArrayList.
listSetItems(AdapterView<?>, String[]) - Method in class stanford.androidlib.SimpleActivity
Sets the items currently in the given list view to those passed in the given array.
listSetItems(AdapterView<?>, Object...) - Method in class stanford.androidlib.SimpleActivity
Sets the items currently in the given list view to those passed.
localizeCurrency(double) - Static method in class stanford.androidlib.SimpleLocalization
Returns a currency number string formatted for this locale.
localizeCurrency(String, double) - Static method in class stanford.androidlib.SimpleLocalization
Returns a currency number string formatted for the given currency.
localizeCurrency(Currency, double) - Static method in class stanford.androidlib.SimpleLocalization
Returns a currency number string formatted for the given currency.
localizeDate(Date) - Static method in class stanford.androidlib.SimpleLocalization
Returns a date string formatted for this locale.
localizeNumber(int) - Static method in class stanford.androidlib.SimpleLocalization
Returns a number string formatted for this locale.
localizeNumber(long) - Static method in class stanford.androidlib.SimpleLocalization
Returns a number string formatted for this locale.
localizeNumber(double) - Static method in class stanford.androidlib.SimpleLocalization
Returns a number string formatted for this locale.
log(Object) - Method in class stanford.androidlib.SimpleActivity
Prints a debug (.d) log message containing the given text.
log(String) - Method in class stanford.androidlib.SimpleActivity
Prints a debug (.d) log message containing the given text.
log(String, Throwable) - Method in class stanford.androidlib.SimpleActivity
Prints a WTF (.wtf) log message containing the given text and exception.
log(Throwable) - Method in class stanford.androidlib.SimpleActivity
Prints a WTF (.wtf) log message containing the given exception.
LT - Static variable in class stanford.androidlib.xml.XML
The Character 'lt'.

M

MAGENTA - Static variable in class stanford.androidlib.graphics.GColor
A color constant representing the color magenta.
main(String[]) - Static method in class stanford.androidlib.Version
This main method simply prints the library version and exits.
makeColor(int, int, int) - Static method in class stanford.androidlib.graphics.GColor
Returns a new paint with the given RGB components from 0-255.
makeIntent(Class<? extends Activity>, Object...) - Method in class stanford.androidlib.util.IntentUtils
 
makeIntent(String, Object...) - Method in class stanford.androidlib.util.IntentUtils
 
makeIntentAction(Class<? extends Activity>, String, Object...) - Method in class stanford.androidlib.util.IntentUtils
 
makePendingIntent(Class<? extends Activity>, Object...) - Method in class stanford.androidlib.util.IntentUtils
 
makePendingIntent(Class<? extends Activity>, int, Object...) - Method in class stanford.androidlib.util.IntentUtils
 
map(double, double) - Method in class stanford.androidlib.SimpleActivity
Launches the system default mapping application to display a map centered about the given latitude / longitude coordinates at the default zoom level of 14.
map(double, double, int) - Method in class stanford.androidlib.SimpleActivity
Launches the system default mapping application to display a map centered about the given latitude / longitude coordinates at the given zoom level.
markAsComplete() - Method in class stanford.androidlib.graphics.GCompound
Calling this method makes it illegal to add or remove elements from the compound object.
markAsComplete() - Method in class stanford.androidlib.graphics.GPolygon
Calling this method makes it illegal to add or remove vertices from the polygon.
matchColor(Paint, Paint) - Static method in class stanford.androidlib.graphics.GColor
Modifies dst to have the same ARGB values as src.
microphoneExists() - Method in class stanford.androidlib.SimpleActivity
Returns true if the device has a microphone.
MissingMethodException - Exception in stanford.androidlib
An exception thrown when a SimpleActivity subclass does not implement a method that it ought to implement.
MissingMethodException() - Constructor for exception stanford.androidlib.MissingMethodException
 
MissingMethodException(Throwable) - Constructor for exception stanford.androidlib.MissingMethodException
 
MissingMethodException(String) - Constructor for exception stanford.androidlib.MissingMethodException
 
MissingMethodException(String, Throwable) - Constructor for exception stanford.androidlib.MissingMethodException
 
mobileConnectionExists() - Method in class stanford.androidlib.SimpleActivity
Returns true if the device currently has a working mobile internet connection, as reported by the system connectivity service.
move(int) - Method in class stanford.androidlib.data.SimpleCursor
 
moveBy(float, float) - Method in class stanford.androidlib.graphics.GObject
Moves the object on the screen using the displacements dx and dy.
moveByPolar(float, float) - Method in class stanford.androidlib.graphics.GObject
Moves the object using displacements given in polar coordinates.
moveTo(GObject) - Method in class stanford.androidlib.graphics.GObject
Moves this GObject to have the same location as the given other GObject.
moveTo(float, float) - Method in class stanford.androidlib.graphics.GObject
Moves the object on the screen using the displacements dx and dy.
moveToFirst() - Method in class stanford.androidlib.data.SimpleCursor
 
moveToLast() - Method in class stanford.androidlib.data.SimpleCursor
 
moveToNext() - Method in class stanford.androidlib.data.SimpleCursor
 
moveToPolar(float, float) - Method in class stanford.androidlib.graphics.GObject
Moves the object using displacements given in polar coordinates.
moveToPosition(int) - Method in class stanford.androidlib.data.SimpleCursor
 
moveToPrevious() - Method in class stanford.androidlib.data.SimpleCursor
 

N

networkConnectionExists() - Method in class stanford.androidlib.SimpleActivity
Returns true if the device currently has a working internet connection, as reported by the system connectivity service.
nextBoolean() - Method in class stanford.androidlib.util.RandomGenerator
Returns a random boolean value that is true or false with equal probability.
nextBoolean(double) - Method in class stanford.androidlib.util.RandomGenerator
Returns a random boolean value with the specified probability.
nextCDATA() - Method in class stanford.androidlib.xml.XMLTokener
Get the text in the CDATA block.
nextColor() - Method in class stanford.androidlib.util.RandomGenerator
Returns a random opaque color whose components are chosen uniformly in the 0-255 range.
nextContent() - Method in class stanford.androidlib.xml.XMLTokener
Get the next XML outer token, trimming whitespace.
nextDouble(double, double) - Method in class stanford.androidlib.util.RandomGenerator
Returns the next random real number in the specified range.
nextEntity(char) - Method in class stanford.androidlib.xml.XMLTokener
Return the next entity.
nextFloat(float) - Method in class stanford.androidlib.util.RandomGenerator
Returns the next float number between 0 and the given maximum.
nextFloat(float, float) - Method in class stanford.androidlib.util.RandomGenerator
Returns the next float number between the given minimum and maximum.
nextInt(int) - Method in class stanford.androidlib.util.RandomGenerator
Returns the next random integer between 0 and n-1, inclusive.
nextInt(int, int) - Method in class stanford.androidlib.util.RandomGenerator
Returns the next random integer in the specified range.
nextMeta() - Method in class stanford.androidlib.xml.XMLTokener
Returns the next XML meta token.
nextToken() - Method in class stanford.androidlib.xml.XMLTokener
Get the next XML Token.
noSpace(String) - Static method in class stanford.androidlib.xml.XML
Throw an exception if the string contains whitespace.

O

onActivityCreated(Bundle) - Method in class stanford.androidlib.SimpleFragment
Activity lifecycle method.
onActivityResult(int, int, Intent) - Method in class stanford.androidlib.SimpleActivity
Called when various activities return their results.
onActivityResult(int, int, Intent) - Method in class stanford.androidlib.SimpleFragment
Activity lifecycle method.
onAlertDialogClose(AlertDialog) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onAnimateTick() - Method in class stanford.androidlib.graphics.GCanvas
This method is automatically called once for each frame of animation by the AnimationLoop.
onAnimateTick() - Method in class stanford.androidlib.SimpleCanvas
This is a callback that will be called on your canvas every time the animation ticks each frame of animation.
onAttach(Context) - Method in class stanford.androidlib.SimpleFragment
Activity lifecycle method.
onBind(Intent) - Method in class stanford.androidlib.SimpleIntentService
This method returns null to indicate that a SimpleService does not support binding.
onBind(Intent) - Method in class stanford.androidlib.SimpleService
This method returns null to indicate that a SimpleService does not support binding.
onBroadcastReceived(Intent) - Method in class stanford.androidlib.SimpleActivity
Override this method to handle broadcasts registered through registerReceiver(String).
onCheckedChanged(CompoundButton, boolean) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onCheckedChanged(RadioGroup, int) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onCheckedChanged(CompoundButton, boolean) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
onCheckedChanged(RadioGroup, int) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
onClick(View) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onClick(View) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
onCompletion(MediaPlayer) - Method in class stanford.androidlib.SimpleActivity
Called when a MediaPlayer is done playing.
onCreate(Bundle) - Method in class stanford.androidlib.SimpleActivity
Activity lifecycle method.
onCreate(Bundle) - Method in class stanford.androidlib.SimpleFragment
Activity lifecycle method.
onCreate() - Method in class stanford.androidlib.SimpleService
Lifecycle method that is called when the service is created.
onCreateView(LayoutInflater, ViewGroup, Bundle) - Method in class stanford.androidlib.SimpleFragment
Activity lifecycle method.
onDateInputDialogClose(View, int, int, int) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onDestroy() - Method in class stanford.androidlib.SimpleActivity
Activity lifecycle method.
onDestroy() - Method in class stanford.androidlib.SimpleFragment
Activity lifecycle method.
onDestroyView() - Method in class stanford.androidlib.SimpleFragment
Activity lifecycle method.
onDetach() - Method in class stanford.androidlib.SimpleFragment
Activity lifecycle method.
onDetachedFromWindow() - Method in class stanford.androidlib.SimpleCanvas
This View lifecycle method is overridden to stop any animation from running if this canvas is removed from the screen.
onDialogCancel(DialogInterface) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onDialogNegativeClick(DialogInterface) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onDoubleTap(MotionEvent) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onDoubleTap(MotionEvent) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
onDoubleTapEvent(MotionEvent) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onDoubleTapEvent(MotionEvent) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
onDown(MotionEvent) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onDown(MotionEvent) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
onDrag(View, DragEvent) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onDrag(View, DragEvent) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
onDraw(Canvas) - Method in class stanford.androidlib.graphics.GCanvas
Draws the canvas; you should not override this method.
onEnterKeyPress(View) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onFling(MotionEvent, MotionEvent, float, float) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onFling(MotionEvent, MotionEvent, float, float) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
onFocusChange(View, boolean) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onFocusChange(View, boolean) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
onGenericMotion(View, MotionEvent) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onGenericMotion(View, MotionEvent) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
onHover(View, MotionEvent) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onHover(View, MotionEvent) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
onInflate(ViewStub, View) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onInflate(ViewStub, View) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
onInit(int) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onInit(int) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
onInputDialogClose(AlertDialog, String) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onItemClick(AdapterView<?>, View, int, long) - Method in class stanford.androidlib.SimpleActivity
Handles ListView and Spinner clicks and calls the other overload of onItemClick.
onItemClick(ListView, int) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onItemClick(Spinner, int) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onItemClick(AdapterView<?>, View, int, long) - Method in class stanford.androidlib.SimpleFragment
Handles ListView and Spinner clicks and calls the other overload of onItemClick.
onItemClick(ListView, int) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
onItemClick(Spinner, int) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
onItemLongClick(AdapterView<?>, View, int, long) - Method in class stanford.androidlib.SimpleActivity
Handles ListView and Spinner clicks and calls the other overload of onItemLongClick.
onItemLongClick(ListView, int) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onItemLongClick(Spinner, int) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onItemLongClick(AdapterView<?>, View, int, long) - Method in class stanford.androidlib.SimpleFragment
Handles ListView and Spinner clicks and calls the other overload of onItemLongClick.
onItemLongClick(ListView, int) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
onItemLongClick(Spinner, int) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
onItemSelected(AdapterView<?>, View, int, long) - Method in class stanford.androidlib.SimpleActivity
Handles ListView and Spinner clicks and calls the other overload of onItemSelected.
onItemSelected(ListView, int) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onItemSelected(Spinner, int) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onItemSelected(AdapterView<?>, View, int, long) - Method in class stanford.androidlib.SimpleFragment
Handles ListView and Spinner clicks and calls the other overload of onItemSelected.
onItemSelected(ListView, int) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
onItemSelected(Spinner, int) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
onKey(View, int, KeyEvent) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onKey(View, int, KeyEvent) - Method in class stanford.androidlib.SimpleCanvas
Required method of OnKeyListener interface.
onKey(View, int, KeyEvent) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
onLayout(boolean, int, int, int, int) - Method in class stanford.androidlib.graphics.GCanvas
This view lifecycle method is overridden so that we can ensure that init() is called on the canvas before it is shown.
onLongClick(View) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onLongClick(View) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
onLongPress(MotionEvent) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onLongPress(MotionEvent) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
onMenuItemClick(MenuItem) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onMenuItemClick(MenuItem) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
onMultiInputDialogClose(AlertDialog, String[]) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onNavigationItemSelected(int, long) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onNothingSelected(AdapterView<?>) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onNothingSelected(AdapterView<?>) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
onPause() - Method in class stanford.androidlib.SimpleActivity
Activity lifecycle method.
onPause() - Method in class stanford.androidlib.SimpleFragment
Activity lifecycle method.
onPhotoReady(Bitmap) - Method in class stanford.androidlib.SimpleActivity
Override this method to indicate what to do when a photo is done being taken or chosen.
onProgressDialogClose(ProgressDialog) - Method in class stanford.androidlib.SimpleActivity
 
onRestart() - Method in class stanford.androidlib.SimpleActivity
Activity lifecycle method.
onRestoreInstanceState(Bundle) - Method in class stanford.androidlib.SimpleActivity
Called when this activity saves its instance state; if the @AutoSaveFields annotation is present on your activity class, automatically loads the value of your class's fields.
onResume() - Method in class stanford.androidlib.SimpleActivity
Activity lifecycle method.
onResume() - Method in class stanford.androidlib.SimpleFragment
Activity lifecycle method.
onSaveInstanceState(Bundle) - Method in class stanford.androidlib.SimpleActivity
Called when this activity saves its instance state; if the @AutoSaveFields annotation is present on your activity class, automatically saves the value of your class's fields.
onScale(float) - Method in class stanford.androidlib.OnSwipeListener
You can override this method if you want to subclass OnSwipeListener.
onScale(float) - Method in interface stanford.androidlib.OnSwipeListener.OnScaleListenerImpl
 
onScale(float) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onScale(ScaleGestureDetector) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onScale(float) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
onScale(ScaleGestureDetector) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
onScaleBegin(ScaleGestureDetector) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onScaleBegin(ScaleGestureDetector) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
onScaleEnd(ScaleGestureDetector) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onScaleEnd(ScaleGestureDetector) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
onScroll(MotionEvent, MotionEvent, float, float) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onScroll(MotionEvent, MotionEvent, float, float) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
onShowPress(MotionEvent) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onShowPress(MotionEvent) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
onSingleTapConfirmed(MotionEvent) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onSingleTapConfirmed(MotionEvent) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
onSingleTapUp(MotionEvent) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onSingleTapUp(MotionEvent) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
onSpeechToTextReady(String) - Method in class stanford.androidlib.SimpleActivity
Override this method to indicate what to do when a speech-to-text action is done recording the user's voice and translating it to text.
onStart() - Method in class stanford.androidlib.SimpleActivity
Activity lifecycle method.
onStart() - Method in class stanford.androidlib.SimpleFragment
Activity lifecycle method.
onStartCommand(Intent, int, int) - Method in class stanford.androidlib.SimpleService
This method handles a single incoming request; rather than overriding this method, override onStartInThread(Intent) to handle each incoming request.
onStartInThread(Intent) - Method in class stanford.androidlib.SimpleService
Override this method to handle each incoming request.
onStop() - Method in class stanford.androidlib.SimpleActivity
Stops the activity, performing some needed cleanup such as shutting down the text-to-speech system if it was in use.
onStop() - Method in class stanford.androidlib.SimpleFragment
Stops the activity, performing some needed cleanup such as shutting down the text-to-speech system if it was in use.
OnSwipeAdapterImpl() - Constructor for class stanford.androidlib.OnSwipeListener.OnSwipeAdapterImpl
 
onSwipeDown(float) - Method in class stanford.androidlib.OnSwipeListener.OnSwipeAdapterImpl
 
onSwipeDown(float) - Method in class stanford.androidlib.OnSwipeListener
You can override this method if you want to subclass OnSwipeListener.
onSwipeDown(float) - Method in interface stanford.androidlib.OnSwipeListener.OnSwipeListenerImpl
 
onSwipeDown(float) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onSwipeDown(float) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
onSwipeLeft(float) - Method in class stanford.androidlib.OnSwipeListener.OnSwipeAdapterImpl
 
onSwipeLeft(float) - Method in class stanford.androidlib.OnSwipeListener
You can override this method if you want to subclass OnSwipeListener.
onSwipeLeft(float) - Method in interface stanford.androidlib.OnSwipeListener.OnSwipeListenerImpl
 
onSwipeLeft(float) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onSwipeLeft(float) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
OnSwipeListener - Class in stanford.androidlib
This class makes it easier to detect mouse/finger swipe motions on a view.
OnSwipeListener(Context) - Constructor for class stanford.androidlib.OnSwipeListener
Constructs a new listener for the given context (activity or fragment).
OnSwipeListener.OnScaleListenerImpl - Interface in stanford.androidlib
This interface makes it easier to detect mouse/finger pinch-to-scale motions on a view.
OnSwipeListener.OnSwipeAdapterImpl - Class in stanford.androidlib
This class makes it easier to detect mouse/finger swipe motions on a view.
OnSwipeListener.OnSwipeListenerImpl - Interface in stanford.androidlib
This interface makes it easier to detect mouse/finger swipe motions on a view.
onSwipeRight(float) - Method in class stanford.androidlib.OnSwipeListener.OnSwipeAdapterImpl
 
onSwipeRight(float) - Method in interface stanford.androidlib.OnSwipeListener.OnSwipeListenerImpl
 
onSwipeRight(float) - Method in class stanford.androidlib.OnSwipeListener
You can override this method if you want to subclass OnSwipeListener.
onSwipeRight(float) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onSwipeRight(float) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
onSwipeUp(float) - Method in class stanford.androidlib.OnSwipeListener.OnSwipeAdapterImpl
 
onSwipeUp(float) - Method in interface stanford.androidlib.OnSwipeListener.OnSwipeListenerImpl
 
onSwipeUp(float) - Method in class stanford.androidlib.OnSwipeListener
You can override this method if you want to subclass OnSwipeListener.
onSwipeUp(float) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onSwipeUp(float) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
onTimeInputDialogClose(View, int, int) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onTouch(View, MotionEvent) - Method in class stanford.androidlib.OnSwipeListener
Internal method used to implement mouse touch events.
onTouch(View, MotionEvent) - Method in class stanford.androidlib.SimpleActivity
Empty event listener method to be overridden.
onTouch(View, MotionEvent) - Method in class stanford.androidlib.SimpleCanvas
Required method of OnTouchListener interface.
onTouch(View, MotionEvent) - Method in class stanford.androidlib.SimpleFragment
Empty event listener method to be overridden.
openExternalFileBufferedReader(String, String) - Method in class stanford.androidlib.SimpleActivity
Opens and returns a FileInputStream to read the given file in the given external directory.
openExternalFileInputStream(String, String) - Method in class stanford.androidlib.SimpleActivity
Opens and returns a Scanner to read the given file in the given external directory.
openExternalFilePrintStream(String, String) - Method in class stanford.androidlib.SimpleActivity
Opens and returns a PrintStream to write the given file in the given external directory.
openExternalFilePrintStream(String, String, boolean) - Method in class stanford.androidlib.SimpleActivity
Opens and returns a PrintStream to write the given file in the given external directory.
openExternalFileScanner(String, String) - Method in class stanford.androidlib.SimpleActivity
Opens and returns a Scanner to read the given file in the given external directory.
openFileInput(File) - Method in class stanford.androidlib.SimpleActivity
Opens an external file for reading.
openFileInput(File, String) - Method in class stanford.androidlib.SimpleActivity
Opens an external file in the given directory for reading.
openFileInput(String) - Method in class stanford.androidlib.SimpleActivity
Opens an external file for reading.
openFileOutput(File, int) - Method in class stanford.androidlib.SimpleActivity
Opens an external file for writing in the given mode, such as MODE_PRIVATE or MODE_APPEND.
openFileOutput(File, String, int) - Method in class stanford.androidlib.SimpleActivity
Opens an external file in the given directory for writing in the given mode, such as MODE_PRIVATE or MODE_APPEND.
openFileOutput(String, int) - Method in class stanford.androidlib.SimpleActivity
Opens an external file for writing in the given mode, such as MODE_PRIVATE or MODE_APPEND.
openInternalFileBufferedReader(File) - Method in class stanford.androidlib.SimpleActivity
Opens a BufferedReader for reading from the given file.
openInternalFileBufferedReader(File, String) - Method in class stanford.androidlib.SimpleActivity
Opens a BufferedReader for reading from the given file in the given directory.
openInternalFileBufferedReader(String) - Method in class stanford.androidlib.SimpleActivity
Opens a BufferedReader for reading from the given file.
openInternalFileBufferedReader(int) - Method in class stanford.androidlib.SimpleActivity
Opens a BufferedReader to read the file with the given ID.
openInternalFilePrintStream(File) - Method in class stanford.androidlib.SimpleActivity
Opens a PrintStream for writing into the given file, replacing any previous data.
openInternalFilePrintStream(File, String) - Method in class stanford.androidlib.SimpleActivity
Opens a PrintStream for writing into the given file, replacing any previous data.
openInternalFilePrintStream(String) - Method in class stanford.androidlib.SimpleActivity
Opens a PrintStream for writing into the given file, replacing any previous data.
openInternalFilePrintStream(File, boolean) - Method in class stanford.androidlib.SimpleActivity
Opens a PrintStream for writing into the given file.
openInternalFilePrintStream(File, String, boolean) - Method in class stanford.androidlib.SimpleActivity
Opens a PrintStream for writing into the given file.
openInternalFilePrintStream(String, boolean) - Method in class stanford.androidlib.SimpleActivity
Opens a PrintStream for writing into the given file.
openInternalFileScanner(File) - Method in class stanford.androidlib.SimpleActivity
Opens a Scanner to read the file with the given name.
openInternalFileScanner(File, String) - Method in class stanford.androidlib.SimpleActivity
Opens a Scanner to read the file with the given name.
openInternalFileScanner(String) - Method in class stanford.androidlib.SimpleActivity
Opens a Scanner to read the file with the given name.
openInternalFileScanner(int) - Method in class stanford.androidlib.SimpleActivity
Opens a Scanner to read the file with the given ID.
openInternalFileStream(int) - Method in class stanford.androidlib.SimpleActivity
Opens an InputStream to read the file with the given ID.
openOrCreateDatabase(String) - Method in class stanford.androidlib.SimpleActivity
Opens or creates a database with the given name in MODE_PRIVATE mode.
ORANGE - Static variable in class stanford.androidlib.graphics.GColor
A color constant representing the color orange.

P

paint(Canvas) - Method in class stanford.androidlib.graphics.GArrow
 
paint(Canvas) - Method in class stanford.androidlib.graphics.GCompound
Implements the paint operation for this graphical object.
paint(Canvas) - Method in class stanford.androidlib.graphics.GImage
Implements the paint operation for this graphical object.
paint(Canvas) - Method in class stanford.androidlib.graphics.GLabel
Implements the paint operation for this graphical object.
paint(Canvas) - Method in class stanford.androidlib.graphics.GLine
Implements the paint operation for this graphical object.
paint(Canvas) - Method in class stanford.androidlib.graphics.GObject
All subclasses of GObject must define a paint method which allows the object to draw itself on the Graphics context passed in as the parameter g.
paint(Canvas) - Method in class stanford.androidlib.graphics.GOval
Implements the paint operation for this graphical object.
paint(Canvas) - Method in class stanford.androidlib.graphics.GPolygon
Implements the paint operation for this graphical object.
paint(Canvas) - Method in class stanford.androidlib.graphics.GRect
Implements the paint operation for this graphical object.
paint(Canvas) - Method in class stanford.androidlib.graphics.GSprite
Draws this sprite onto the given graphical canvas.
paint - Variable in class stanford.androidlib.SimpleCanvas
 
parseLocalizedDouble(String) - Static method in class stanford.androidlib.SimpleLocalization
 
parseLocalizedFloat(String) - Static method in class stanford.androidlib.SimpleLocalization
Returns a float parsed from the given string.
parseLocalizedInt(String) - Static method in class stanford.androidlib.SimpleLocalization
 
parseLocalizedLong(String) - Static method in class stanford.androidlib.SimpleLocalization
 
PermissionRuntimeException - Exception in stanford.androidlib
An exception thrown when a SimpleActivity subclass does not have permission to do something it wants to do.
PermissionRuntimeException() - Constructor for exception stanford.androidlib.PermissionRuntimeException
 
PermissionRuntimeException(Throwable) - Constructor for exception stanford.androidlib.PermissionRuntimeException
 
PermissionRuntimeException(String) - Constructor for exception stanford.androidlib.PermissionRuntimeException
 
PermissionRuntimeException(String, Throwable) - Constructor for exception stanford.androidlib.PermissionRuntimeException
 
photoGallery() - Method in class stanford.androidlib.SimpleActivity
Launches the device's photo gallery activity.
PINK - Static variable in class stanford.androidlib.graphics.GColor
A color constant representing the color pink.
preAnimateTick() - Method in class stanford.androidlib.SimpleCanvas
This is called each time there is a tick of animation by the AnimationLoop.
printf(String, Object...) - Method in class stanford.androidlib.SimpleActivity
Prints a verbose (.v) log message containing the given formatted string.
println(Object) - Method in class stanford.androidlib.SimpleActivity
Prints a verbose (.v) log message containing the given text.
println(String) - Method in class stanford.androidlib.SimpleActivity
Prints a verbose (.v) log message containing the given text.
PURPLE - Static variable in class stanford.androidlib.graphics.GColor
A color constant representing the color purple.
putExtras(Bundle) - Method in class stanford.androidlib.graphics.GSprite
Adds all extras from the given Bundle into this Sprite.
putParameters(Intent, Object...) - Static method in class stanford.androidlib.util.IntentUtils
Puts the given 'extra' parameters into the given Intent.

Q

QUEST - Static variable in class stanford.androidlib.xml.XML
The Character '?'.
QUOT - Static variable in class stanford.androidlib.xml.XML
The Character '"'.

R

random() - Static method in class stanford.androidlib.graphics.GColor
Returns a randomly chosen color.
RandomGenerator - Class in stanford.androidlib.util
This class implements a simple random number generator that allows clients to generate pseudorandom integers, doubles, booleans, and colors.
RandomGenerator() - Constructor for class stanford.androidlib.util.RandomGenerator
Creates a new random generator.
readFileLines(int) - Method in class stanford.androidlib.SimpleActivity
Reads the entire text of the file with the given ID, returning it as a list of lines.
readFileLines(File) - Method in class stanford.androidlib.SimpleActivity
Reads the entire text of the given file, returning it as a list of lines.
readFileLines(File, String) - Method in class stanford.androidlib.SimpleActivity
Reads the entire text of the given file, returning it as a list of lines.
readFileLines(InputStream) - Method in class stanford.androidlib.SimpleActivity
Reads the entire text from the given stream, returning it as a list of lines.
readFileLines(String) - Method in class stanford.androidlib.SimpleActivity
Reads the entire text of the given file, returning it as a list of lines.
readFileText(int) - Method in class stanford.androidlib.SimpleActivity
Reads the entire text of the file with the given ID, returning it as a string.
readFileText(File) - Method in class stanford.androidlib.SimpleActivity
Reads the entire text of the given file, returning it as a string.
readFileText(InputStream) - Method in class stanford.androidlib.SimpleActivity
Reads the entire text from the given stream, returning it as a string.
readFileText(File, String) - Method in class stanford.androidlib.SimpleActivity
Reads the entire text of the given file, returning it as a string.
readFileText(String) - Method in class stanford.androidlib.SimpleActivity
Reads the entire text of the given file, returning it as a string.
recenter() - Method in class stanford.androidlib.graphics.GPolygon
Recalculates the vertices of the polygon so that they are positioned relative to the geometric center of the object.
RED - Static variable in class stanford.androidlib.graphics.GColor
A color constant representing the color red.
ReflectionRuntimeException - Exception in stanford.androidlib
This exception class is a thin wrapper around Java's reflection exception classes like ClassNotFoundException and NoSuchMethodException.
ReflectionRuntimeException() - Constructor for exception stanford.androidlib.ReflectionRuntimeException
 
ReflectionRuntimeException(Throwable) - Constructor for exception stanford.androidlib.ReflectionRuntimeException
 
ReflectionRuntimeException(String) - Constructor for exception stanford.androidlib.ReflectionRuntimeException
 
ReflectionRuntimeException(String, Throwable) - Constructor for exception stanford.androidlib.ReflectionRuntimeException
 
registerContentObserver(ContentObserver) - Method in class stanford.androidlib.data.SimpleCursor
 
registerDataSetObserver(DataSetObserver) - Method in class stanford.androidlib.data.SimpleCursor
 
registerReceiver(String...) - Method in class stanford.androidlib.SimpleActivity
Registers this activity as a broadcast receiver for the given action(s).
remove(GObject) - Method in class stanford.androidlib.graphics.GCanvas
Removes the given graphical object, if it was contained in this canvas.
remove(GObject) - Method in class stanford.androidlib.graphics.GCompound
Removes a graphical object from this GCompound.
removeAll() - Method in class stanford.androidlib.graphics.GCanvas
Removes all graphical objects from this canvas.
removeAll() - Method in class stanford.androidlib.graphics.GCompound
Removes all graphical objects from this GCompound.
removeExtra(String) - Method in class stanford.androidlib.graphics.GSprite
Removes the extra property inside this sprite with the given name.
removeFragment(Fragment) - Method in class stanford.androidlib.SimpleActivity
Removes the given fragment from this activity.
removeFragment(int) - Method in class stanford.androidlib.SimpleActivity
Removes the fragment with the given ID from this activity, if it is contained in this activity.
repaint() - Method in class stanford.androidlib.graphics.GObject
 
repaint() - Method in class stanford.androidlib.graphics.GPolygon
Overrides repaint in GObject to invalidate the cached polygon.
replaceFragment(int, Class<? extends Fragment>) - Method in class stanford.androidlib.SimpleActivity
Replaces the fragment in the view container with given ID with a new fragment of the given type.
replaceFragment(int, Fragment) - Method in class stanford.androidlib.SimpleActivity
Replaces the fragment in the view container with given ID with the given new fragment.
REQ_CODE_PHOTO_GALLERY - Static variable in class stanford.androidlib.SimpleActivity
Request code for Intent to launch photo gallery.
REQ_CODE_REQUEST_PERMISSIONS - Static variable in class stanford.androidlib.SimpleActivity
Request code for Intent to request app permissions.
REQ_CODE_SPEECH_TO_TEXT - Static variable in class stanford.androidlib.SimpleActivity
Request code for Intent for speech-to-text.
REQ_CODE_TAKE_PICTURE - Static variable in class stanford.androidlib.SimpleActivity
Request code for Intent to take a photo.
requery() - Method in class stanford.androidlib.data.SimpleCursor
 
requestPermission(String...) - Method in class stanford.androidlib.SimpleActivity
Pops up a request for our application to acquire the given kind of permission(s), such as Manifest.permission.CAMERA.
respond(Bundle) - Method in class stanford.androidlib.data.SimpleCursor
 
restoreAllFields(Bundle) - Method in class stanford.androidlib.SimpleActivity
Extracts all fields' values from the given bundle and stores them back into those fields.
rotate(float) - Method in class stanford.androidlib.graphics.GPolygon
Rotates the polygon around its origin by the angle theta, measured in degrees.
rotateBitmap(Bitmap, float) - Method in class stanford.androidlib.SimpleCanvas
Returns a new bitmap based on the given bitmap but rotated by the given number of degrees clockwise about its center point.
rotateBitmap(Bitmap, float, float, float) - Method in class stanford.androidlib.SimpleCanvas
Returns a new bitmap based on the given bitmap but rotated by the given number of degrees clockwise about the point (rx, ry).
rotateVelocity(float) - Method in class stanford.androidlib.graphics.GSprite
Rotates this sprite's velocity in x and y dimension by the given angle in degrees, clockwise.
round(float) - Static method in class stanford.androidlib.graphics.GMath
Rounds a float value to the nearest int.
rows(Cursor) - Static method in class stanford.androidlib.data.SimpleDatabase
Returns an object that can be used to iterate over the rows of a given query cursor.

S

saveAllFields(Bundle) - Method in class stanford.androidlib.SimpleActivity
Stores all fields' values into the given bundle.
scale(float, float) - Method in class stanford.androidlib.graphics.GCompound
Scales every object contained in this compound by the scale factors sx and sy.
scale(float) - Method in class stanford.androidlib.graphics.GCompound
Scales the object on the screen by the scale factor sf, which applies in both dimensions.
scale(float, float) - Method in class stanford.androidlib.graphics.GImage
Scales the object on the screen by the scale factors sx and sy.
scale(float) - Method in class stanford.androidlib.graphics.GImage
Scales the object on the screen by the scale factor sf, which applies in both dimensions.
scale(float, float) - Method in class stanford.androidlib.graphics.GLine
Scales the line on the screen by the scale factors sx and sy.
scale(float) - Method in class stanford.androidlib.graphics.GLine
Scales the object on the screen by the scale factor sf, which applies in both dimensions.
scale(float, float) - Method in class stanford.androidlib.graphics.GOval
Scales the object on the screen by the scale factors sx and sy.
scale(float) - Method in class stanford.androidlib.graphics.GOval
Scales the object on the screen by the scale factor sf, which applies in both dimensions.
scale(float, float) - Method in class stanford.androidlib.graphics.GPolygon
Scales the polygon by the scale factors sx and sy.
scale(float) - Method in class stanford.androidlib.graphics.GPolygon
Scales the object on the screen by the scale factor sf, which applies in both dimensions.
scale(float, float) - Method in class stanford.androidlib.graphics.GRect
Scales the object on the screen by the scale factors sx and sy.
scale(float) - Method in class stanford.androidlib.graphics.GRect
Scales the object on the screen by the scale factor sf, which applies in both dimensions.
scale(float, float) - Method in interface stanford.androidlib.graphics.GScalable
Scales the object on the screen by the scale factors sx and sy.
scale(float) - Method in interface stanford.androidlib.graphics.GScalable
Scales the object on the screen by the scale factor sf, which applies in both dimensions.
scaleBitmap(Bitmap, float, float) - Method in class stanford.androidlib.SimpleCanvas
Returns a new bitmap which is the given bitmap resized to the given size.
scaleToHeight(Bitmap, float) - Method in class stanford.androidlib.SimpleCanvas
Returns a new bitmap which is the given bitmap resized to have the given height, and a proportionally scaled width to match.
scaleToWidth(Bitmap, float) - Method in class stanford.androidlib.SimpleCanvas
Returns a new bitmap which is the given bitmap resized to have the given width, and a proportionally scaled height to match.
send() - Method in class stanford.androidlib.SimpleNotification
 
send(int) - Method in class stanford.androidlib.SimpleNotification
 
sendBackward(GObject) - Method in class stanford.androidlib.graphics.GCanvas
Moves the given GObject back/down by 1 in the Z-ordering.
sendBackward(GObject) - Method in class stanford.androidlib.graphics.GCompound
Implements the sendBackward function from the GContainer interface.
sendBackward() - Method in class stanford.androidlib.graphics.GObject
Moves this object one step toward the back in the z dimension.
sendBroadcast(String, Object...) - Method in class stanford.androidlib.SimpleIntentService
Sends a broadcast using an intent with the given action and passes it the given 'extra' parameters.
sendBroadcast(String, Object...) - Method in class stanford.androidlib.SimpleService
Sends a broadcast using an intent with the given action and passes it the given 'extra' parameters.
sendForward(GObject) - Method in class stanford.androidlib.graphics.GCanvas
Moves the given GObject forward/up by 1 in the Z-ordering.
sendForward(GObject) - Method in class stanford.androidlib.graphics.GCompound
Implements the sendForward function from the GContainer interface.
sendForward() - Method in class stanford.androidlib.graphics.GObject
Moves this object one step toward the front in the z dimension.
sendToBack(GObject) - Method in class stanford.androidlib.graphics.GCanvas
Moves the given GObject to the back/bottom of the Z-ordering.
sendToBack(GObject) - Method in class stanford.androidlib.graphics.GCompound
Implements the sendToBack function from the GContainer interface.
sendToBack() - Method in class stanford.androidlib.graphics.GObject
Moves this object to the back of the display in the z dimension.
sendToFront(GObject) - Method in class stanford.androidlib.graphics.GCanvas
Moves the given GObject to the front/top of the Z-ordering.
sendToFront(GObject) - Method in class stanford.androidlib.graphics.GCompound
Implements the sendToFront function from the GContainer interface.
sendToFront() - Method in class stanford.androidlib.graphics.GObject
Moves this object to the front of the display in the z dimension.
setAcceleration(float, float) - Method in class stanford.androidlib.graphics.GSprite
Sets the x and y acceleration of this sprite.
setAccelerationX(float) - Method in class stanford.androidlib.graphics.GSprite
Sets the x acceleration of this sprite.
setAccelerationY(float) - Method in class stanford.androidlib.graphics.GSprite
Sets the y acceleration of this sprite.
setAlpha(int) - Method in class stanford.androidlib.SimpleCanvas
Sets this canvas to use the given alpha transparency from 0-255 for all drawing.
setAnimated(boolean) - Method in class stanford.androidlib.OnSwipeListener
Sets whether the view should animate itself when it snaps back or slides off screen.
setAnimationDelay(long) - Method in class stanford.androidlib.OnSwipeListener
Sets the number of milliseconds long that each drag/snap animation will take.
setArrowheadEnd(boolean) - Method in class stanford.androidlib.graphics.GArrow
 
setArrowheadStart(boolean) - Method in class stanford.androidlib.graphics.GArrow
 
setArrowSize(float) - Method in class stanford.androidlib.graphics.GArrow
 
setAutoCancel(boolean) - Method in class stanford.androidlib.SimpleNotification
 
setBackgroundColor(Paint) - Method in class stanford.androidlib.graphics.GCanvas
Sets a background color that will be drawn on this canvas.
setBitmap(Bitmap) - Method in class stanford.androidlib.graphics.GSprite
Sets this sprite to use the given bitmap to draw itself.
setBitmaps(ArrayList<Bitmap>) - Method in class stanford.androidlib.graphics.GSprite
Sets the list of bitmaps for this sprite.
setBitmaps(Bitmap...) - Method in class stanford.androidlib.graphics.GSprite
Sets the list of bitmaps for this sprite.
setBottomY(float) - Method in class stanford.androidlib.graphics.GObject
Sets the object's bottom y-coordinate to be the given value.
setBounds(float, float, float, float) - Method in class stanford.androidlib.graphics.GImage
Changes the bounds of this object to the specified values.
setBounds(GRectangle) - Method in class stanford.androidlib.graphics.GImage
Changes the bounds of this object to the values from the specified GRectangle.
setBounds(float, float, float, float) - Method in class stanford.androidlib.graphics.GOval
Changes the bounds of this object to the specified values.
setBounds(GRectangle) - Method in class stanford.androidlib.graphics.GOval
Changes the bounds of this object to the values from the specified Rectangle.
setBounds(float, float, float, float) - Method in class stanford.androidlib.graphics.GRect
Changes the bounds of this object to the specified values.
setBounds(GRectangle) - Method in class stanford.androidlib.graphics.GRect
Changes the bounds of this object to the values from the specified GRectangle.
setBounds(float, float, float, float) - Method in class stanford.androidlib.graphics.GRectangle
Sets the components of a GRectangle from the specified values.
setBounds(GPoint, GDimension) - Method in class stanford.androidlib.graphics.GRectangle
Sets the components of a GRectangle from the specified location and size.
setBounds(GRectangle) - Method in class stanford.androidlib.graphics.GRectangle
Sets the bounds of one GRectangle equal to that of another.
setBounds(float, float, float, float) - Method in interface stanford.androidlib.graphics.GResizable
Changes the bounds of this object to the specified values.
setBounds(GRectangle) - Method in interface stanford.androidlib.graphics.GResizable
Changes the bounds of this object to the values from the specified GRectangle.
setCanvas(Canvas) - Method in class stanford.androidlib.graphics.GObject
Sets the canvas this object is in.
setCategory(String) - Method in class stanford.androidlib.SimpleNotification
 
setClosed(boolean) - Method in class stanford.androidlib.graphics.GArrow
 
setCollidable(boolean) - Method in class stanford.androidlib.graphics.GSprite
Sets whether it is possible to collide with this sprite.
setCollisionMargin(float) - Method in class stanford.androidlib.graphics.GSprite
Sets a collision margin for this sprite.
setCollisionMargin(float, float) - Method in class stanford.androidlib.graphics.GSprite
Sets a collision margin for this sprite on all four sides.
setCollisionMargin(float, float, float, float) - Method in class stanford.androidlib.graphics.GSprite
Sets a collision margin for this sprite on all four sides.
setCollisionMarginBottom(float) - Method in class stanford.androidlib.graphics.GSprite
Sets a collision margin for this sprite on the bottom side.
setCollisionMarginLeft(float) - Method in class stanford.androidlib.graphics.GSprite
Sets a collision margin for this sprite on the left side only.
setCollisionMarginRight(float) - Method in class stanford.androidlib.graphics.GSprite
Sets a collision margin for this sprite on the right side only.
setCollisionMarginTop(float) - Method in class stanford.androidlib.graphics.GSprite
Sets a collision margin for this sprite on the top side.
setCollisionMarginX(float) - Method in class stanford.androidlib.graphics.GSprite
Sets a collision margin for this sprite on the left and right sides.
setCollisionMarginX(float, float) - Method in class stanford.androidlib.graphics.GSprite
Sets a collision margin for this sprite on the left and right sides.
setCollisionMarginY(float) - Method in class stanford.androidlib.graphics.GSprite
Sets a collision margin for this sprite on the top and bottom sides.
setCollisionMarginY(float, float) - Method in class stanford.androidlib.graphics.GSprite
Sets a collision margin for this sprite on the top and bottom sides.
setColor(Paint) - Method in class stanford.androidlib.graphics.GObject
Sets the color used to display this object.
setColor(int, int, int) - Method in class stanford.androidlib.SimpleCanvas
Sets this canvas to use the given RGB color for all drawing.
setColor(int, int, int, int) - Method in class stanford.androidlib.SimpleCanvas
Sets this canvas to use the given ARGB for all drawing.
setColor(int) - Method in class stanford.androidlib.SimpleNotification
 
setContent(int) - Method in class stanford.androidlib.SimpleNotification
 
setContent(RemoteViews) - Method in class stanford.androidlib.SimpleNotification
 
setContentInfo(int) - Method in class stanford.androidlib.SimpleNotification
 
setContentInfo(CharSequence) - Method in class stanford.androidlib.SimpleNotification
 
setContentIntent(Class<? extends Activity>, Object...) - Method in class stanford.androidlib.SimpleNotification
 
setContentIntent(Class<? extends Activity>, int, Object...) - Method in class stanford.androidlib.SimpleNotification
 
setContentIntent(PendingIntent) - Method in class stanford.androidlib.SimpleNotification
 
setContentText(int) - Method in class stanford.androidlib.SimpleNotification
 
setContentText(CharSequence) - Method in class stanford.androidlib.SimpleNotification
 
setContentTitle(int) - Method in class stanford.androidlib.SimpleNotification
 
setContentTitle(CharSequence) - Method in class stanford.androidlib.SimpleNotification
 
setContext(Context) - Method in class stanford.androidlib.graphics.GImage
 
setCurrentBitmapIndex() - Method in class stanford.androidlib.graphics.GSprite
Returns the index of the bitmap currently being displayed in this sprite's list of bitmaps.
setCurrentBitmapIndex(int) - Method in class stanford.androidlib.graphics.GSprite
Sets the index of the bitmap currently being displayed in this sprite's list of bitmaps.
setDebug(boolean) - Static method in class stanford.androidlib.graphics.GSprite
 
setDefaults(int) - Method in class stanford.androidlib.SimpleNotification
 
setDeleteIntent(Class<? extends Activity>, Object...) - Method in class stanford.androidlib.SimpleNotification
 
setDeleteIntent(Class<? extends Activity>, int, Object...) - Method in class stanford.androidlib.SimpleNotification
 
setDeleteIntent(PendingIntent) - Method in class stanford.androidlib.SimpleNotification
 
setDialogsCancelable(boolean) - Method in class stanford.androidlib.SimpleActivity
Globally sets whether dialogs created with show_Xxx_Dialog(...) will display a Cancel button.
setDialogsIcon(int) - Method in class stanford.androidlib.SimpleActivity
Globally sets whether dialogs created with show_Xxx_Dialog(...) to display the given icon.
setDialogsTitle(String) - Method in class stanford.androidlib.SimpleActivity
Globally sets the title that dialogs created with show_Xxx_Dialog(...) should display.
setDialogsTitle(int) - Method in class stanford.androidlib.SimpleActivity
Globally sets the title that dialogs created with show_Xxx_Dialog(...) should display.
setDisplayBuffer(Bitmap) - Method in class stanford.androidlib.graphics.GCanvas
Sets a display buffer on which to draw.
setDistanceThreshold(float) - Method in class stanford.androidlib.OnSwipeListener
Sets the number of pixels before the listener considers the user to have swiped.
setDragHorizontal(boolean) - Method in class stanford.androidlib.OnSwipeListener
Sets whether the view should track the user's finger as it is dragged horizontally.
setDragSnapBack(boolean) - Method in class stanford.androidlib.OnSwipeListener
Sets whether the view should snap back into position when the user stops dragging it.
setDragSnapThreshold(float) - Method in class stanford.androidlib.OnSwipeListener
Sets the number of pixels in which the view will "snap back" if dragged.
setDragVertical(boolean) - Method in class stanford.androidlib.OnSwipeListener
Sets whether the view should track the user's finger as it is dragged vertically.
setEndPoint(float, float) - Method in class stanford.androidlib.graphics.GLine
Sets the end point of the line to the point (xy).
setExitScreenOnSwipe(boolean) - Method in class stanford.androidlib.OnSwipeListener
Sets whether the view should slide itself off the screen once it has been swiped.
setExtra(String, Object) - Method in class stanford.androidlib.graphics.GSprite
Sets the extra property inside this sprite with the given name.
setExtras(Bundle) - Method in class stanford.androidlib.data.SimpleCursor
 
setExtras(Bundle) - Method in class stanford.androidlib.SimpleNotification
 
setFillColor(Paint) - Method in interface stanford.androidlib.graphics.GFillable
Sets the color used to display the filled region of this object.
setFillColor(Paint) - Method in class stanford.androidlib.graphics.GOval
Sets the color used to display the filled region of this object.
setFillColor(Paint) - Method in class stanford.androidlib.graphics.GPolygon
Sets the color used to display the filled region of this object.
setFillColor(Paint) - Method in class stanford.androidlib.graphics.GRect
Sets the color used to display the filled region of this object.
setFilled(boolean) - Method in interface stanford.androidlib.graphics.GFillable
Sets whether this object is filled.
setFilled(boolean) - Method in class stanford.androidlib.graphics.GOval
Sets whether this object is filled.
setFilled(boolean) - Method in class stanford.androidlib.graphics.GPolygon
Sets whether this object is filled.
setFilled(boolean) - Method in class stanford.androidlib.graphics.GRect
Sets whether this object is filled.
setFont(Typeface) - Method in class stanford.androidlib.graphics.GLabel
Changes the font used to display the GLabel.
setFont(Typeface, float) - Method in class stanford.androidlib.graphics.GLabel
Sets this GLabel to use the given font at the given size.
setFont(Typeface, int, float) - Method in class stanford.androidlib.graphics.GLabel
Sets this GLabel to use the given font at the given style and size.
setFont(String) - Method in class stanford.androidlib.graphics.GLabel
Changes the font used to display the GLabel as specified by the string str.
setFont(Typeface) - Method in class stanford.androidlib.SimpleCanvas
Sets this canvas to use the given font for all drawing.
setFont(Typeface, int) - Method in class stanford.androidlib.SimpleCanvas
Sets this canvas to use the given font for all drawing.
setFont(Typeface, int, float) - Method in class stanford.androidlib.SimpleCanvas
Sets this canvas to use the given font for all drawing.
setFontFamily(String) - Method in class stanford.androidlib.SimpleCanvas
Sets this canvas to use the given font for all drawing.
setFontFileName(String) - Method in class stanford.androidlib.SimpleCanvas
Sets this canvas to use the given font for all drawing.
setFontSize(float) - Method in class stanford.androidlib.graphics.GLabel
Sets this label to use a font of the given size.
setFontSize(float) - Method in class stanford.androidlib.SimpleCanvas
Sets this canvas to use the given font size for all drawing.
setFontStyle(int) - Method in class stanford.androidlib.graphics.GLabel
Sets this label to use the given font style, such as TypeFace.BOLD.
setFramesPerBitmap(int) - Method in class stanford.androidlib.graphics.GSprite
Sets the number of frames of animation that each bitmap in the list should be displayed before automatically cycling to the next frame bitmap.
setFullScreenIntent(PendingIntent, boolean) - Method in class stanford.androidlib.SimpleNotification
 
setFullScreenMode(boolean) - Method in class stanford.androidlib.SimpleActivity
Sets whether the app should hide its title bar and show itself in full-screen mode (true) or have a standard app title bar (false).
setGCanvas(GCanvas) - Method in class stanford.androidlib.graphics.GObject
Sets the canvas on which this GObject should be drawn.
setGroup(String) - Method in class stanford.androidlib.SimpleNotification
 
setGroupSummary(boolean) - Method in class stanford.androidlib.SimpleNotification
 
setID(int) - Method in class stanford.androidlib.SimpleNotification
 
setImage(Bitmap) - Method in class stanford.androidlib.graphics.GImage
Resets the image used by this GImage object to the new image specified as an argument.
setImage(int) - Method in class stanford.androidlib.graphics.GImage
Resets the image used by this GImage object to the one identified by the argument name, which is processed exactly as described in the constructors.
setInfo(String) - Method in class stanford.androidlib.SimpleNotification
 
setInfo(int) - Method in class stanford.androidlib.SimpleNotification
 
setInitialized(boolean) - Method in class stanford.androidlib.graphics.GCanvas
Helper to flag canvas as initialized or not initialized.
setIntent(Class<? extends Activity>, Object...) - Method in class stanford.androidlib.SimpleNotification
 
setIntent(Class<? extends Activity>, int, Object...) - Method in class stanford.androidlib.SimpleNotification
 
setLabel(int) - Method in class stanford.androidlib.graphics.GLabel
Changes the string stored within the GLabel object, so that a new text string appears on the display.
setLabel(String) - Method in class stanford.androidlib.graphics.GLabel
Changes the string stored within the GLabel object, so that a new text string appears on the display.
setLargeIcon(int) - Method in class stanford.androidlib.SimpleNotification
 
setLargeIcon(Bitmap) - Method in class stanford.androidlib.SimpleNotification
 
setLayout(int) - Method in class stanford.androidlib.SimpleNotification
 
setLights(int, int, int) - Method in class stanford.androidlib.SimpleNotification
 
setLocalOnly(boolean) - Method in class stanford.androidlib.SimpleNotification
 
setLocation(float, float) - Method in class stanford.androidlib.graphics.GObject
Sets the location of this object to the point (x, y).
setLocation(GObject) - Method in class stanford.androidlib.graphics.GObject
Moves this GObject to have the same location as the given other GObject.
setLocation(float, float) - Method in class stanford.androidlib.graphics.GPoint
Sets the location of the GPoint to the specified x and y values.
setLocation(GPoint) - Method in class stanford.androidlib.graphics.GPoint
Sets the location of the GPoint to that of an existing one.
setLocation(float, float) - Method in class stanford.androidlib.graphics.GRectangle
Sets the location of the GRectangle to the specified x and y values.
setLocation(GPoint) - Method in class stanford.androidlib.graphics.GRectangle
Sets the location of the GRectangle to the specified point.
setLocation(float, float) - Method in class stanford.androidlib.graphics.GSprite
Moves this sprite to the given x/y location.
setLogging(boolean) - Static method in class stanford.androidlib.data.SimpleDatabase
Sets whether Log.d statements should print as queries are run.
setLoopBitmaps(boolean) - Method in class stanford.androidlib.graphics.GSprite
Sets whether the sequence of bitmaps (as passed to the constructor or setBitmaps) should loop back to the first one after it ends.
setNotificationUri(ContentResolver, Uri) - Method in class stanford.androidlib.data.SimpleCursor
 
setNumber(int) - Method in class stanford.androidlib.SimpleNotification
 
setOngoing(boolean) - Method in class stanford.androidlib.SimpleNotification
 
setOnlyAlertOnce(boolean) - Method in class stanford.androidlib.SimpleNotification
 
setPaint(Paint) - Method in class stanford.androidlib.graphics.GObject
Sets the color used to display this object.
setPaintStyle(Paint.Style) - Method in class stanford.androidlib.SimpleCanvas
Sets this canvas to use the given paint style.
setPreference(String, boolean) - Method in class stanford.androidlib.SimpleActivity
Sets a preference with the given name and value into the app's global preferences.
setPreference(String, double) - Method in class stanford.androidlib.SimpleActivity
Sets a preference with the given name and value into the app's global preferences.
setPreference(String, int) - Method in class stanford.androidlib.SimpleActivity
Sets a preference with the given name and value into the app's global preferences.
setPreference(String, long) - Method in class stanford.androidlib.SimpleActivity
Sets a preference with the given name and value into the app's global preferences.
setPreference(String, String) - Method in class stanford.androidlib.SimpleActivity
Sets a preference with the given name and value into the app's global preferences.
setPriority(int) - Method in class stanford.androidlib.SimpleNotification
 
setProgress(int, int, boolean) - Method in class stanford.androidlib.SimpleNotification
 
setProgress(int) - Method in class stanford.androidlib.SimpleProgressDialog
Sets progress to the given value.
setPublicVersion(Notification) - Method in class stanford.androidlib.SimpleNotification
 
setRightX(float) - Method in class stanford.androidlib.graphics.GObject
Sets the object's rightmost x-coordinate to be the given value.
setSharedPreference(String, String, boolean) - Method in class stanford.androidlib.SimpleActivity
Sets a shared preference with the given name and value into the given shared preference filename.
setSharedPreference(String, String, double) - Method in class stanford.androidlib.SimpleActivity
Sets a shared preference with the given name and value into the given shared preference filename.
setSharedPreference(String, String, int) - Method in class stanford.androidlib.SimpleActivity
Sets a shared preference with the given name and value into the given shared preference filename.
setSharedPreference(String, String, long) - Method in class stanford.androidlib.SimpleActivity
Sets a shared preference with the given name and value into the given shared preference filename.
setSharedPreference(String, String, String) - Method in class stanford.androidlib.SimpleActivity
Sets a shared preference with the given name and value into the given shared preference filename.
setShowWhen(boolean) - Method in class stanford.androidlib.SimpleNotification
 
setSize(float, float) - Method in class stanford.androidlib.graphics.GDimension
Sets the components of the dimension object from the specified parameters.
setSize(GDimension) - Method in class stanford.androidlib.graphics.GDimension
Sets the width and height of one GDimension object equal to that of another.
setSize(float, float) - Method in class stanford.androidlib.graphics.GImage
Changes the size of this object to the specified width and height.
setSize(GDimension) - Method in class stanford.androidlib.graphics.GImage
Changes the size of this object to the specified GDimension.
setSize(float, float) - Method in class stanford.androidlib.graphics.GOval
Changes the size of this object to the specified width and height.
setSize(GDimension) - Method in class stanford.androidlib.graphics.GOval
Changes the size of this object to the specified GDimension.
setSize(float, float) - Method in class stanford.androidlib.graphics.GRect
Changes the size of this object to the specified width and height.
setSize(GDimension) - Method in class stanford.androidlib.graphics.GRect
Changes the size of this object to the specified GDimension.
setSize(float, float) - Method in class stanford.androidlib.graphics.GRectangle
Sets the size of the GRectangle to the specified values.
setSize(GDimension) - Method in class stanford.androidlib.graphics.GRectangle
Sets the size of the GRectangle to the specified dimension.
setSize(float, float) - Method in interface stanford.androidlib.graphics.GResizable
Changes the size of this object to the specified width and height.
setSize(GDimension) - Method in interface stanford.androidlib.graphics.GResizable
Changes the size of this object as specified by the GDimension object.
setSize(float, float) - Method in class stanford.androidlib.graphics.GSprite
Sets this sprite to use the given size.
setSmallIcon(int) - Method in class stanford.androidlib.SimpleNotification
 
setSmallIcon(int, int) - Method in class stanford.androidlib.SimpleNotification
 
setSortKey(String) - Method in class stanford.androidlib.SimpleNotification
 
setSound(Uri) - Method in class stanford.androidlib.SimpleNotification
 
setStartPoint(float, float) - Method in class stanford.androidlib.graphics.GLine
Sets the initial point in the line to (xy), leaving the end point unchanged.
setStyle(NotificationCompat.Style) - Method in class stanford.androidlib.SimpleNotification
 
setSubText(int) - Method in class stanford.androidlib.SimpleNotification
 
setSubText(CharSequence) - Method in class stanford.androidlib.SimpleNotification
 
setText(int) - Method in class stanford.androidlib.graphics.GLabel
Changes the string stored within the GLabel object, so that a new text string appears on the display.
setText(String) - Method in class stanford.androidlib.graphics.GLabel
Changes the string stored within the GLabel object, so that a new text string appears on the display.
setText(String) - Method in class stanford.androidlib.SimpleNotification
 
setText(int) - Method in class stanford.androidlib.SimpleNotification
 
setTicker(int) - Method in class stanford.androidlib.SimpleNotification
 
setTicker(CharSequence) - Method in class stanford.androidlib.SimpleNotification
 
setTitle(String) - Method in class stanford.androidlib.SimpleNotification
 
setTitle(int) - Method in class stanford.androidlib.SimpleNotification
 
setTraceLifecycle(boolean) - Method in class stanford.androidlib.SimpleActivity
Sets whether or not to print a log message every time an activity lifecycle method such as onPause or onStart is called.
setTraceLifecycle(boolean) - Method in class stanford.androidlib.SimpleFragment
Sets whether or not to print a log message every time an activity lifecycle method such as onPause or onStart is called.
setUsesChronometer(boolean) - Method in class stanford.androidlib.SimpleNotification
 
setVelocity(float, float) - Method in class stanford.androidlib.graphics.GSprite
Sets this sprite to move with the given velocity.
setVelocityThreshold(float) - Method in class stanford.androidlib.OnSwipeListener
Sets the rate of finger speed before the listener considers the user to have swiped.
setVelocityX(float) - Method in class stanford.androidlib.graphics.GSprite
Sets this sprite to move with the given velocity in the x direction.
setVelocityY(float) - Method in class stanford.androidlib.graphics.GSprite
Sets this sprite to move with the given velocity in the y direction.
setVibrate(long[]) - Method in class stanford.androidlib.SimpleNotification
 
setVisibility(int) - Method in class stanford.androidlib.SimpleNotification
 
setVisible(boolean) - Method in class stanford.androidlib.graphics.GObject
Sets whether this object is visible.
setVisible(boolean) - Method in class stanford.androidlib.graphics.GSprite
Sets whether this sprite is visible.
setWakeLock(boolean) - Method in class stanford.androidlib.SimpleActivity
Sets wake lock to be enabled (true) or disabled (false).
setWhen(long) - Method in class stanford.androidlib.SimpleNotification
 
setX(float) - Method in class stanford.androidlib.graphics.GObject
Sets the x-location of this object.
setY(float) - Method in class stanford.androidlib.graphics.GObject
Sets the y-location of this object.
showAlertDialog(String) - Method in class stanford.androidlib.SimpleActivity
Shows an alert dialog to display a message to the user.
showAlertDialog(int) - Method in class stanford.androidlib.SimpleActivity
Shows an alert dialog to display a message to the user.
showCheckboxInputDialog(String...) - Method in class stanford.androidlib.SimpleActivity
Shows a multiple-checkbox dialog to prompt the user to check/uncheck any subset of a group of multiple checkbox input items.
showCheckboxInputDialog(boolean[], String...) - Method in class stanford.androidlib.SimpleActivity
Shows a multiple-checkbox dialog to prompt the user to check/uncheck any subset of a group of multiple checkbox input items.
showCheckboxInputDialog(int) - Method in class stanford.androidlib.SimpleActivity
Shows a multiple-checkbox dialog to prompt the user to check/uncheck any subset of a group of multiple checkbox input items.
showCheckboxInputDialog(boolean[], int) - Method in class stanford.androidlib.SimpleActivity
Shows a multiple-checkbox dialog to prompt the user to check/uncheck any subset of a group of multiple checkbox input items.
showConfirmDialog(String) - Method in class stanford.androidlib.SimpleActivity
Shows an confirm dialog to ask a yes/no question to the user.
showConfirmDialog(String, String, String) - Method in class stanford.androidlib.SimpleActivity
Shows an confirm dialog to ask a yes/no question to the user.
showConfirmDialog(int) - Method in class stanford.androidlib.SimpleActivity
Shows an confirm dialog to ask a yes/no question to the user.
showConfirmDialog(int, int, int) - Method in class stanford.androidlib.SimpleActivity
Shows an confirm dialog to ask a yes/no question to the user.
showDateInputDialog() - Method in class stanford.androidlib.SimpleActivity
Shows a date picker dialog to prompt the user to select a date.
showDateInputDialog(String) - Method in class stanford.androidlib.SimpleActivity
Shows a date picker dialog to prompt the user to select a date.
showDateInputDialog(int, int, int) - Method in class stanford.androidlib.SimpleActivity
Shows a date picker dialog to prompt the user to select a date.
showDateInputDialog(String, int, int, int) - Method in class stanford.androidlib.SimpleActivity
Shows a date picker dialog to prompt the user to select a date.
showDialogFragment(DialogFragment) - Method in class stanford.androidlib.SimpleActivity
Pops up the given dialog fragment as a dialog on top of this activity.
showFragment(Fragment) - Method in class stanford.androidlib.SimpleActivity
Shows the given fragment.
showFragment(int) - Method in class stanford.androidlib.SimpleActivity
Shows the given fragment.
showInputDialog(String) - Method in class stanford.androidlib.SimpleActivity
Shows an input dialog to prompt the user for a single text input string.
showInputDialog(String, String) - Method in class stanford.androidlib.SimpleActivity
Shows an input dialog to prompt the user for a single text input string.
showInputDialog(int) - Method in class stanford.androidlib.SimpleActivity
Shows an input dialog to prompt the user for a single text input string.
showInputDialog(int, int) - Method in class stanford.androidlib.SimpleActivity
Shows an input dialog to prompt the user for a single text input string.
showListInputDialog(String...) - Method in class stanford.androidlib.SimpleActivity
Shows a list input dialog to allow the user to tap one of several choices.
showListInputDialog(int) - Method in class stanford.androidlib.SimpleActivity
Shows a list input dialog to allow the user to tap one of several choices.
showMultiInputDialog(String...) - Method in class stanford.androidlib.SimpleActivity
Shows a multiple-input dialog to prompt the user for multiple text input strings.
showMultiInputDialog(int) - Method in class stanford.androidlib.SimpleActivity
Shows a multiple-input dialog to prompt the user for multiple text input strings.
showMultiInputDialog(int, int) - Method in class stanford.androidlib.SimpleActivity
Shows a multiple-input dialog to prompt the user for multiple text input strings.
showMultiInputDialogWithMessage(String, String...) - Method in class stanford.androidlib.SimpleActivity
Shows a multiple-input dialog to prompt the user for multiple text input strings.
showProgressDialog() - Method in class stanford.androidlib.SimpleActivity
Shows a progress dialog with a progress bar.
showProgressDialog(String) - Method in class stanford.androidlib.SimpleActivity
Shows a progress dialog with a progress bar.
showProgressDialog(String, int) - Method in class stanford.androidlib.SimpleActivity
Shows a progress dialog with a progress bar.
showRadioInputDialog(String...) - Method in class stanford.androidlib.SimpleActivity
Shows a radio button dialog to prompt the user to check exactly one of a group of multiple radio button input items.
showRadioInputDialog(int, String...) - Method in class stanford.androidlib.SimpleActivity
Shows a radio button dialog to prompt the user to check exactly one of a group of multiple radio button input items.
showRadioInputDialog(int) - Method in class stanford.androidlib.SimpleActivity
Shows a radio button dialog to prompt the user to check exactly one of a group of multiple radio button input items.
showRadioInputDialog(int, int) - Method in class stanford.androidlib.SimpleActivity
Shows a radio button dialog to prompt the user to check exactly one of a group of multiple radio button input items.
showTimeInputDialog() - Method in class stanford.androidlib.SimpleActivity
Shows a time picker dialog to prompt the user to select a time of day.
showTimeInputDialog(String) - Method in class stanford.androidlib.SimpleActivity
Shows a time picker dialog to prompt the user to select a time of day.
showTimeInputDialog(int, int) - Method in class stanford.androidlib.SimpleActivity
Shows a time picker dialog to prompt the user to select a time of day.
showTimeInputDialog(String, int, int) - Method in class stanford.androidlib.SimpleActivity
Shows a time picker dialog to prompt the user to select a time of day.
SimpleActivity - Class in stanford.androidlib
A SimpleActivity is meant as a drop-in replacement for Android's Activity class.
SimpleActivity() - Constructor for class stanford.androidlib.SimpleActivity
 
SimpleActivity.ToastLength - Annotation Type in stanford.androidlib
 
SimpleCanvas - Class in stanford.androidlib
A SimpleCanvas is meant as a 2D drawing surface for graphics in games and animations.
SimpleCanvas(Context, AttributeSet) - Constructor for class stanford.androidlib.SimpleCanvas
Required constructor; your SimpleCanvas subclass must implement a constructor with exactly the same parameters.
SimpleCursor - Class in stanford.androidlib.data
A simplified version of the Cursor class.
SimpleCursor(Cursor) - Constructor for class stanford.androidlib.data.SimpleCursor
Constructs a new simple cursor to wrap the given cursor.
SimpleDatabase - Class in stanford.androidlib.data
This class provides methods to help make it easier to query local SQLite databases.
SimpleFragment - Class in stanford.androidlib
A SimpleFragment is meant as a drop-in replacement for Android's Fragment or DialogFragment classes.
SimpleFragment() - Constructor for class stanford.androidlib.SimpleFragment
 
SimpleIntentService - Class in stanford.androidlib
A SimpleService is meant as a drop-in replacement for Android's IntentService class.
SimpleIntentService() - Constructor for class stanford.androidlib.SimpleIntentService
Creates an IntentService.
SimpleIntentService(String) - Constructor for class stanford.androidlib.SimpleIntentService
Creates an IntentService.
SimpleLocalization - Class in stanford.androidlib
Utility class to help with localization of common values.
SimpleNotification - Class in stanford.androidlib
This class is a drop-in replacement for Notification.Builder that adds a few methods for convenience.
SimpleProgressDialog - Class in stanford.androidlib
A version of ProgressDialog that auto-closes when it reaches 100% progress.
SimpleProgressDialog(Context) - Constructor for class stanford.androidlib.SimpleProgressDialog
Constructs a new dialog.
SimpleRow - Class in stanford.androidlib.data
A SimpleRow object represents one row of a SQLite database query result.
SimpleRow(Cursor) - Constructor for class stanford.androidlib.data.SimpleRow
Constructs a simple row from the current position of the given cursor.
SimpleService - Class in stanford.androidlib
A SimpleService is meant as a drop-in replacement for Android's Service class.
SimpleService() - Constructor for class stanford.androidlib.SimpleService
 
sinDegrees(float) - Static method in class stanford.androidlib.graphics.GMath
Returns the trigonometric sine of its argument where angle is expressed in degrees.
skipPast(String) - Method in class stanford.androidlib.xml.XMLTokener
Skip characters until past the requested string.
skipPast2(String) - Method in class stanford.androidlib.xml.XMLTokener
Skip characters until past the requested string.
SLASH - Static variable in class stanford.androidlib.xml.XML
The Character '/'.
soundGetPosition(int) - Method in class stanford.androidlib.SimpleActivity
Returns the time position in milliseconds for the media clip with the given ID if it is playing.
soundIsLooping(int) - Method in class stanford.androidlib.SimpleActivity
Returns whether the media clip with the given ID is currently playing in 'loop' mode.
soundIsPlaying(int) - Method in class stanford.androidlib.SimpleActivity
Returns whether the media clip with the given ID is currently playing or looping.
soundLoop(int) - Method in class stanford.androidlib.SimpleActivity
Plays the media clip with the given ID in 'looping' mode.
soundPause(int) - Method in class stanford.androidlib.SimpleActivity
Pauses the media clip with the given ID if it is playing.
soundPlay(int) - Method in class stanford.androidlib.SimpleActivity
Plays the media clip with the given ID.
soundSetPosition(int, int) - Method in class stanford.androidlib.SimpleActivity
Sets the time position in milliseconds for the media clip with the given ID.
soundStop(int) - Method in class stanford.androidlib.SimpleActivity
Stops the media clip with the given ID if it was playing.
speak(String) - Method in class stanford.androidlib.SimpleActivity
Says the given text aloud using Text-to-speech.
speak(String, boolean) - Method in class stanford.androidlib.SimpleActivity
Says the given text aloud using Text-to-speech.
speechToText(String) - Method in class stanford.androidlib.SimpleActivity
Asks the device to start recording speech and converting it to text.
speechToTextSupported() - Method in class stanford.androidlib.SimpleActivity
Returns true if the current device supports speech-to-text recognition.
stanford.androidlib - package stanford.androidlib
 
stanford.androidlib.data - package stanford.androidlib.data
 
stanford.androidlib.graphics - package stanford.androidlib.graphics
 
stanford.androidlib.json - package stanford.androidlib.json
 
stanford.androidlib.util - package stanford.androidlib.util
 
stanford.androidlib.xml - package stanford.androidlib.xml
 
start() - Method in class stanford.androidlib.AnimationLoop
Starts the thread running so that it will repaint the view repeatedly.
startActivity(Class<? extends Activity>, Object...) - Method in class stanford.androidlib.SimpleActivity
Starts the given activity and passes it the given 'extra' parameters.
startActivityForResult(Class<? extends Activity>, int, Object...) - Method in class stanford.androidlib.SimpleActivity
Starts the given activity with the given request code and passes it the given 'extra' parameters.
startService(Class<? extends Service>, Object...) - Method in class stanford.androidlib.SimpleActivity
Starts the given service and passes it the given 'extra' parameters.
startServiceAction(Class<? extends Service>, String, Object...) - Method in class stanford.androidlib.SimpleActivity
Starts the given service and passes it the given 'extra' parameters.
stop() - Method in class stanford.androidlib.AnimationLoop
Stops the thread so that it will not repaint the view any more.
stop() - Method in class stanford.androidlib.graphics.GSprite
Halts the object, setting its velocity and acceleration to 0.
stringToValue(String) - Static method in class stanford.androidlib.xml.XML
Try to convert a string into a number, boolean, or null.

T

takePhoto() - Method in class stanford.androidlib.SimpleActivity
Instructs the device to take a photo without saving it to a file.
takePhoto(String) - Method in class stanford.androidlib.SimpleActivity
Instructs the device to take a photo and save it to a file.
tanDegrees(float) - Static method in class stanford.androidlib.graphics.GMath
Returns the trigonometric tangent of its argument where angle is expressed in degrees.
textMessage(String) - Method in class stanford.androidlib.SimpleActivity
Launches the system default text messaging application to send a message to the given telephone number.
textMessage(String, String) - Method in class stanford.androidlib.SimpleActivity
Launches the system default text messaging application to send a message to the given telephone number with the given message body text.
textToSpeechSupported() - Method in class stanford.androidlib.SimpleActivity
Returns true if the current device supports text-to-speech capability.
toast(Object) - Method in class stanford.androidlib.SimpleActivity
Pops up a short Toast notification to display the given text.
toast(Object, int) - Method in class stanford.androidlib.SimpleActivity
Pops up a Toast notification of the given time length to display the given text.
toast(String) - Method in class stanford.androidlib.SimpleActivity
Pops up a Toast notification of the given time length to display the given text.
toast(String, int) - Method in class stanford.androidlib.SimpleActivity
Pops up a Toast notification of the given time length to display the given text.
toDegrees(float) - Static method in class stanford.androidlib.graphics.GMath
Converts an angle from radians to degrees.
toJSONObject(String) - Static method in class stanford.androidlib.xml.XML
Convert a well-formed (but not necessarily valid) XML string into a JSONObject.
toRadians(float) - Static method in class stanford.androidlib.graphics.GMath
Converts an angle from degrees to radians.
toString() - Method in class stanford.androidlib.data.SimpleRow
Returns a string representation of this row for debugging.
toString() - Method in class stanford.androidlib.graphics.GDimension
Converts this GDimension to its string representation.
toString() - Method in class stanford.androidlib.graphics.GObject
Returns a string representation of this object, including its class name, x/y coordinates, width, and height.
toString() - Method in class stanford.androidlib.graphics.GPoint
Converts this GPoint to its string representation.
toString() - Method in class stanford.androidlib.graphics.GRectangle
Converts this GRectangle to its string representation.
toString() - Method in class stanford.androidlib.graphics.GSprite
Returns a string representation of this sprite for debugging, including its GObject if any, and its collision rectangle.
toString(Object) - Static method in class stanford.androidlib.xml.XML
Convert a JSONObject into a well-formed, element-normal XML string.
toString(Object, String) - Static method in class stanford.androidlib.xml.XML
Convert a JSONObject into a well-formed, element-normal XML string.
translate(float, float) - Method in class stanford.androidlib.graphics.GObject
Moves the object on the screen using the displacements dx and dy.
translate(float, float) - Method in class stanford.androidlib.graphics.GPoint
Adjusts the coordinates of a point by the specified dx and dy offsets.
translate(float, float) - Method in class stanford.androidlib.graphics.GRectangle
Adjusts the coordinates of a rectangle by the specified dx and dy offsets.

U

union(GRectangle) - Method in class stanford.androidlib.graphics.GRectangle
Returns the smallest rectangle that contains both r1 and r2.
unregisterContentObserver(ContentObserver) - Method in class stanford.androidlib.data.SimpleCursor
 
unregisterDataSetObserver(DataSetObserver) - Method in class stanford.androidlib.data.SimpleCursor
 
update() - Method in class stanford.androidlib.graphics.GSprite
Called by SimpleCanvas every time the animation ticks.

V

Version - Class in stanford.androidlib
A convenience class that prints the library's version when run.
Version() - Constructor for class stanford.androidlib.Version
 

W

wakeLockIsEnabled() - Method in class stanford.androidlib.SimpleActivity
Returns true if the wake lock is currently enabled.
webBrowser(String) - Method in class stanford.androidlib.SimpleActivity
Launches the system default web browser to display the web page at the given URL.
WHITE - Static variable in class stanford.androidlib.graphics.GColor
A color constant representing the color white.
wifiConnectionExists() - Method in class stanford.androidlib.SimpleActivity
Returns true if the device currently has a working wifi connection, as reported by the system connectivity service.
with(SimpleActivity) - Static method in class stanford.androidlib.data.SimpleDatabase
Returns a singleton SimpleDatabase instance bound to the given context.
with(Context) - Static method in class stanford.androidlib.SimpleLocalization
 
with(Context) - Static method in class stanford.androidlib.SimpleNotification
 
with(Context) - Static method in class stanford.androidlib.util.IntentUtils
 
writeFileLines(File, List<String>) - Method in class stanford.androidlib.SimpleActivity
Writes the given list of lines into the given file, replacing any previous data.
writeFileLines(File, String, List<String>) - Method in class stanford.androidlib.SimpleActivity
Writes the given list of lines into the given file, replacing any previous data.
writeFileLines(String, List<String>) - Method in class stanford.androidlib.SimpleActivity
Writes the given list of lines into the given file, replacing any previous data.
writeFileLines(File, List<String>, boolean) - Method in class stanford.androidlib.SimpleActivity
Writes the given text into the given file.
writeFileLines(File, String, List<String>, boolean) - Method in class stanford.androidlib.SimpleActivity
Writes the given text into the given file.
writeFileLines(String, List<String>, boolean) - Method in class stanford.androidlib.SimpleActivity
Writes the given text into the given file.
writeFileText(File, String) - Method in class stanford.androidlib.SimpleActivity
Writes the given text into the given file, replacing any previous data.
writeFileText(File, String, String) - Method in class stanford.androidlib.SimpleActivity
Writes the given text into the given file, replacing any previous data.
writeFileText(String, String) - Method in class stanford.androidlib.SimpleActivity
Writes the given text into the given file, replacing any previous data.
writeFileText(File, String, boolean) - Method in class stanford.androidlib.SimpleActivity
Writes the given text into the given file.
writeFileText(File, String, String, boolean) - Method in class stanford.androidlib.SimpleActivity
Writes the given text into the given file.
writeFileText(String, String, boolean) - Method in class stanford.androidlib.SimpleActivity
Writes the given text into the given file.

X

XML - Class in stanford.androidlib.xml
This provides static methods to convert an XML text into a JSONObject, and to covert a JSONObject into an XML text.
XML() - Constructor for class stanford.androidlib.xml.XML
 
XMLTokener - Class in stanford.androidlib.xml
The XMLTokener extends the JSONTokener to provide additional methods for the parsing of XML texts.
XMLTokener(String) - Constructor for class stanford.androidlib.xml.XMLTokener
Construct an XMLTokener from a string.

Y

YELLOW - Static variable in class stanford.androidlib.graphics.GColor
A color constant representing the color yellow.
A B C D E F G H I J L M N O P Q R S T U V W X Y 
Skip navigation links