text stringlengths 3 1.18M |
|---|
package battleTank;
import java.util.LinkedList;
import java.util.Random;
import rectangles.BubbleShieldRectangle;
import rectangles.CrateRectangle;
import rectangles.FireRingRectangle;
import rectangles.IceBlockRectangle;
import rectangles.ImmovableBlockRectangle;
import rectangles.SpeedBoostRectangle;
im... |
package battleTank;
import java.util.Observable;
import rectangles.IceBlockRectangle;
/**
* This class is an item that will appear on any map. If either of the tanks
* run into an ice block, the opposing tank's speed will be set to 2 for 2
* seconds before it can move again.
*
* @author Team Exception... |
package battleTank;
import java.util.Observable;
import rectangles.ProjectileRectangle;
/**
*
* @author Team Exception
*
* The PlayerProjectile class is the bullets that PlayerTank will fire.
* It consists of a location speed in both the x and y direction and a
* projectio... |
package battleTank;
import java.util.Observer;
/**
* This class is the "level5" map for the campaign mode of tanks. It contains a
* unique ItemCreator and a preset locations to place the obstacles, PlayerTank,
* and the EnemyTank.
*
* @author Team Exception
*
* @extends Map
*
* @implements Obse... |
package battleTank;
import java.util.Observer;
/**
* This class is the "level4" map for the campaign mode of tanks. It contains a
* unique ItemCreator and a preset locations to place the obstacles, PlayerTank,
* and the EnemyTank.
*
* @author Team Exception
*
* @extends Map
*
* @implements ... |
package battleTank;
import java.io.Serializable;
/**
* This class is a point (overriding Java's Point class) that will be used to
* determine the location of tanks and obstacles
*
* @author Team Exception
*
* @implements Serializable
*
* @see PlayerTank, EnemyTank, Item, Map
*
* @serial
... |
package battleTank;
/**
* This simple class simulates the speed on which the tanks will move if on
* ice. If the tanks are on ice, the movement speed will be 7.
*
* @author Team Exception
*
* @see Terrain, Ice, Sand
*
* @serial
*/
public class Ice implements Terrain {
private static final l... |
package battleTank;
import java.util.LinkedList;
import java.util.Observable;
import rectangles.CrateRectangle;
/**
* This class is the crate object which has health, a rectangle that will be
* used to determine object collisions, and a location. The crate object may be
* created, determined if has health... |
package battleTank;
import java.util.Observer;
/**
* This class is the "level3" map for the campaign mode of tanks. It contains a
* unique ItemCreator and a preset locations to place the obstacles, PlayerTank,
* and the EnemyTank.
*
* @author Team Exception
*
* @extends Map
*
* @implements Obse... |
package battleTank;
import java.io.Serializable;
/**
* This interface is implemented by all the non user controlled objects on the
* field: crate, fire ring, barrier, spike pit, and TNT box.
*
* @author Team Exception
*
* @extends Serializable
*
*
*/
public interface Obstacle extends Serial... |
package battleTank;
public interface Projectile {
}
|
package battleTank;
public class Arena1 extends Map{
private ItemCreator creator;
public Arena1() {
super();
}
public void interruptCreator(){
if(creator.isAlive()) creator.interrupt();
}
public void setUpMap() {
for (int i = 0; i < 750; i = i + 50) {
ImmovableBlock b = new ... |
package battleTank;
import java.util.Observable;
import rectangles.ImmovableBlockRectangle;
/**
* This class is the immovable object which has health (-1), a rectangle that
* will be used to determine object collisions, and a location. The immovable
* object may be created, determined if has health, receiv... |
package battleTank;
import java.util.Observable;
import rectangles.ProjectileRectangle;
/**
*
* The EnemyProjectile class is the bullets that either the AI or opponent of a
* PvP match tank will fire. It consists of a location speed in both the x and y
* direction and a projection of itself as a geome... |
package battleTank;
import java.util.LinkedList;
import java.util.Observable;
import java.util.Observer;
import rectangles.TankRectangle;
/**
* The map class is the class that keeps track of all objects that are on the
* board. It observes everything so that it can tell the view whenever some
* act... |
package battleTank;
import java.util.Observable;
import rectangles.BubbleShieldRectangle;
/**
* This class implements items and is a shield that protects the tank from
* projectiles for a short period of time. It consists of a geometry class
* rectangle to control its collisions anda location to be placed ... |
package battleTank;
import java.awt.Image;
import java.util.Observable;
import javax.swing.ImageIcon;
/**
* This class will control the explosions for when either the EnemyTank or the
* PlayerTank is destroyed. It will basically start a thread at the given point
* on a given map and cycle through 10 ima... |
package battleTank;
import java.util.Observable;
import rectangles.SpeedBoostRectangle;
/**
* This class is an item that will appear on any map. If either of the two tanks
* gets this item, it will receive a temporary speed boost increasing the
* velocity in which the tank moves across the map.
*
* ... |
package battleTank;
import java.awt.Image;
import java.util.LinkedList;
import java.util.Observable;
import javax.swing.ImageIcon;
import rectangles.TankRectangle;
/**
* This class is the tank object that is controlled by the player that can be
* moved by arrow keys and shoot independently via the m... |
package battleTank;
import java.util.Observer;
/**
* This class is the "level2" map for the campaign mode of tanks. It contains a
* unique ItemCreator and a preset locations to place the obstacles, PlayerTank,
* and the EnemyTank.
*
* @author Team Exception
*
* @extends Map
*
* @implements ... |
package battleTank;
import java.util.Observer;
/**
* This class is the "level1" map for the campaign mode of tanks. It contains a
* unique ItemCreator and a preset locations to place the obstacles, PlayerTank,
* and the EnemyTank.
*
* @author Team Exception
*
* @extends Map
*
* @implement... |
package undecided;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import j... |
package undecided;
import java.io.Serializable;
/**
* This interface class simple describes the effect that different terrain will
* have on the PlayerTank and EnemyTank speed. It is extended by the Ice, Grass,
* and Sand classes.
*
* @author Team Exception
*
* @extends Serializable
*
* @see ... |
package undecided;
import java.awt.Image;
import java.util.LinkedList;
import java.util.Observable;
import java.util.Random;
import javax.swing.ImageIcon;
import rectangles.FireRingRectangle;
/**
* This class is the fire ring obstacle. It will randomly roam the map avoiding
* other obstacles such as cr... |
package undecided;
/**
* This simple class simulates the speed on which the tanks will move if on
* grass. If the tanks are on grass, the movement speed will be 5.
*
* @author Team Exception
*
* @see Terrain, Ice, Sand
*
* @serial
*/
public class Grass implements Terrain {
private static fi... |
package undecided;
/**
* This simple class simulates the speed on which the tanks will move if on
* sand. If the tanks are on sand, the movement speed will be 3.
*
* @author Team Exception
*
* @see Terrain, Ice, Sand
*
* @serial
*/
public class Sand implements Terrain {
private static final... |
package undecided;
/**
* This is an enum class that contains the constants NORTH, EAST, SOUTH, and
* WEST.
*
* @author Team Exception
*
* @category enum
*
*/
public enum Direction {
NORTH, EAST, SOUTH, WEST;
}
|
package undecided;
import java.util.LinkedList;
import java.util.Observable;
import rectangles.BlastRadiusRectangle;
import rectangles.TNTRectangle;
/**
* This class is the TNT object which essentially when destroyed, will deal
* damage to a certain radius around it.
*
* @author Team Exception
*
... |
package undecided;
import java.util.Observable;
import rectangles.SpikePitRectangle;
/**
* This class is the SpikePit object which essentially destroys the PlayerTank
* if it moves over it on the field. It has a location and map which it is on
* but it has no health so can't be destroyed.
*
* @author ... |
package undecided;
/**
* This interface class describes the effects that the item type classes should
* have, namely activateEffect on either the PlayerTank or the EnemyTank.
*
* @author Team Exception
*
* @see BubbleShield, IceBlock, SpeedBoost
*
*/
public interface Item {
/**
* This meth... |
package undecided;
import java.awt.Image;
import java.util.LinkedList;
import java.util.Observable;
import java.util.Random;
import javax.swing.ImageIcon;
import rectangles.TankRectangle;
/**
* This class is the enemy tank and will control its AI, health, movements, etc.
*
* @author Team Exception... |
package undecided;
import java.util.LinkedList;
import java.util.Random;
import rectangles.BubbleShieldRectangle;
import rectangles.CrateRectangle;
import rectangles.FireRingRectangle;
import rectangles.IceBlockRectangle;
import rectangles.ImmovableBlockRectangle;
import rectangles.SpeedBoostRectangle;
imp... |
package undecided;
import java.util.Observable;
import rectangles.IceBlockRectangle;
/**
* This class is an item that will appear on any map. If either of the tanks
* run into an ice block, the opposing tank's speed will be set to 2 for 2
* seconds before it can move again.
*
* @author Team Exception
... |
package undecided;
import java.util.Observable;
import rectangles.ProjectileRectangle;
/**
*
* @author Team Exception
*
* The PlayerProjectile class is the bullets that PlayerTank will fire.
* It consists of a location speed in both the x and y direction and a
* projection... |
package undecided;
import java.util.Observer;
/**
* This class is the "level5" map for the campaign mode of tanks. It contains a
* unique ItemCreator and a preset locations to place the obstacles, PlayerTank,
* and the EnemyTank.
*
* @author Team Exception
*
* @extends Map
*
* @implements Obser... |
package undecided;
import java.util.Observer;
/**
* This class is the "level4" map for the campaign mode of tanks. It contains a
* unique ItemCreator and a preset locations to place the obstacles, PlayerTank,
* and the EnemyTank.
*
* @author Team Exception
*
* @extends Map
*
* @implements O... |
package undecided;
import java.io.Serializable;
/**
* This class is a point (overriding Java's Point class) that will be used to
* determine the location of tanks and obstacles
*
* @author Team Exception
*
* @implements Serializable
*
* @see PlayerTank, EnemyTank, Item, Map
*
* @serial
*... |
package undecided;
/**
* This simple class simulates the speed on which the tanks will move if on
* ice. If the tanks are on ice, the movement speed will be 7.
*
* @author Team Exception
*
* @see Terrain, Ice, Sand
*
* @serial
*/
public class Ice implements Terrain {
private static final lo... |
package undecided;
import java.util.LinkedList;
import java.util.Observable;
import rectangles.CrateRectangle;
/**
* This class is the crate object which has health, a rectangle that will be
* used to determine object collisions, and a location. The crate object may be
* created, determined if has health,... |
package undecided;
import java.util.Observer;
/**
* This class is the "level3" map for the campaign mode of tanks. It contains a
* unique ItemCreator and a preset locations to place the obstacles, PlayerTank,
* and the EnemyTank.
*
* @author Team Exception
*
* @extends Map
*
* @implements Obser... |
package undecided;
import java.io.Serializable;
/**
* This interface is implemented by all the non user controlled objects on the
* field: crate, fire ring, barrier, spike pit, and TNT box.
*
* @author Team Exception
*
* @extends Serializable
*
*
*/
public interface Obstacle extends Seriali... |
package undecided;
public interface Projectile {
}
|
package undecided;
public class Arena1 extends Map{
private ItemCreator creator;
public Arena1() {
super();
}
public void interruptCreator(){
if(creator.isAlive()) creator.interrupt();
}
public void setUpMap() {
for (int i = 0; i < 750; i = i + 50) {
ImmovableBlock b = new I... |
package undecided;
import java.util.Observable;
import rectangles.ImmovableBlockRectangle;
/**
* This class is the immovable object which has health (-1), a rectangle that
* will be used to determine object collisions, and a location. The immovable
* object may be created, determined if has health, receive... |
package undecided;
import java.util.Observable;
import rectangles.ProjectileRectangle;
/**
*
* The EnemyProjectile class is the bullets that either the AI or opponent of a
* PvP match tank will fire. It consists of a location speed in both the x and y
* direction and a projection of itself as a geomet... |
package undecided;
import java.util.LinkedList;
import java.util.Observable;
import java.util.Observer;
import rectangles.TankRectangle;
/**
* The map class is the class that keeps track of all objects that are on the
* board. It observes everything so that it can tell the view whenever some
* acti... |
package undecided;
import java.util.Observable;
import rectangles.BubbleShieldRectangle;
/**
* This class implements items and is a shield that protects the tank from
* projectiles for a short period of time. It consists of a geometry class
* rectangle to control its collisions anda location to be placed o... |
package undecided;
import java.awt.Image;
import java.util.Observable;
import javax.swing.ImageIcon;
/**
* This class will control the explosions for when either the EnemyTank or the
* PlayerTank is destroyed. It will basically start a thread at the given point
* on a given map and cycle through 10 imag... |
package undecided;
import java.util.Observable;
import rectangles.SpeedBoostRectangle;
/**
* This class is an item that will appear on any map. If either of the two tanks
* gets this item, it will receive a temporary speed boost increasing the
* velocity in which the tank moves across the map.
*
* @... |
package undecided;
import java.awt.Image;
import java.util.LinkedList;
import java.util.Observable;
import javax.swing.ImageIcon;
import rectangles.TankRectangle;
/**
* This class is the tank object that is controlled by the player that can be
* moved by arrow keys and shoot independently via the mo... |
package undecided;
import java.util.Observer;
/**
* This class is the "level2" map for the campaign mode of tanks. It contains a
* unique ItemCreator and a preset locations to place the obstacles, PlayerTank,
* and the EnemyTank.
*
* @author Team Exception
*
* @extends Map
*
* @implements O... |
package undecided;
import java.util.Observer;
/**
* This class is the "level1" map for the campaign mode of tanks. It contains a
* unique ItemCreator and a preset locations to place the obstacles, PlayerTank,
* and the EnemyTank.
*
* @author Team Exception
*
* @extends Map
*
* @implements... |
package netWorking;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.ConnectException;
import java.net.Socket;
import java.net.SocketException;
import java.net.UnknownHostException;
import java.util.Observable;
import java.util.Observer;
import javax.sw... |
package netWorking;
import java.io.Serializable;
/**this class is a serializable 4 int class for transmitting information
* on a enemy projectile.
* @author TeamException
*
*/
public class SimpleShoot implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
public int r,c,x,y;
... |
package netWorking;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.InetAddress;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.SocketException;
import java.util.ArrayList;
import java.util.Observable;
import java.util.Observer;
i... |
package files;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.OutputStream;
import java.io.PrintStream;
import java.io.... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package files;
import java.util.Comparator;
class PersonComparator implements Comparator<Person>
{
boolean cs;
PersonComparator(boolean cs)
{
this.cs = cs;
}
@Override
... |
package threads;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
class AtomicInt {
private int i;
public void set(int i) {
this.i = i;
}
public int get() {
return i;
}
... |
// Fig. 27.7: Client.java
// Client portion of a stream-socket connection between client and server.
import java.io.EOFException;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.InetAddress;
import java.net.Socket;
import java.awt.BorderLayout;
i... |
// Fig. 27.6: ServerTest.java
// Test the Server application.
import javax.swing.JFrame;
public class ServerTest
{
public static void main( String[] args )
{
Server application = new Server(); // create server
application.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
application.r... |
// Fig. 27.5: Server.java
// Server portion of a client/server stream-socket connection.
import java.io.EOFException;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.ServerSocket;
import java.net.Socket;
import java.awt.BorderLayout;
import java... |
// Fig. 27.8: ClientTest.java
// Class that tests the Client.
import javax.swing.JFrame;
public class ClientTest
{
public static void main( String[] args )
{
Client application; // declare client application
// if no command line args
if ( args.length == 0 )
application =... |
package cards;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.OutputStream;
import java.io.Serializable;
import java.util.ArrayList;
enum Face {A, KING};
... |
package com.springapp.mvc;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@Controller
@RequestMapping("/index.html")
public class HelloContro... |
package com.springapp.service;
import com.springapp.model.CategoryEntity;
/**
* Created with IntelliJ IDEA.
* User: nkhang
* Date: 10/14/13
* Time: 10:37 PM
* To change this template use File | Settings | File Templates.
*/
public interface CategoryService {
public void save(CategoryEntity entity);
}
|
package com.springapp.service.impl;
import com.springapp.dao.CategoryDAO;
import com.springapp.model.CategoryEntity;
import com.springapp.service.CategoryService;
import org.springframework.stereotype.Service;
/**
* Created with IntelliJ IDEA.
* User: nkhang
* Date: 10/14/13
* Time: 10:37 PM
* To change this tem... |
package com.springapp.dao;
import com.springapp.model.CategoryEntity;
import java.util.List;
/**
* Created with IntelliJ IDEA.
* User: nkhang
* Date: 10/14/13
* Time: 10:35 PM
* To change this template use File | Settings | File Templates.
*/
public class CategoryHibernate extends CustomHibernateDaoSupport imp... |
package com.springapp.dao;
import com.springapp.model.CategoryEntity;
/**
* Created with IntelliJ IDEA.
* User: nkhang
* Date: 10/14/13
* Time: 10:34 PM
* To change this template use File | Settings | File Templates.
*/
public interface CategoryDAO {
public void save(CategoryEntity entity);
public void ... |
package com.springapp.dao;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
/**
* Created with IntelliJ IDEA.
* User: nkhang
* Date: 8/27/13
* Time: 9:36 PM
* To change this template use File... |
package com.springapp;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* Created with IntelliJ IDEA.
* User: nkhang
* Date: 8/27/13
* Time: 10:19 PM
* To change this template use File | Settings | File Templates.
*/
public cla... |
package com.springapp.model;
import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.Id;
/**
* Created with IntelliJ IDEA.
* User: nkhang
* Date: 8/29/13
* Time: 5:26 PM
* To change this template use File | Settings | File Templates.
*/
@javax.persistence.Table(name = "stock", ... |
package com.springapp.model;
import java.sql.Timestamp;
import java.util.Collection;
/**
* Created with IntelliJ IDEA.
* User: nkhang
* Date: 10/14/13
* Time: 4:31 PM
* To change this template use File | Settings | File Templates.
*/
public class CategoryEntity {
private long id;
private String code;
... |
package com.springapp.common.utils;
/**
* Created with IntelliJ IDEA.
* User: nkhang
* Date: 10/8/13
* Time: 10:46 PM
* To change this template use File | Settings | File Templates.
*/
public class Constants {
public static String userAgent = "Mozilla";
public static String HOME_PAGE = "http://www.bbc.co... |
package com.springapp.common.dto;
import java.io.Serializable;
/**
* Created with IntelliJ IDEA.
* User: nkhang
* Date: 10/8/13
* Time: 10:37 PM
* To change this template use File | Settings | File Templates.
*/
public class CategoryDTO implements Serializable {
public String getUrl() {
return url;... |
/**
* Defines a mesh for a 3D Object.
* Mesh consists of triangular faces with normals
*/
package graphics.shaders;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import jav... |
/**
* Class represents a 3D object.
* Consists of a mesh of triangles, any textures, lighting properties, etc.
*/
package graphics.shaders;
import java.io.IOException;
import java.io.InputStream;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
... |
/**
* OpenGL ES 2.0 examples for Android
* ----------------------------------
The purpose was to create a simple framework for working with
OpenGL ES 2.0 in Android. Features:
1) Loads triangular meshes in these formats:
- (.OFF): Vertex positions + normals
- (.OBJ): Vertex positions, normals and ... |
/**
* The OpenGL renderer
*/
package graphics.shaders;
import java.io.IOException;
import java.io.InputStream;
import java.nio.FloatBuffer;
import java.nio.ShortBuffer;
import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;
import android.app.AlertDialog;
... |
/**
* Represents a shader object
*/
package graphics.shaders;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import android.content.Context;
import android.opengl.GLES20;
import android.util.Log;
public class Shader {
/************************
* PRO... |
package cx.hell.android.pdfview;
import java.io.File;
import java.io.FileDescriptor;
import java.io.FileNotFoundException;
import java.util.List;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.ContentResolver;
import android.content.DialogInterface;
impo... |
package cx.hell.android.pdfview;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;
/**
* Displays "About..." info.
*/
public class AboutPDFViewActivity extends Activity {
... |
package cx.hell.android.pdfview;
import java.io.IOException;
import java.io.InputStream;
import android.util.Log;
import android.widget.ProgressBar;
public class StreamUtils {
public static byte[] readBytesFully(InputStream i) throws IOException {
return StreamUtils.readBytesFully(i, 0, null);
}
... |
package cx.hell.android.pdfview;
import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
import java.util.Arrays;
import java.util.Comparator;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
i... |
package cx.hell.android.pdfview;
import java.io.File;
import java.io.FileDescriptor;
import java.util.List;
import cx.hell.android.lib.pagesview.FindResult;
/**
* Native PDF - interface to native code.
*/
public class PDF {
static {
System.loadLibrary("pdfview2");
}
/**
* Simple s... |
package cx.hell.android.pdfview;
/**
* High level user-visible application exception.
*/
public class ApplicationException extends Exception {
private static final long serialVersionUID = 3168318522532680977L;
public ApplicationException(String message) {
super(message);
}
}
|
/*
* Copyright 2010 Ludovic Drolez
*
* This program 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 License, or
* (at your option) any later version.
*
* This program is d... |
package cx.hell.android.pdfview;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import android.graphics.Bitmap;
import android.util.Log;
import cx.hell.android.lib.pag... |
package cx.hell.android.lib.pagesview;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import android.graphics.Rect;
import android.util.Log;
/**
* Find result.
*/
public class FindResult {
/**
* Logging tag.
*/
public static final String TAG = "cx.hell.andr... |
package cx.hell.android.lib.pagesview;
/**
* Tile definition.
* Can be used as a key in maps (hashable, comparable).
*/
public class Tile {
/**
* X position of tile in pixels.
*/
private int x;
/**
* Y position of tile in pixels.
*/
private int y;
private int zoom;
private in... |
package cx.hell.android.lib.pagesview;
public class RenderingException extends Exception {
private static final long serialVersionUID = 1010978161527539002L;
public RenderingException(String message) {
super(message);
}
}
|
package cx.hell.android.lib.pagesview;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.graphics.Bitmap;
import android.graphics.Canvas;
i... |
package cx.hell.android.lib.pagesview;
import java.util.Map;
import android.graphics.Bitmap;
/**
* Allow renderer to notify view that new bitmaps are ready.
* Implemented by PagesView.
*/
public interface OnImageRenderedListener {
void onImagesRendered(Map<Tile,Bitmap> renderedImages);
void onRender... |
package cx.hell.android.lib.pagesview;
import java.util.Collection;
import android.graphics.Bitmap;
/**
* Provide content of pages rendered by PagesView.
*/
public abstract class PagesProvider {
/**
* Get page image tile for drawing.
*/
public abstract Bitmap getPageBitmap(Tile tile);
/... |
package com.xstore.product.service;
public interface ICategoryService {
}
|
package com.xstore.product.service.impl;
import com.xstore.product.service.ICategoryService;
public class CategoryServiceImpl implements ICategoryService {
}
|
/**
*
*/
package com.xstore.product.service;
import java.util.List;
import com.xstore.framework.pagination.Pagination;
import com.xstore.product.domain.Product;
/**
*
* @author Administrator
*
*/
public interface IProductService {
/**
*
* @return
*/
public List<Product> findPr... |
package com.xstore.product.domain;
import java.util.Date;
public class Category {
private int id;
private String categoryKey;
private String categoryName;
private int level;
private String parent;
private String isLastLevel;
private String creator;
private Date createDate;
private String mod... |
package com.xstore.product.domain;
public class ProductProperty {
private String productSn;
private String P01;
private String P02;
private String P03;
private String P04;
private String P05;
private String P06;
private String P07;
private String P08;
private String P09;
private String P10;
... |
package com.xstore.product.domain;
public class ProductPropertyMetadata {
private int id;
private String categoryKey;
private String productPropertyKey;
private String propertyName;
private String orderby;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
... |
package com.xstore.framework.pagination;
import java.util.Collections;
import java.util.List;
@SuppressWarnings("unchecked")
public class Pagination<T> {
public final static int PAGESIZE = 15;
/**
* 每页个数
*/
private int pageSize = PAGESIZE;
/**
* 分页数据
*/
private List items = Collections... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.