Sofia API Reference

  • Package Index
  • Class Index
  • Packages
  • sofia.app
  • sofia.content
  • sofia.data
  • sofia.graphics
  • sofia.util
  • sofia.view
  • sofia.widget

Class Index

  • A
  • C
  • D
  • E
  • F
  • G
  • I
  • J
  • L
  • M
  • O
  • P
  • R
  • S
  • T
  • V
  • Z

A

AbstractJoint<JointType extends Joint, JointDefType extends JointDef> The abstract base class for all Sofia classes representing JBox2D joints. 
ActivityStarter

Starts another screen or activity for the user and slides it into view. 

Anchor

An Anchor represents a point inside or on a bounding rectangle that is used to position a shape relative to another shape. 

AutoCompleteTextView<E> A subclass of android.widget.AutoCompleteTextView that is easier to use. 

C

Color

Represents a color, which is composed of red, green, blue, and alpha components, which are integers between 0 and 255. 

ContentViewer

Presents a full-screen viewer for content on the device. 

CoordinateSystem

Allows the user to modify the coordinate system of a ShapeView (or a ShapeScreen). 

D

DecoratingAdapter<E> An adapter that uses decoration through annotations to display elements in a list view or spinner. 
DirectionalPad An on-screen directional pad (d-pad) suitable for games, based on the cross-shaped d-pad used on classic console game systems. 
DistanceJoint A joint that forces the distance between two shapes to always remain constant, or within a certain amount of each other (like a spring-damper). 

E

ElasticInInterpolator  
ElasticInOutInterpolator  
ElasticOutInterpolator  

F

FillableShape An abstract class that represents shapes that can be filled when they are drawn, and for which the fill color can be set independently of the shape's other color (for the stroke). 
FillableShape.Animator<AnimatorType extends Animator<AnimatorType>> Provides animation support for shapes. 
FlexibleContentView

A view that takes an arbitrary Object and renders it the best way it knows how. 

G

Geometry This class contains various geometry-related static helper methods. 

I

Image Represents a single bitmapped image, such as one loaded from a file. 
InspectorScreen  

J

Joint

An interface that represents joints between shapes. 

L

LineShape

A shape that is drawn as a line between two points. 

ListScreen<E>

ListScreen is a subclass of screen that provides a built-in ListView and convenience methods for manipulating the list directly in the screen class instead of having to call getListView() for every operation. 

ListView<E> A subclass of android.widget.ListView that is easier to use. 

M

MediaChooser

Allows the user to choose a piece of media (such as an image or a video) from the media gallery on his or her device. 

MediaUtils Utility methods to make working with the built-in Android media gallery easier for students. 
MotionStep  

O

Observable A base class for classes that want to send out change notifications using the "observer" pattern. 
ObservableList<E>

An implementation of the List interface that is Observable and notifies its observers whenever the collection is changed. 

OptionsMenu

Use this annotation on a subclass of Screen to specify the menu resource that should be loaded when the user presses the Menu button. 

OvalShape A shape that is drawn as an oval. 

P

Persistent

Indicates that a field in a Screen subclass should be saved to disk when the activity is dismissed and restored the next time the activity is started. 

Persistor

Provides custom persistence support for objects of the annotated class. 

PhotoCamera

Allows the user to take a photo using the camera on his or her device. 

PointAndAnchor A PointAndAnchor encapsulates a PointF denoting a location on a shape canvas and an Anchor that indicates how a shape should be anchored to that point. 
Polygon This class represents a polygon as a list of vertices. 
PolygonShape

A shape that is drawn using an arbitrary polygon. 

Predicate<T>

Predicates are used to specify numeric (and other) criteria when filtering shapes. 

Property  
PropertyEditor  
PropertyTransformer Write a one-sentence summary of your class here. 
ProvidesSubtitle

Indicates which method should be called on an object to provide its subtitle in a ListView, Spinner, or some other widget that uses decoration to render arbitrary objects. 

ProvidesTitle

Indicates which method should be called on an object to provide its title in a ListView, Spinner, or some other widget that uses decoration to render arbitrary objects. 

R

Random This subclass of java.util.Random adds extra methods useful for testing purposes. 
RectangleShape A shape that is drawn as a rectangle. 
RepeatMode Defines how an animation repeats itself. 
RevoluteJoint A joint that forces two shapes to share a common anchor point, allowing only the relative rotation between them to change. 
RotateGestureDetector Detects transformation gestures involving more than one pointer ("multitouch") using the supplied MotionEvents. 
RotateGestureDetector.OnRotateGestureListener The listener for receiving notifications when gestures occur. 
RotateGestureDetector.SimpleOnRotateGestureListener A convenience class to extend when you only want to listen for a subset of rotation-related events. 

S

Screen The Screen class represents a single screen in an Android application. 
ScreenLayout

Use this annotation on a subclass of Screen to specify the layout resource that should be inflated when that screen is displayed. 

ScreenMethods

Lists the common methods that are provided by classes like Screen, MapScreen, and other "Screen-like" classes that cannot be in the same class hierarchy as Screen. 

Shape The base class for all types of shapes that can be drawn on a ShapeView. 
Shape.Animator<AnimatorType extends Animator<AnimatorType>> Provides animation support for shapes. 
Shape.Filter<FilterType extends Animator<FilterType>>  
ShapeField A shape field is a shape set that also provides (optional) real-time physics simulation. 
ShapeFilter<ShapeType extends Shape> A chainable filter that lets you search for shapes in a field based on a set of criteria. 
ShapeMotion Determines the physical nature of a shape and how it is simulated and how it responds to forces. 
ShapeScreen

ShapeScreen is a subclass of screen that provides a built-in ShapeView and convenience methods for manipulating shapes directly in the screen class instead of having to call getShapeView() for every operation. 

ShapeSet<ShapeType extends Shape>

Represents a collection of Shape objects held in drawing order, based on z-index. 

ShapeView Represents a view containing drawn Shape objects. 
SizeF A class used elsewhere in Sofia that holds two float coordinates representing the width and height of an object. 
Spinner<E> A subclass of android.widget.Spinner that is easier to use. 
StrokedShape An abstract class that represents shapes that include a stroke or outline when they are drawn. 
StrokedShape.Animator<AnimatorType extends Animator<AnimatorType>> Provides animation support for shapes. 

T

TextShape A shape that renders a text string on the canvas. 
TextShape.Animator<AnimatorType extends Animator<AnimatorType>> Provides animation support for shapes. 
Timer

This class provides a very simple API for calling methods either once or repeatedly after a delay. 

Timings This class provides static helper methods that provide friendlier names for timing functions (interpolators) used in animations. 

V

ViewEdges Represents one or more of the four edges of a view, used with collision detection. 

Z

ZIndexComparator A comparator for shapes that orders them by increasing z-index, or for identical z-indices, orders them by increasing insertion time (i.e., newer shapes are after older shapes).