code stringlengths 3 1.18M | language stringclasses 1
value |
|---|---|
package com.virtium.vpc.action.controller;
import java.util.ArrayList;
import java.util.Iterator;
import com.virtium.vpc.dao.DAOFactory;
import com.virtium.vpc.dao.VpcSsdramdensityDAO;
import com.virtium.vpc.hibernate.model.VpcSsdramdensity;
public class VpcSsdramdensityManager {
private static ArrayList<... | Java |
package com.virtium.vpc.action.controller;
import java.util.ArrayList;
import java.util.Iterator;
import com.virtium.vpc.dao.DAOFactory;
import com.virtium.vpc.dao.VpcModulerankDAO;
import com.virtium.vpc.hibernate.model.VpcModulerank;
public class VpcModulerankManager {
private static ArrayList<VpcModule... | Java |
package com.virtium.vpc.action.controller;
import java.util.ArrayList;
import java.util.Iterator;
import com.virtium.vpc.dao.DAOFactory;
import com.virtium.vpc.dao.VpcFormfactorDAO;
import com.virtium.vpc.hibernate.model.VpcDensity;
import com.virtium.vpc.hibernate.model.VpcFormfactor;
public class VpcForm... | Java |
/*
* Copyright (c) 2006 HutCabb Consulting Pte Ltd,
* All Rights Reserved.
* This work contains trade secrets and confidential material of
* HutCabb Consulting Pte Ltd.
*
* Warning: Any unauthorised dissemination, disclosure or use of the content
* in whole or in part without the explicit consent of HutCa... | Java |
package com.virtium.vpm.exception;
public class RecordNotFoundException extends Exception {
public RecordNotFoundException () {
super();
}
public RecordNotFoundException (String s) {
super(s);
}
}
| Java |
package com.virtium.vpm.hibernate.model;
/**
* Project entity. @author MyEclipse Persistence Tools
*/
public class Project extends AbstractProject implements java.io.Serializable {
// Constructors
/** default constructor */
public Project() {
}
/** full constructor */
public Project(Integer typeId, String ... | Java |
package com.virtium.vpm.hibernate.model;
import com.virtium.vpm.dao.hibernate.BaseHibernateDAO;
/**
* AbstractType entity provides the base persistence definition of the Type
* entity. @author MyEclipse Persistence Tools
*/
public abstract class AbstractType extends
com.virtium.vpm.dao.hibernate.BaseHibernateDA... | Java |
package com.virtium.vpm.hibernate.model;
/**
* User entity. @author MyEclipse Persistence Tools
*/
public class User extends AbstractUser implements java.io.Serializable {
// Constructors
/** default constructor */
public User() {
}
/** full constructor */
public User(String fullName, String userName, Stri... | Java |
package com.virtium.vpm.hibernate.model;
/**
* Type entity. @author MyEclipse Persistence Tools
*/
public class Type extends AbstractType implements java.io.Serializable {
// Constructors
/** default constructor */
public Type() {
}
/** full constructor */
public Type(String name) {
super(name);
}
}
| Java |
package com.virtium.vpm.hibernate.model;
import java.util.Date;
/**
* MajorTask entity. @author MyEclipse Persistence Tools
*/
public class MajorTask extends AbstractMajorTask implements
java.io.Serializable {
// Constructors
/** default constructor */
public MajorTask() {
}
/** full constructor */
publ... | Java |
package com.virtium.vpm.hibernate.model;
import com.virtium.vpm.dao.hibernate.BaseHibernateDAO;
/**
* AbstractUser entity provides the base persistence definition of the User
* entity. @author MyEclipse Persistence Tools
*/
public abstract class AbstractUser extends
com.virtium.vpm.dao.hibernate.BaseHibernateDA... | Java |
package com.virtium.vpm.hibernate.model;
import java.util.Date;
/**
* AbstractMajorTask entity provides the base persistence definition of the
* MajorTask entity. @author MyEclipse Persistence Tools
*/
public abstract class AbstractMajorTask implements java.io.Serializable {
// Fields
private Integer id;
pri... | Java |
package com.virtium.vpm.hibernate.model;
import com.virtium.vpm.dao.hibernate.BaseHibernateDAO;
/**
* AbstractProject entity provides the base persistence definition of the
* Project entity. @author MyEclipse Persistence Tools
*/
public abstract class AbstractProject extends
com.virtium.vpm.dao.hibernate.BaseHi... | Java |
package com.virtium.vpm.json;
/**
* The JSONException is thrown by the JSON.org classes when things are amiss.
* @author JSON.org
* @version 2008-09-18
*/
public class JSONException extends Exception {
private Throwable cause;
/**
* Constructs a JSONException with an explanatory message.
* @para... | Java |
package com.virtium.vpm.json;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, mer... | Java |
package com.virtium.vpm.json;
/*
Copyright (c) 2008 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, mer... | Java |
package com.virtium.vpm.json;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, mer... | Java |
package com.virtium.vpm.json;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, mer... | Java |
package com.virtium.vpm.json;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, mer... | Java |
package com.virtium.vpm.json;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, mer... | Java |
package com.virtium.vpm.json;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, mer... | Java |
package com.virtium.vpm.json;
/*
Copyright (c) 2006 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, mer... | Java |
package com.virtium.vpm.json;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, mer... | Java |
package com.virtium.vpm.json;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.Reader;
import java.io.StringReader;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software")... | Java |
package com.virtium.vpm.json;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, mer... | Java |
package com.virtium.vpm.json;
/**
* The <code>JSONString</code> interface allows a <code>toJSONString()</code>
* method so that a class can change the behavior of
* <code>JSONObject.toString()</code>, <code>JSONArray.toString()</code>,
* and <code>JSONWriter.value(</code>Object<code>)</code>. The
* <code>toJSON... | Java |
package com.virtium.vpm.json;
import java.util.Collection;
import java.util.Iterator;
import java.util.Map;
import java.io.StringWriter;
/**
* Test class. This file is not formally a member of the org.json library.
* It is just a casual test tool.
*/
public class Test {
/**
* Entry point.
* @param ... | Java |
package com.virtium.vpm.json;
import java.io.IOException;
import java.io.Writer;
/*
Copyright (c) 2006 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including wit... | Java |
package com.virtium.vpm.json;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, mer... | Java |
/*
* Copyright (c) 2006 HutCabb Consulting Pte Ltd,
* All Rights Reserved.
* This work contains trade secrets and confidential material of
* HutCabb Consulting Pte Ltd.
*
* Warning: Any unauthorised dissemination, disclosure or use of the content
* in whole or in part without the explicit co... | Java |
package com.virtium.vpm.dao;
import java.util.List;
import org.hibernate.LockMode;
import org.hibernate.Query;
import org.hibernate.criterion.Example;
import com.virtium.vpm.hibernate.model.Project;
public interface ProjectDAO extends GenericDAO{
public void save(Project transientInstance);
public v... | Java |
package com.virtium.vpm.dao;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.hibernate.cfg.Configuration;
/**
* Configures and provides access to Hibernate sessions, tied to the
* current thread of execution. Follows the Thread Local Session
* pattern, see {@link http://hibernate... | Java |
package com.virtium.vpm.dao;
import java.util.List;
import org.hibernate.LockMode;
import org.hibernate.Query;
import org.hibernate.criterion.Example;
import com.virtium.vpm.hibernate.model.User;
public interface UserDAO extends GenericDAO{
public void save(User transientInstance);
public void del... | Java |
package com.virtium.vpm.dao.hibernate;
import com.virtium.vpm.dao.DAOFactory;
import com.virtium.vpm.dao.MajorTaskDAO;
import com.virtium.vpm.dao.ProjectDAO;
import com.virtium.vpm.dao.TypeDAO;
import com.virtium.vpm.dao.UserDAO;
/**
* Returns Hibernate-specific instances of DAOs.
* <p/>
* One... | Java |
package com.virtium.vpm.dao.hibernate;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import org.hibernate.Query;
import org.hibernate.Transaction;
import org.hibernate.criterion.Example;
import com.virtium.vpm.dao.MajorTaskDAO... | Java |
package com.virtium.vpm.dao.hibernate;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import org.hibernate.Query;
import org.hibernate.Transaction;
import org.hibernate.criterion.Example;
import com.virtium.vpm.dao.ProjectDAO;
... | Java |
package com.virtium.vpm.dao.hibernate;
import java.util.List;
import org.hibernate.Session;
import com.virtium.vpm.dao.GenericDAO;
import com.virtium.vpm.dao.HibernateSessionFactory;
/**
* Data access object (DAO) for domain model
* @author MyEclipse Persistence Tools
*/
public class BaseHibernateDA... | Java |
package com.virtium.vpm.dao.hibernate;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.hibernate.criterion.Example;
import c... | Java |
package com.virtium.vpm.dao.hibernate;
/**
* This exception class represent all data access erro
*
* @author KLF
* @version 1.0 - Jan 11, 2006
* @since 1.0
*/
public class DAOException extends Exception {
public DAOException () {}
public DAOException (String s) {
super (s);
}
... | Java |
package com.virtium.vpm.dao.hibernate;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import org.hibernate.Query;
import org.hibernate.Transaction;
import org.hibernate.criterion.Example;
import com.virtium.vpm.dao.UserDAO;
im... | Java |
package com.virtium.vpm.dao;
import java.util.List;
import com.virtium.vpm.hibernate.model.MajorTask;
public interface MajorTaskDAO extends GenericDAO{
public void save(MajorTask transientInstance);
public void delete(MajorTask persistentInstance);
public MajorTask findById(java.lang.Integer id);
p... | Java |
package com.virtium.vpm.dao;
import com.virtium.vpm.exception.RecordNotFoundException;
import com.virtium.vpm.hibernate.model.Type;
public class TestHibernate {
/**
* @param args
*/
public static void main(String[] args) {
TypeDAO typeDAO = DAOFactory.getInstance().getTypeDAO();
try {
... | Java |
package com.virtium.vpm.dao;
import java.util.List;
import org.hibernate.LockMode;
import org.hibernate.Query;
import org.hibernate.criterion.Example;
import com.virtium.vpm.exception.RecordNotFoundException;
import com.virtium.vpm.hibernate.model.Type;
public interface TypeDAO extends GenericDAO{
... | Java |
package com.virtium.vpm.dao;
import javax.servlet.ServletContext;
public abstract class DAOFactory {
public abstract TypeDAO getTypeDAO();
public abstract UserDAO getUserDAO();
public abstract ProjectDAO getProjectDAO();
public abstract MajorTaskDAO getMajorTaskDAO();
private static DAOFactory... | Java |
package com.virtium.vpm.controller;
import java.util.ArrayList;
import java.util.List;
import java.util.ListIterator;
import com.virtium.vpm.dao.DAOFactory;
import com.virtium.vpm.dao.MajorTaskDAO;
import com.virtium.vpm.hibernate.model.MajorTask;
public class MajorTaskManager {
public static ArrayList... | Java |
package com.virtium.vpm.controller;
import com.virtium.vpm.hibernate.model.User;
import com.virtium.vpm.util.FormUtil;
/**
*
*
* @author TuanAnh
*
*/
public class UserSession {
private String sessionId = null;
private String username = "";
private String fullName = "";
private User... | Java |
package com.virtium.vpm.controller;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.log4j.Logger;
import com.virtium.vpm.dao.DAOFactory;
import com.virtium.vpm.hibernate.model.User;
import com.virtium.vpm.util.SecurityUtil;
import... | Java |
package com.virtium.vpm.controller;
import java.util.ArrayList;
import java.util.ListIterator;
import com.virtium.vpm.dao.DAOFactory;
import com.virtium.vpm.dao.TypeDAO;
import com.virtium.vpm.hibernate.model.Type;
public class TypeManager {
private static ArrayList<Type> typeList;
public static Stri... | Java |
package com.virtium.vpm.controller;
import java.util.ArrayList;
import java.util.ListIterator;
import com.virtium.vpm.dao.DAOFactory;
import com.virtium.vpm.dao.UserDAO;
import com.virtium.vpm.hibernate.model.MajorTask;
import com.virtium.vpm.hibernate.model.User;
import com.virtium.vpm.json.JSONArray;
pu... | Java |
package com.virtium.vpm.controller;
import java.util.ArrayList;
import java.util.List;
import com.virtium.vpm.dao.DAOFactory;
import com.virtium.vpm.dao.MajorTaskDAO;
import com.virtium.vpm.dao.ProjectDAO;
import com.virtium.vpm.form.ProjectRowForm;
import com.virtium.vpm.hibernate.model.MajorTask;
import c... | Java |
package com.virtium.vpm.form;
import java.util.ArrayList;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import com.virtium.vpm.controller.TypeManager;
import com.virtium.vpm.controller.UserManager;
import com.virtium.vpm... | Java |
package com.virtium.vpm.form;
public class TypeForm {
private Integer id;
private String name;
/** default constructor */
public TypeForm() {
}
/** full constructor */
public TypeForm(String name) {
this.name = name;
}
// Property accessors
public Integer getId() {
return this.id;
... | Java |
package com.virtium.vpm.form;
import org.apache.struts.action.ActionForm;
/**
* Form-bean used by Change password and Forgot password function.
*
* @author TuanAnh
*
*/
public class UserForm extends ActionForm {
private String action;
private String username;
private String password;... | Java |
package com.virtium.vpm.form;
public class ProjectRowForm implements Comparable<ProjectRowForm>{
private String tableId;
private String majorTaskid;
private String type;
private String typeID;
private String priority;
private String majorTask;
private String owner;
private String userID;
private S... | Java |
package com.virtium.vpm.action;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import java.util.ListIterator;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import o... | Java |
package com.virtium.vpm.action;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
public class InitServlet extends HttpServlet {
private ... | Java |
package com.virtium.vpm.action;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apach... | Java |
package com.virtium.vpm.util;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import com.virtium.vpm.exception.CryptoException;
/**
* Provides encryption algorithms when dealing with passwords.
*
* @author TuanAnh
*
*/
public class SecurityUtil {
/**
*... | Java |
package com.virtium.vpm.util;
import java.util.Collection;
import java.util.Enumeration;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.struts.action.ActionMessages;
... | Java |
package com.virtium.vpm.util;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.StringTokenizer;
import org.apache.log4j.Logger;
/**
* Provides String utility methods that can be used to perform common operations.
*
* @author Tu... | Java |
package com.virtium.vpm.util;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import org.apache.log4j.Logger;
/**
* Provides Date utility methods that can be used to perform common operations.
* @author TuanAnh
*/
public class DateUtil {
protected static Logger... | Java |
package com.lancer.anglsrv.tran;
import java.util.Scanner;
import java.util.HashMap;
import java.util.Map;
import java.io.*;
class IndexEntry {
public String key;
public int offset;
public int size;
}
public class Tran {
Map<String, String> aWords = new HashMap<String, String>();
Map<String, IndexEntry> aI... | Java |
package com.lancer.anglsrv.tran;
//import java.io.IOException;
public class App {
public static void main( String[] args ) {
String curpath, fileNameWords, fileNameDict, fileNameIndex;
curpath = System.getProperty("user.dir");
fileNameWords = curpath + "/doc/glossary.txt";
fileName... | Java |
package manu.juegos.framework;
public interface Game {
public Input getInput();
public FileIO getFileIO();
public Graphics getGraphics();
public Audio getAudio();
public void setScreen(Screen screen);
public Screen getCurrentScreen();
public Screen getStartScreen();
}
| Java |
package manu.juegos.framework;
public interface Sound {
public void play(float volume);
public void dispose();
}
| Java |
package manu.juegos.framework;
public abstract class Screen {
protected final Game game;
public Screen(Game game){
this.game = game;
}
public abstract void update(float deltaTime);
public abstract void present(float deltaTime);
public abstract void pause();
public abstract void resume();
public ... | Java |
package manu.juegos.framework;
public interface Music {
public void play();
public void stop();
public void pause();
public void setLooping(boolean looping);
public void setVolume(float volume);
public boolean isPlaying();
public boolean isStopped();
public boolean isLooping();
public void di... | Java |
package manu.juegos.framework.math;
import android.util.Log;
public class SimpleTimer {
public static final int STOPED_STATUS = 0;
public static final int COUNTING_STATUS = 1;
int status = SimpleTimer.STOPED_STATUS;
long tiempoI=0;
long tiempoF=0;
public void start(){
if (this.status == SimpleTimer.ST... | Java |
package manu.juegos.framework.math;
import android.util.FloatMath;
public class Point {
public float x;
public float y;
public float z;
public Point(float x, float y, float z){
this.x =x;
this.y =y;
this.z = z;
}
public Boolean equals(Point p){
return ((p.x == this.x)&&(p.y == this.y)&&(p.z == this... | Java |
package manu.juegos.framework;
import java.util.ArrayList;
import java.util.List;
public class Pool<T> {
public interface PoolObjectFactory<T> {
public T createObject();
}
/* Listado de objetos genéricos libres para ser utilizados.
* Con esto no tendremos que crear un objeto nuevo cada vez
* que lo necesi... | Java |
package manu.juegos.framework;
public interface Graphics {
public static enum PixmapFormat {
ARGB8888, ARGB4444, RGB565
}
public Pixmap newPixmap(String fileName, PixmapFormat format);
public void clear(int color);
public void drawPixel(int x, int y, int color);
public void drawLine(int x, int y, int ... | Java |
package manu.juegos.framework;
import manu.juegos.framework.Graphics.PixmapFormat;
public interface Pixmap {
public int getWidth();
public int getHeight();
public PixmapFormat getFormat();
public void dispose();
}
| Java |
package manu.juegos.framework.impl;
import android.content.Context;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
public class AccelerometerHandler implements SensorEventListener{
float accelX;
float accelY;
... | Java |
package manu.juegos.framework.impl;
import javax.microedition.khronos.opengles.GL;
import android.opengl.GLSurfaceView;
public class GLGraphics {
GLSurfaceView glView;
GL gl;
public GLGraphics(GLSurfaceView glView){
this.glView = glView;
}
public GL getGL(){
return this.gl;
}
public void setGL(GL ... | Java |
package manu.juegos.framework.impl;
import java.io.IOException;
import android.content.res.AssetFileDescriptor;
import android.media.MediaPlayer;
import android.media.MediaPlayer.OnCompletionListener;
import manu.juegos.framework.Music;
public class AndroidMusic implements Music, OnCompletionListener {
MediaPlay... | Java |
package manu.juegos.framework.impl;
import java.util.ArrayList;
import java.util.List;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import manu.juegos.framework.Input.TouchEvent;
import manu.juegos.framework.Pool;
import manu.juegos.framework.Pool.PoolObjectFac... | Java |
package manu.juegos.framework.impl;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import android.content.res.AssetManager;
import android.os.Environment;
import manu.juegos.framework.FileIO;
... | Java |
package manu.juegos.framework.impl;
import java.io.IOException;
import android.app.Activity;
import android.content.res.AssetFileDescriptor;
import android.content.res.AssetManager;
import android.media.AudioManager;
import android.media.SoundPool;
import manu.juegos.framework.Audio;
import manu.juegos.framework.Mus... | Java |
package manu.juegos.framework.impl;
import java.util.List;
import android.content.Context;
import android.view.View;
import manu.juegos.framework.Input;
public class AndroidInput implements Input{
AccelerometerHandler accelHandler;
KeyboardHandler keyHandler;
TouchHandler touchHandler;
public AndroidInput(C... | Java |
package manu.juegos.framework.impl;
import java.util.ArrayList;
import java.util.List;
import android.view.View;
import android.view.View.OnKeyListener;
import manu.juegos.framework.Input.KeyEvent;
import manu.juegos.framework.Pool;
import manu.juegos.framework.Pool.PoolObjectFactory;
public class KeyboardHandler i... | Java |
package manu.juegos.framework;
public interface Audio {
public Music newMusic(String fileName);
public Sound newSound(String fileName);
}
| Java |
package manu.juegos.framework;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
public interface FileIO {
public InputStream readAsset(String fileName) throws IOException;
public InputStream readFile(String fileName) throws IOException;
public OutputStream writeFile(String ... | Java |
package manu.juegos.framework.gl;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.FloatBuffer;
import javax.microedition.khronos.opengles.GL11;
public class Material {
String name;
float[] ambientColor = null;
float[] specularColor = null;
float[] diffuseColor = null;
float alpha;... | Java |
package manu.juegos.framework.gl;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.FloatBuffer;
import java.nio.ShortBuffer;
import java.util.ArrayList;
// import java.util.Date;
import javax.microedition.khronos.opengles.GL11;
// import android.util.Log;
import manu.juegos.framework.gl.models... | Java |
package manu.juegos.framework.gl.objloader;
import java.util.ArrayList;
public class Triangulator{
public static ArrayList<Short> triangulate(ArrayList<Short> polygon){
ArrayList<Short> triangles=new ArrayList<Short>();
for(int i=1; i<polygon.size()-1; i++){
triangles.add(polygon.get(0));
triangles.add(pol... | Java |
package manu.juegos.framework.gl.objloader.pruebas;
// import java.io.IOException;
import android.app.Activity;
// import android.opengl.GLSurfaceView;
import android.os.Bundle;
import android.os.Debug;
// import android.telephony.CellLocation;
/**
* The initial Android Activity, setting and initiating
* the OpenG... | Java |
package manu.juegos.framework.gl.objloader;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
// import android.content.Context;
import manu.juegos.framework.gl.Material;
public class MTLParser {
public static ... | Java |
package manu.juegos.framework.gl.models;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.ArrayList;
import android.util.Log;
import manu.juegos.framework.gl.... | Java |
package manu.juegos.framework.gl.lights;
import javax.microedition.khronos.opengles.GL11;
public class PointLight {
float [] ambientColor = null;
float [] diffuseColor = null;
float [] specularColor = null;
float [] position = null;
int lightID = -1;
public PointLight(float[] ambient, float[] diffuse,
fl... | Java |
package manu.juegos.framework.gl.lights;
import javax.microedition.khronos.opengles.GL11;
public class DirectionalLight {
float [] ambientColor = null;
float [] diffuseColor = null;
float [] specularColor = null;
float [] direction = null;
int lightID = -1;
public DirectionalLight(float[] ambient, float[] di... | Java |
package manu.juegos.framework.gl.lights;
import javax.microedition.khronos.opengles.GL11;
public class AmbientLight {
float[] color = null;
public AmbientLight(float red, float green, float blue, float alpha){
this.color[0] = red;
this.color[1] = green;
this.color[2] = blue;
this.color[3] = alpha;
}
... | Java |
package manu.juegos.framework;
import java.util.List;
public interface Input {
public static class KeyEvent{
public static final int KEY_DOWN = 0;
public static final int KEY_UP = 1;
public int type;
public int keyCode;
public char keyChar;
}
public static class TouchEvent {
public stat... | Java |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the Licens... | Java |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the Licens... | Java |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the Licens... | Java |
package uk.co.bitethebullet.android.token;
public class TokenMetaData implements ITokenMeta {
public static final int HOTP_TOKEN = 0;
public static final int TOTP_TOKEN = 1;
String tokenName;
int tokenType;
String secretBase32;
int digits;
int timeStep;
int counter;
public TokenMetaData(Str... | Java |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the Licens... | Java |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the Licens... | Java |
package uk.co.bitethebullet.android.token.zxing;
/**
* <p>Encapsulates the result of a barcode scan invoked through {@link IntentIntegrator}.</p>
*
* @author Sean Owen
*/
public final class IntentResult {
private final String contents;
private final String formatName;
IntentResult(String conte... | Java |
/*
* Copyright 2009 ZXing authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.