text stringlengths 3 1.18M |
|---|
package de.tum.in.far.threedui.project.objects;
import java.util.Vector;
import javax.media.j3d.BranchGroup;
import javax.media.j3d.OrientedShape3D;
import javax.media.j3d.QuadArray;
import javax.media.j3d.Transform3D;
import javax.vecmath.Point3f;
import javax.vecmath.Vector3f;
import de.tum.in.far.three... |
package de.tum.in.far.threedui.project.objects;
import javax.media.j3d.Appearance;
import javax.media.j3d.Material;
import javax.media.j3d.TransparencyAttributes;
import javax.vecmath.Color3f;
public class SelectionAppearance extends Appearance {
public SelectionAppearance() {
// Create the blue appeara... |
package de.tum.in.far.threedui.project.objects;
import java.util.LinkedList;
import javax.media.j3d.Appearance;
import javax.media.j3d.BranchGroup;
import javax.media.j3d.GeometryArray;
import javax.media.j3d.Node;
import javax.media.j3d.Shape3D;
import javax.media.j3d.Transform3D;
import javax.media.j3d.Tr... |
package de.tum.in.far.threedui.project.objects;
import javax.media.j3d.Appearance;
import javax.media.j3d.BranchGroup;
import javax.media.j3d.Transform3D;
import javax.media.j3d.TransformGroup;
import javax.vecmath.Vector3f;
import com.sun.j3d.utils.geometry.Cone;
import com.sun.j3d.utils.geometry.Cylinder;
... |
package de.tum.in.far.threedui.project.objects;
import javax.media.j3d.Appearance;
import javax.media.j3d.BranchGroup;
import javax.media.j3d.Material;
import javax.media.j3d.Transform3D;
import javax.media.j3d.TransformGroup;
import javax.vecmath.AxisAngle4f;
import javax.vecmath.Color3f;
import de.tum.in.... |
package de.tum.in.far.threedui.project.objects;
import javax.media.j3d.BranchGroup;
import javax.media.j3d.Transform3D;
import javax.media.j3d.TransformGroup;
import javax.vecmath.Point3f;
import javax.vecmath.Vector3f;
import de.tum.in.far.threedui.general.TransformableObject;
import de.tum.in.far.threedui.... |
package de.tum.in.far.threedui.project.core;
import javax.media.j3d.Transform3D;
import javax.vecmath.Vector3f;
import de.tum.in.far.threedui.general.TransformableObject;
import de.tum.in.far.threedui.project.core.ModelLoader.ModelFormat;
import de.tum.in.far.threedui.project.objects.CoordSysObject;
/**
*... |
package de.tum.in.far.threedui.project.core;
import javax.media.j3d.Transform3D;
import javax.media.j3d.TransformGroup;
import javax.vecmath.Quat4d;
import javax.vecmath.Vector3d;
import ubitrack.SimplePose;
import ubitrack.SimplePoseReceiver;
import de.tum.in.far.threedui.general.TransformableObject;
pub... |
package de.tum.in.far.threedui.project.core;
import java.util.LinkedList;
import de.tum.in.far.threedui.general.BackgroundObject;
import de.tum.in.far.threedui.general.BinaryEnv;
import de.tum.in.far.threedui.general.ImageReceiver;
import de.tum.in.far.threedui.general.PoseReceiver;
import de.tum.in.far.three... |
package de.tum.in.far.threedui.project.core;
import javax.media.j3d.Appearance;
import javax.media.j3d.TransparencyAttributes;
import de.tum.in.far.threedui.general.BlueAppearance;
import de.tum.in.far.threedui.general.RedAppearance;
import de.tum.in.far.threedui.general.TransformableObject;
import de.tum.in.... |
package de.tum.in.far.threedui.project.core;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.HashMap;
import javax.media.j3d.BranchGroup;
import org.jdesktop.j3d.loaders.vrml97.VrmlLoader;
import com.sun.j3d.loaders.IncorrectFormatException;
import com.sun.j3d.loaders.ParsingE... |
package de.tum.in.far.threedui.project;
import javax.media.j3d.Appearance;
import javax.media.j3d.Material;
import javax.vecmath.Color3f;
public class EnemyAppearance extends Appearance {
private Material mat;
private Color3f origColor;
public EnemyAppearance(Color3f color) {
this.origColor = colo... |
package de.tum.in.far.threedui.project.control;
import de.tum.in.far.threedui.general.TransformableObject;
public abstract class Indicator extends TransformableObject {
Motion motion;
public abstract void forward();
public abstract void backward();
public abstract void left();
public abstract void ri... |
package de.tum.in.far.threedui.project.control;
import javax.media.j3d.Transform3D;
import javax.media.j3d.TransformGroup;
import javax.vecmath.Quat4d;
public class GeneralOperationsController {
Transform3D currentT = new Transform3D();
public double[] getCurrentSignal(TransformGroup transformGroup) {... |
package de.tum.in.far.threedui.project.control;
public class LogicalSignal {
private Motion m ;
private AngleTuple angle;
public LogicalSignal(Motion m, AngleTuple angleTuple) {
super();
this.m = m;
this.angle = angleTuple;
}
public Motion getM() {
return m;
}
public void setM(Mot... |
package de.tum.in.far.threedui.project.control;
import javax.media.j3d.Switch;
import javax.media.j3d.Transform3D;
import javax.media.j3d.TransformGroup;
import javax.vecmath.Vector3d;
import org.freehep.j3d.TorusSegment;
import com.sun.j3d.utils.geometry.Cone;
import com.sun.j3d.utils.geometry.Cylinder;
... |
package de.tum.in.far.threedui.project.control;
public class AngleTuple {
private double a;
private double b;
public AngleTuple(double a, double b) {
super();
this.a = a;
this.b = b;
}
public double getA() {
return a;
}
public void setA(double a) {
this.a = a;
}
public double getB... |
package de.tum.in.far.threedui.project.control;
import javax.media.j3d.Transform3D;
import javax.vecmath.Vector3f;
import de.tum.in.far.threedui.general.ModelObject;
import de.tum.in.far.threedui.general.TransformableObject;
public class MovementWrapperImpl extends TransformableObject implements MovementWrap... |
package de.tum.in.far.threedui.project.control;
public class MotionSwitch {
public LogicalSignal switchMotionToMax(double[] angles, double defaultV){
Motion m = null;
double max = defaultV;
int n = 3;
for (int i = 0; i < angles.length; i++) {
if(Math.abs(angles[i]) > Math.abs(max)){
max =... |
package de.tum.in.far.threedui.project.control;
public interface Switchable {
public void moveForward();
public void moveBack();
}
|
package de.tum.in.far.threedui.project.control;
import de.tum.in.far.threedui.general.TransformableObject;
public abstract class Button extends TransformableObject {
enum State {ON, OFF};
protected State state;
public abstract Switchable getMovingObj() ;
public abstract void setMovingObj(Switch... |
package de.tum.in.far.threedui.project.control;
import javax.media.j3d.Transform3D;
import javax.media.j3d.TransformGroup;
import javax.vecmath.Vector3d;
import com.sun.j3d.utils.geometry.Box;
import de.tum.in.far.threedui.general.TransformableObject;
public class CubeObject extends TransformableObject ... |
package de.tum.in.far.threedui.project.control;
import javax.media.j3d.Transform3D;
import javax.media.j3d.TransformGroup;
import javax.vecmath.Vector3f;
import de.tum.in.far.threedui.general.TransformableObject;
import de.tum.in.far.threedui.project.core.NotifyPoseReceiver;
import de.tum.in.far.threedui.proj... |
package de.tum.in.far.threedui.project.control;
public enum Motion {
Forward {
@Override
public boolean checkSignal(double a, double b) {
if(a==0 && b > 0)
return true;
return false;
}
@Override
public void switchIndicator(Indicator is) {
is.forward();
}
@Overrid... |
package de.tum.in.far.threedui.project.control;
import javax.media.j3d.Appearance;
import javax.media.j3d.Switch;
import javax.media.j3d.Transform3D;
import javax.media.j3d.TransformGroup;
import javax.vecmath.Vector3d;
import com.sun.j3d.utils.geometry.Cylinder;
public class CylinderSwitch extends Butto... |
package de.tum.in.far.threedui.project.control;
public interface Control {
public void tiltForward(float angle);
public void tiltBackward(float angle);
public void tiltRight(float angle);
public void tiltLeft(float angle);
public void registerRevolver(ModelRevolver revolver);
public void updateCurre... |
package de.tum.in.far.threedui.project.control;
import java.util.ArrayList;
import java.util.List;
import javax.media.j3d.Transform3D;
import javax.media.j3d.TransformGroup;
import de.tum.in.far.threedui.project.core.NotifyPoseReceiver;
public class ControlImpl implements Control {
private static fi... |
package de.tum.in.far.threedui.project.control;
import javax.media.j3d.Node;
import javax.media.j3d.Switch;
import javax.media.j3d.Transform3D;
import javax.media.j3d.TransformGroup;
import javax.vecmath.Vector3d;
public class GeneralSwitch extends Button {
private Switch buttonSwitch;
private Switch... |
package de.tum.in.far.threedui.project.control;
public interface MovementWrapper {
public void moveForward(AngleTuple angle);
public void moveRightForward(AngleTuple angle);
public void moveLeftForward(AngleTuple angle);
public void moveBackward(AngleTuple angle);
public void moveRightBackward(AngleTupl... |
package de.tum.in.far.threedui.project.control;
import static java.lang.Math.*;
import javax.vecmath.Quat4d;
public class SignalProcessor {
private double[] fiV;
private double[] thetaV;
private double[] psiV;
private double fiMean;
private double thetaMean;
private double psiMean;
public Si... |
package de.tum.in.far.threedui.project.control;
import javax.media.j3d.Appearance;
public class CubeObjectParameter {
public Appearance app;
public float x;
public float y;
public float z;
public CubeObjectParameter(Appearance app, float x, float y, float z) {
this.app = app;
this.x = x;
this... |
package de.tum.in.far.threedui.project.control;
import java.io.File;
import de.tum.in.far.threedui.general.ModelObject;
import de.tum.in.far.threedui.general.ViewerUbitrack;
import de.tum.in.far.threedui.project.objects.CannonTower;
public class ModelRevolver {
private InteractiveMarker viewingWindow; ... |
package de.tum.in.far.threedui.project.control;
import javax.media.j3d.BranchGroup;
import javax.media.j3d.Transform3D;
import javax.media.j3d.TransformGroup;
import javax.vecmath.Vector3d;
import de.tum.in.far.threedui.general.GreenAppearance;
import de.tum.in.far.threedui.general.RedAppearance;
public cl... |
package com.tressatisfiability.client;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.AbsolutePanel;
public class ClientController {
private PanelEscritorio escritorio;
private Sat sat;
private ServiceAsync server;
private Informacion informacion;
public ClientController() {
serve... |
package com.tressatisfiability.client;
import com.google.gwt.user.client.ui.DecoratorPanel;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.VerticalPanel;
public class Informacion extends DecoratorPanel {
private VerticalPanel panelVertical;
private ClientController controlador;
In... |
package com.tressatisfiability.client;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.tressatisfiability.shared.Formula;
/**
* The client side stub for the RPC service.
*/
@RemoteServiceRelativePath("s")
public interface Service exten... |
package com.tressatisfiability.client;
import com.google.gwt.user.client.ui.AbsolutePanel;
public class PanelEscritorio {
private AbsolutePanel panelEscritorio;
private ClientController controlador;
public PanelEscritorio(ClientController controlador) {
super();
this.controlador = controlador;
panelEscritor... |
package com.tressatisfiability.client;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;
/**
* Entry point classes define <code>onModuleLoad()</code>.
*/
public class _satisfiability implements EntryPoint {
private ClientController cliente;
public void onModuleLoad() {... |
package com.tressatisfiability.client;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.KeyUpEvent;
import com.google.gwt.event.dom.client.KeyUpHandler;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.g... |
package com.tressatisfiability.client;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.tressatisfiability.shared.Formula;
public interface ServiceAsync {
void solve3Sat(String q, AsyncCallback<Formula> callback);
void retry(AsyncCallback<Formula> callback);
}
|
package com.tressatisfiability.shared;
import java.util.Date;
public class Random {
public static boolean randomBoolean() {
java.util.Random r = new java.util.Random();
r.setSeed(new Date().getTime());
return r.nextBoolean();
}
public static int randomInt(int n) {
java.util.Random r = new java.util.Rando... |
package com.tressatisfiability.shared;
import java.io.Serializable;
import java.util.Stack;
import com.google.gwt.user.client.ui.HTML;
public class Formula implements Serializable {
private static final long serialVersionUID = 9115878519648992494L;
private Stack<Clausula> clausulas;
private boolean satisfied;
p... |
package com.tressatisfiability.shared;
import java.io.Serializable;
public class Clausula implements Serializable {
private static final long serialVersionUID = -1618307429251334076L;
private int v1;
private int v2;
private int v3;
private boolean b1;
private boolean b2;
private boolean b3;
private boolean ... |
package com.tressatisfiability.server;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.tressatisfiability.client.Service;
import com.tressatisfiability.shared.Formula;
@SuppressWarnings("serial")
public class ServiceImpl extends RemoteServiceServlet implements Service {
private Formula formul... |
package is.eclipse.autobuilder;
import org.eclipse.core.resources.IMarker;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IProjectDescription;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IWorkspace;
import org.eclipse.core.resources.IWorkspaceDes... |
package is.eclipse.autobuilder;
import org.eclipse.core.runtime.Plugin;
import org.osgi.framework.BundleContext;
/**
* The activator class controls the plug-in life cycle
*/
public class AutobuilderPlugin extends Plugin {
// The plug-in ID
public static final String PLUGIN_ID = "is.eclipse.autobuilder... |
package com.rerijaapps.tresgratis.sound;
import android.content.Context;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.media.MediaPlayer.OnCompletionListener;
public class SoundPlayer
{
public static void playSound( Context context, int resSound )
{
MediaPlayer ... |
package com.rerijaapps.tresgratis;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import com.androidquery.AQuery;
import com.rerijaapps.tre... |
package com.rerijaapps.tresgratis.app;
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import android.content.Context;
import android.content.Intent;
import android.content.res.AssetManager;
import android.net.Uri;
import android.os.Environment;
public c... |
package com.rerijaapps.tresgratis.dialog;
import com.rerijaapps.tresgratis.R;
import com.rerijaapps.tresgratis.app.InstallApp;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
public class DialogHelper
{
... |
package com.rerijaapps.tresgratis.ui;
import android.content.Context;
import android.graphics.Typeface;
import android.util.AttributeSet;
import android.widget.TextView;
public class CustomTextView extends TextView
{
private Context mContext;
private int mStyle = 1;
private static Typeface tf_bol... |
package com.erroll.properties;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;
public class Parameters {
/**
* load properties from file "parameters.properties" into props object to be passed on during initial... |
package com.erroll.gui;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import javax.vecmath.Vector3d;
import com.erroll.camera.CameraInterface;
import com.erroll.camera.paths.FlightPath;
public class KeyboardControlListener implements KeyListener {
private static final double ORIGIN_ROTATE = 0... |
package com.erroll.gui;
import java.awt.Dimension;
import java.awt.Graphics;
import java.util.Properties;
import javax.swing.JFrame;
import com.erroll.camera.Camera;
import com.erroll.camera.paths.FlightPath;
import com.erroll.camera.paths.mengersponge.MengerSpongeTourPath;
import com.erroll.camera.paths.mengerspong... |
package com.erroll.renderer.effects;
public class SSAO {
// the size/2 of the number of pixels to sample over
private static final int KERNEL = 3;
// the maximum distance away a point can be as a multiple of the difference between depths before being cut off
private static final double CUT_OFF_DIST = 0.05d;
//... |
package com.erroll.renderer.effects;
public class ColorUtils {
/**
* Either darkens or lightens the int color rgb by the shadowStrength. 255 will make the color black and -255 will make the color white.
*
* @param rgb
* The original int color to be adjusted
* @param shadowAmount
* ... |
package com.erroll.renderer;
import javax.vecmath.Vector3d;
public class Ray {
private Vector3d start;
private Vector3d dir;
/**
* Creates a ray starting at the point start and having the direction dirParam. The ray can be described as P(t) = A + t * D where A is the starting point
* and D is the direction ve... |
package com.erroll.renderer;
import javax.vecmath.Vector3d;
import com.erroll.octree.OctreeNode;
import com.erroll.octree.scaleadaptation.Subdivider;
public class RayCast implements Runnable {
private OctreeNode startNode;
private Vector3d startBoxMin;
private double startBoxDim;
private Ray ray;
private int i... |
package com.erroll.renderer;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.awt.image.DataBufferInt;
import java.io.File;
import java.io.IOException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import javax.image... |
package com.erroll.octree.scaleadaptation;
import javax.vecmath.Vector3d;
import com.erroll.math.fractal.FractalInterface;
import com.erroll.octree.OctreeNode;
import com.erroll.renderer.effects.ColorUtils;
public class SubdivideNodeThread implements Runnable {
// The interval in depths between different bricks
p... |
package com.erroll.octree.scaleadaptation;
import java.util.Properties;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.LinkedBlockingQueue;
import javax.vecmath.Vector3d;
import com.erroll.math.fractal.Fractal... |
package com.erroll.octree.scaleadaptation;
import com.erroll.octree.OctreeNode;
public class UnifyNodeThread implements Runnable {
private OctreeNode node;
/**
* Create this thread to unify this node and delete all its children
*
* @param node
* OctreeNode to be unified
*/
public UnifyNodeT... |
package com.erroll.octree.scaleadaptation;
import java.util.LinkedHashSet;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import com.erroll.octree.OctreeNode;
public class BrickManager {
// the list of all OctreeNodes which are marked as be... |
package com.erroll.octree;
public class NeighborUtils {
/**
* @param neighborId
* The neighbor id you want to get the opposite of
* @return The opposite neighbor id, e.g. getOpposite(0) = 1
*/
public static final int getOpposite(int neighborId) {
switch (neighborId) {
case 0:
return 1;
c... |
package com.erroll.octree;
public class OctreeNodePoolManager {
// pool of octree nodes and flags for if they are in use
private OctreeNode[] nodePool;
private boolean[] inUse;
// index of the next free OctreeNode
private int nextFree;
/**
* Constructs a pool of OctreeNodes of size poolSize from which Octre... |
package com.erroll.octree;
public class OctreeNode {
private boolean empty;
private boolean leaf;
private OctreeNode[][][] children;
private OctreeNode[] neighbors;
private OctreeNode parent;
private int color;
private int depth;
// the brick this node belongs to
private OctreeNode brick;
// whether the n... |
package com.erroll.math.fractal;
public class Mandelbox implements FractalInterface {
@Override
public boolean isInFractal(double x, double y, double z, double d) {
int s = 7;
x *= s;
y *= s;
z *= s;
d *= s;
double posX = x;
double posY = y;
double posZ = z;
Double dr = 1.0;
double r = 0.0;
... |
package com.erroll.math.fractal;
public class Mandelbulb implements FractalInterface {
@Override
public boolean isInFractal(double x, double y, double z, double d) {
double posX = x;
double posY = y;
double posZ = z;
double dr = 1.0;
double r = 0.0;
for (int i = 0; i < 10; i++) {
r = Math.sqrt(x *... |
package com.erroll.math.fractal;
public class SierpinskiGasket implements FractalInterface {
@Override
public boolean isInFractal(double x, double y, double z, double d) {
final double scale = 2;
final double MI = 100;
// number of iterations and point being tested
int i;
double r = x * x + y * y + z * ... |
package com.erroll.math.fractal;
public class MengerSponge implements FractalInterface {
@Override
public boolean isInFractal(double x, double y, double z, double d) {
double r = x * x + y * y + z * z;
double scale = 3d;
double MI = 10000;
int i = 0;
for (i = 0; i < MI && r < 9d; i++) {
x = Math.abs... |
package com.erroll.math.fractal;
public interface FractalInterface {
/**
* Checks if a point in space has fractal detail within distance d from it
*
* @param x
* The x coordinate to be checked (between -1 and 1)
* @param y
* The y coordinate to be checked (between -1 and 1)
* @pa... |
package com.erroll.math;
public enum Axis {
X, Y, Z;
}
|
package com.erroll.camera;
import javax.vecmath.Vector3d;
import com.erroll.math.Axis;
public interface CameraInterface {
/**
* Initializes fields of the Camera object with the parameters passed to it
*
* @param positionParam
* The position of the camera
* @param lookpointParam
* ... |
package com.erroll.camera.paths.mengersponge;
import java.util.ArrayList;
import javax.vecmath.Vector3d;
import com.erroll.camera.CameraInterface;
import com.erroll.camera.paths.CircleSegment;
import com.erroll.camera.paths.FlightPath;
import com.erroll.camera.paths.LerpSegment;
import com.erroll.camera.paths.Segmen... |
package com.erroll.camera.paths.mengersponge;
import javax.vecmath.Vector3d;
import com.erroll.camera.CameraInterface;
import com.erroll.camera.paths.FlightPath;
public class MengerSpongeZoomPath extends FlightPath {
public MengerSpongeZoomPath(CameraInterface c) {
// set starting position and FOV of camera
c.... |
package com.erroll.camera.paths;
import java.util.List;
import javax.vecmath.Vector3d;
import com.erroll.camera.CameraInterface;
import com.erroll.metrics.Metrics;
import com.erroll.renderer.Renderer;
public abstract class FlightPath {
// whether the flight path has been started or not
private boolean started = ... |
package com.erroll.camera.paths;
import javax.vecmath.Vector3d;
import com.erroll.camera.CameraInterface;
public class LerpSegment implements SegmentInterface {
// the change in camera position per frame
private Vector3d dPos;
// the end position of the camera
private Vector3d endPos;
// the start and end lo... |
package com.erroll.camera.paths;
import javax.vecmath.Vector3d;
import com.erroll.camera.CameraInterface;
import com.erroll.math.Axis;
public class CircleSegment implements SegmentInterface {
// the change in angle and radius per unit time
private double dAngle;
private double dRadius;
// the axis to rotate ar... |
package com.erroll.camera.paths;
import com.erroll.camera.CameraInterface;
public interface SegmentInterface {
/**
* Update the CameraInterface c for time t (between 0 and maximum time for that segment)
*
* @param c
* The CameraInterface to be updated
* @param t
* The time passed
... |
package com.erroll.camera;
import javax.vecmath.AxisAngle4d;
import javax.vecmath.Matrix3d;
import javax.vecmath.Vector3d;
import com.erroll.math.Axis;
public class Camera implements CameraInterface {
// positions of the camera at the point on viewplane that it's looking at. Only 2 actual 3D coordinates that
// d... |
package com.erroll.metrics;
import java.util.HashMap;
public class Metrics {
// time this Metrics recorder was instantiated
private long startTime;
// fields for tracking frames per second
private long timeSince;
private int fpsAccumulator;
private int fps;
private int totalFrames;
// this HashMap can be u... |
/** Automatically generated file. DO NOT MODIFY */
package com.myshoutui;
public final class BuildConfig {
public final static boolean DEBUG = true;
} |
package com.myshoutui;
import java.io.InputStream;
import java.security.GeneralSecurityException;
import com.myshout.Client;
import com.myshout.android.commmon.Utils;
import com.myshout.rest.RestClient;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Typeface;
import a... |
package com.myshoutui;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Hashtable;
import java.util.List;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable... |
package com.myshoutui;
import java.util.HashMap;
import java.util.Hashtable;
import java.util.Locale;
import com.myshout.Client;
import com.myshout.rest.RestClient;
import com.myshout.rest.RestResult;
import com.myshoutui.manager.MyShoutConsumerAsynTaskInterface;
import com.myshoutui.manager.MyShoutConsumer... |
package com.myshoutui.manager;
import com.facebook.android.DialogError;
import com.facebook.android.Facebook.DialogListener;
import com.facebook.android.FacebookError;
/**
* Skeleton base class for RequestListeners, providing default error handling.
* Applications should handle these error conditions.
*/
public a... |
package com.myshoutui.manager;
import android.os.AsyncTask;
public class MyShoutConsumerAsynTaskManager extends AsyncTask{
private MyShoutConsumerAsynTaskInterface mMyShoutConsumerAsynTaskInterface=null;
public MyShoutConsumerAsynTaskManager(MyShoutConsumerAsynTaskInterface asynInterface) {
... |
package com.myshoutui.manager;
public interface MyShoutConsumerAsynTaskInterface {
public void startTask();
public void endTask(Object result);
public Object executeTask(Object... task);
}
|
package com.myshoutui.manager;
import java.io.IOException;
import java.lang.reflect.Type;
import java.math.BigInteger;
import java.net.MalformedURLException;
import java.net.URL;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.Calendar;
i... |
package com.myshoutui.manager;
import java.util.ArrayList;
import java.util.HashMap;
public class AnalyzedQuery {
private static HashMap<String, String> presentationMap = null;
private static HashMap<String, String> endearmentMap = null;
private static HashMap<String, String> verbsMap = null;
privat... |
package com.myshoutui;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.List;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.g... |
package com.myshoutui;
import java.io.InputStream;
import java.security.GeneralSecurityException;
import java.util.Hashtable;
import com.myshout.Client;
import com.myshout.Person;
import com.myshout.android.commmon.Utils;
import com.myshout.rest.RestClient;
import com.myshout.rest.RestClientException;
impo... |
package com.myshoutui;
import java.util.ArrayList;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
public class RowViewCacher {
View base;
TextView title;
TextView description;
TextView distance;
TextView price;
TextView yelpRating;... |
package com.myshoutui;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.Transformation;
/**
* Class for handling collapse and expand animations.
* @author Esben Gaarsmand
*
*/
public class ExpandCollapseAnimation extends Animation {
private View mAni... |
package com.myshoutui;
import java.text.DecimalFormat;
import java.util.ArrayList;
import com.myshout.Client;
import com.myshout.ImageFetcher;
import com.myshout.Store;
import com.myshout.android.commmon.Utils;
import android.app.Activity;
import android.content.Context;
import android.database.DataSetOb... |
package test2.com.code;
import org.eclipse.equinox.app.IApplication;
import org.eclipse.equinox.app.IApplicationContext;
import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.PlatformUI;
/**
* This class controls all aspects of the application's execution
*/
public class Ap... |
package test2.com.code;
import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.swt.SWT;
import org.eclips... |
package test2.com.code;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;
public class Perspective implements IPerspectiveFactory {
public void createInitialLayout(IPageLayout layout) {
layout.setEditorAreaVisible(false);
layout.setFixed(true);
}
}
|
package test2.com.code;
import org.eclipse.ui.application.ActionBarAdvisor;
import org.eclipse.ui.application.IActionBarConfigurer;
/**
* An action bar advisor is responsible for creating, adding, and disposing of
* the actions added to a workbench window. Each window will be populated with
* new actions.
*/
publ... |
package test2.com.code;
import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
import org.eclipse.ui.application.WorkbenchAdvisor;
import org.eclipse.ui.application.WorkbenchWindowAdvisor;
public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {
private static final String PERSPECTIVE_ID = "test2.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.