text stringlengths 3 1.18M |
|---|
package com.timothy.answer;
import com.timothy.service.MessageSenderUtil;
public class SlideAnswer extends BaseAnswer{
private String value;
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
@Override
public String getAnswerContent() ... |
package com.timothy.answer;
import com.timothy.service.MessageSenderUtil;
public class RangeAnswer extends BaseAnswer{
private String value;
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
@Override
public String getAnswerContent() ... |
package com.timothy.answer;
import com.timothy.question.BaseQuestion;
public abstract class BaseAnswer {
private BaseQuestion question;
public BaseQuestion getQuestion() {
return question;
}
public void setQuestion(BaseQuestion question) {
this.question = question;
}
public abstract String getAnswerCont... |
package com.timothy.answer;
import com.timothy.service.MessageSenderUtil;
public class PriorityAnswer extends BaseAnswer {
/* private List<Integer> valueList = new ArrayList<Integer>();
public List<Integer> getAnswerList() {
return valueList;
}
public void setAnswerList(List<Integer> answerList) {
... |
package com.timothy.answer;
public class ChoiceResult {
private int index;
private int count;
private double share;
private String mark;
private String content;
public ChoiceResult() {
super();
}
public ChoiceResult(int index,int count, String mark, String content) {
super();
this.i... |
package com.timothy.answer;
import com.timothy.service.MessageSenderUtil;
/**
* This class model the user input for base station selection activity.
* @author felix
*
*/
public class BaseStationSelection {
// selected base station name
private String baseStationName;
// inputed password. PC need to authorize
... |
package com.timothy.answer;
import com.timothy.service.MessageSenderUtil;
public class SingleSelectAnswer extends BaseAnswer {
private String mark;
public String getMark() {
return mark;
}
public void setMark(String mark) {
this.mark = mark;
}
@Override
public String getAnswerContent() ... |
package com.timothy.chart;
public class Cylinder extends Bar2D{
}
|
package com.timothy.chart;
public class Bar2D extends BaseChart{
public int topLeftX;//柱状图左上角横坐标
public int topLeftY;//柱状图左上角纵坐标
public int bottomRightX;//柱状图右下角横坐标
public int bottomRightY;//柱状图右下角纵坐标
public Bar2D() {
// super();
}
public int getTopLeftX() {
return topLeftX;
}
public ... |
package com.timothy.chart;
import com.timothy.android.util.NumberUtil;
public class BaseChart {
private int index;
private int votes;
private double share;
private String fullColor;
private String shadowColor;
private String choiceText;//选项描述文本
private int choiceTextSize;//选项字体大小
private String ... |
package com.timothy.chart;
public class Pie2D extends BaseChart{
private int tlStartX;
private int tlStartY;
private int ovalStartX;
private int ovalStartY;
private int ovalHeight;
private int ovalWidth;
private float startAngle;
private float sweepAngle;
public Pie2D(){
}
pub... |
package com.timothy.chart;
import android.content.pm.ActivityInfo;
import com.timothy.config.ConfigureL;
import com.timothy.config.ConfigureM;
import com.timothy.config.ConfigureS;
public class CanvasSetting {
private int bgColor;
private int canvasHeight;
private int canvasWidth;
private int... |
package com.timothy.chart;
public class Bar3D extends Bar2D {
private int thickness;
public int getThickness() {
return thickness;
}
public void setThickness(int thickness) {
this.thickness = thickness;
}
public Bar3D(int thickness) {
super();
this.thickness = thickness;
}
}
|
package com.timothy.chart;
import com.timothy.android.util.NumberUtil;
public class NoGraph extends BaseChart {
private int startX;
private int startY;
public String toMessage(){
return this.getChoiceText()+ " " + NumberUtil.formatData2Deci(this.getShare())+"%" + " " +"("+this.getVotes()+")";
}
... |
package com.timothy.chart;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.RectF;
import android.graphics.Paint.Style;
import android.view.View;
public class PieView extends View{
// private final static S... |
package com.timothy.chart;
public class Pie3D extends Pie2D {
public Pie3D() {
}
public Pie3D(int thickness) {
this.thickness = thickness;
}
private int thickness;
public int getThickness() {
return thickness;
}
public void setThickness(int thickness) {
this.thickness = thic... |
package com.timothy.config;
public class Configuration {
public static String background = null;
public static Integer backLight = null;
public static String bubbleBackColor = null;
public static String buttonBackColor = null;
public static String bubbleFontColor = null;
public static String buttonFo... |
package com.timothy.service;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.ArrayList;
import java.util.List;
import com.timothy.android.util.XMLUtil;
import com.timothy.question.BaseQuestio... |
package com.timothy.service;
import java.io.BufferedWriter;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.Socket;
import java.net.SocketException;
import java.util.Enumeration;
import com.timothy.answer.BaseAnswer;
import ... |
package com.timothy.service;
import java.lang.reflect.Method;
import com.android.internal.telephony.ITelephony;
import android.app.Service;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.media.Aud... |
package com.timothy.service;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import android.app.Service;
import android.content.Intent;
import android.os.Handler;
import android.os.IBinder;
import android.os.Message;
import and... |
package com.timothy.android;
import com.timothy.question.TypeBean2;
import com.timothy.question.TypeBean2Config;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.os.... |
package com.timothy.android;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import com.timothy.answer.BaseStationSelection;
import com.timothy.question.BaseStation;
import com.timothy.question.QuestionBuilder;
import com.timothy.service.MessageReceiveService;
import com.timothy.service.M... |
package com.timothy.android;
import com.timothy.question.STTwoButtonAlpha;
import com.timothy.service.BackLightService;
import com.timothy.service.MessageReceiveService;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.ComponentName;
import android.content.Context;
import ... |
package com.timothy.android;
import java.util.ArrayList;
import java.util.List;
import com.timothy.chart.CanvasSetting;
import com.timothy.chart.VerticalBar2D;
import com.timothy.question.TypeBean1;
import android.app.Activity;
import android.content.Context;
import android.content.pm.ActivityInfo;
import an... |
package com.timothy.android;
import java.util.ArrayList;
import java.util.List;
import com.timothy.chart.CanvasSetting;
import com.timothy.chart.Cylinder;
import com.timothy.chart.VerticalBar2D;
import com.timothy.question.TypeBean1;
import android.app.Activity;
import android.content.Context;
import android... |
package com.timothy.android;
import java.util.ArrayList;
import java.util.List;
import com.timothy.android.util.XMLUtil;
import com.timothy.answer.STTwoButtonAlphaAnswer;
import com.timothy.question.Choice;
import com.timothy.question.QuestionBuilder;
import com.timothy.question.STTwoButtonAlpha;
import com... |
package com.timothy.android;
import com.timothy.service.MessageReceiveService;
import com.timothy.service.MessageSender;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
public cla... |
package com.timothy.android;
public class Bar3DAnswerActivity {
}
|
package com.timothy.android;
import com.timothy.chart.PieView;
import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.view.ViewGroup.LayoutParams;
public class Pie3DAnswerActivity extends Activity{
private final static String LOG_TAG = "Pie3DAnswerActivity";
... |
package com.timothy.android;
import java.util.ArrayList;
import java.util.List;
import com.timothy.chart.CanvasSetting;
import com.timothy.chart.Cylinder;
import android.app.Activity;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Pa... |
package com.timothy.android;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
public class HomeActivity extends BaseActivity {
private TextView console = null;
priv... |
package com.timothy.android;
import java.util.ArrayList;
import java.util.List;
import com.timothy.android.Bar2DAnswerActivity.VerticalBar2DView;
import com.timothy.chart.CanvasSetting;
import com.timothy.chart.Cylinder;
import com.timothy.chart.VerticalBar2D;
import com.timothy.question.TypeBean1;
import c... |
package com.timothy.android;
import android.app.Activity;
import android.content.pm.ActivityInfo;
import android.graphics.Color;
import android.os.Bundle;
import android.view.ViewGroup.LayoutParams;
import com.timothy.chart.PieView;
public class Pie2DAnswerActivity extends Activity{
private final static ... |
package com.timothy.android.util;
import java.util.ArrayList;
import java.util.List;
public class XMLUtil {
public static String getPropertyValue( String xml, String property ){
int index = xml.indexOf( property+"=" );
String value = null;
if( index>0 ) {
index = xml.indexOf("\"", index)+1;
value = xm... |
package com.timothy.question;
public class Choice {
private String mark;
private String content;
public Choice(){
}
public Choice(String mark,String content){
this.mark = mark;
this.content = content;
}
public String getMark() {
return mark;
}
public void setMark(String mark) {
this.mark = ma... |
package com.timothy.question;
import android.graphics.Color;
public class TypeBean2 {
private String question;
private String[] choice = new String[3];
private String wholeMessage;
private TypeBean2Config config;
public TypeBean2Config getConfig() {
return config;
}
public void setConfig(TypeB... |
package com.timothy.question;
import android.graphics.Color;
/**
*
* @author Timothy
*
*/
public class TypeBean1 {
private String question;
private String[] choice = new String[2];
private String wholeMessage;
private TypeBean1Config config;
public TypeBean1Config getConfig() {
return ... |
package com.timothy.question;
public class BaseConfig {
//飞行模式
private boolean flyMode;
//显示方向(横向,纵向)
private String orientation;
//时间限制
private Integer timeLimit;
private Integer interval;
public boolean isFlyMode() {
return flyMode;
}
public void setFlyMode(boolean flyMode) {
this.fl... |
package com.timothy.question;
public class BaseStation {
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
|
package com.timothy.question;
public class TypeBean2Config extends BaseConfig{
private int layoutBgColor;
private int layoutBgLight;
private int labelBgColor;
private int labelTextColor;
private int labelTextSize;
private int buttonTextColor;
private int buttonTextSize;
public int getLayoutBgCo... |
package com.timothy.question;
public abstract class BaseQuestion {
private int slideIndex;
private String questionName;
private String xmlString;
public int getSlideIndex() {
return slideIndex;
}
public void setSlideIndex(int slideIndex) {
this.slideIndex = slideIndex;
}
public String getQuestionName() {... |
package com.timothy.question;
import java.util.ArrayList;
import java.util.List;
public class STTwoButtonAlpha extends BaseQuestion{
private List<Choice> choices = new ArrayList<Choice>();
public void addChoice(Choice choice){
choices.add( choice );
}
public String toString(){
return getQuestionName()+"... |
package com.timothy.question;
import java.util.ArrayList;
import java.util.List;
import com.timothy.android.util.XMLUtil;
public class QuestionBuilder {
public static BaseQuestion parseQuestion(String question ) {
String type = XMLUtil.getPropertyValue( question , "Type");
if( "stTwoButtonAlpha".equals( type... |
package com.timothy.question;
public class TypeBean1Config extends BaseConfig{
private int layoutBgColor;
private int layoutBgLight;
private int labelBgColor;
private int labelTextColor;
private int labelTextSize;
private int buttonTextColor;
private int buttonTextSize;
public int getLayoutBgCo... |
package com.timothy.answer;
import com.timothy.question.BaseQuestion;
public abstract class BaseAnswer {
private BaseQuestion question;
public BaseQuestion getQuestion() {
return question;
}
public void setQuestion(BaseQuestion question) {
this.question = question;
}
public abstract String getAnswerCont... |
package com.timothy.answer;
import com.timothy.service.MessageSender;
/**
* This class model the user input for base station selection activity.
* @author felix
*
*/
public class BaseStationSelection {
// selected base station name
private String baseStationName;
// inputed password. PC need to authorize
priv... |
package com.timothy.answer;
import com.timothy.service.MessageSender;
public class STTwoButtonAlphaAnswer extends BaseAnswer {
//mark is value of answer
private String mark;
public void setMark(String mark) {
this.mark = mark;
}
@Override
public String getAnswerContent() {
return mark;
}
@Override
... |
package com.timothy.chart;
public class Cylinder {
private int index;//从左向右顺序
String choiceText;//柱状图描述文本
int textOrdinateX;//描述文本横坐标
int textOrdinateY;//描述文本纵坐标
private int topLeftX;//柱状图左上角横坐标
private int topLeftY;//柱状图左上角纵坐标
private int bottomRightX;//柱状图右下角横坐标
private int bottomRightY;//柱状图... |
package com.timothy.chart;
public class Bar2D {
}
|
package com.timothy.chart;
public class BaseChart {
}
|
package com.timothy.chart;
public class Pie2D {
int votes;//票数
int share;
public int getVotes() {
return votes;
}
public void setVotes(int votes) {
this.votes = votes;
}
public int getShare() {
return share;
}
public void setShare(int share) {
this.share = share;
}
}
|
package com.timothy.chart;
public class VerticalBar3D extends VerticalBar2D {
}
|
package com.timothy.chart;
public class CanvasSetting {
private int bgColor;
private int canvasHeight;
private int canvasWidth;
private int leftMargin;
private int rightMargin;
private int topMargin;
private int bottomMargin;
private int spaceInCharts; //图形之间的间距
private int countOfCharts;//图形... |
package com.timothy.chart;
public class VerticalBar2D extends BaseChart{
private int indext;//从左向右顺序
String choiceText;//柱状图描述文本
int choiceTextOrdinateX;//描述文本横坐标
int choiceTextOrdinateY;//描述文本纵坐标
private int topLeftX;//柱状图左上角横坐标
private int topLeftY;//柱状图左上角纵坐标
private int bottomRightX;//柱状图右下角横... |
package com.timothy.chart;
public class HorizontalBar2D {
}
|
package com.timothy.chart;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.RectF;
import android.graphics.Paint.Style;
import android.util.Log;
import android.view.View;
public class PieView extends View{
... |
package com.timothy.chart;
public class HorizontalBar3D {
}
|
package com.timothy.config;
public class Configuration {
public static String background = null;
public static Integer backLight = null;
public static String bubbleBackColor = null;
public static String buttonBackColor = null;
public static String bubbleFontColor = null;
public static String buttonFo... |
package com.timothy.service;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.ArrayList;
import java.util.List;
import com.timothy.android.util.XMLUtil;
import com.timothy.question.BaseQuestio... |
package com.timothy.service;
import java.io.BufferedWriter;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.Socket;
import java.net.SocketException;
import java.util.Enumeration;
import com.timothy.answer.BaseAnswer;
import ... |
package com.timothy.service;
import java.lang.reflect.Method;
import com.android.internal.telephony.ITelephony;
import android.app.Service;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.media.Aud... |
package com.timothy.service;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import android.app.Service;
import android.content.Intent;
import android.os.Handler;
import android.os.IBinder;
import android.os.Message;
import and... |
package com.timothy.android;
import java.util.ArrayList;
import java.util.List;
import com.timothy.question.Choice;
import com.timothy.question.STTwoButtonAlpha;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import and... |
package com.timothy.android;
import android.graphics.Color;
public class LayoutAConfig {
//LayoutA
public static final int LAYOUTA_BG_COLOR = Color.CYAN;
public static final int LAYOUTA_PADDING = 4;
//tv_msg
public static final int TV_MSG_BG_COLOR = Color.WHITE;
public static final int TV_MSG_HEIGH... |
package com.timothy.android;
import java.util.ArrayList;
import java.util.HashMap;
import com.timothy.answer.BaseStationSelection;
import com.timothy.service.MessageSender;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import andro... |
package com.timothy.android;
import com.timothy.service.BackLightService;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.ComponentName;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.ServiceConn... |
package com.timothy.android;
import java.util.ArrayList;
import java.util.List;
import com.timothy.android.util.NumberUtil;
import com.timothy.answer.BaseAnswer;
import com.timothy.answer.STTwoButtonAlphaAnswer;
import com.timothy.answer.Vote;
import com.timothy.chart.CanvasSetting;
import com.timothy.chart... |
package com.timothy.android;
import java.util.ArrayList;
import java.util.List;
import com.timothy.chart.CanvasSetting;
import com.timothy.chart.Cylinder;
import com.timothy.chart.VerticalBar2D;
import com.timothy.question.TypeBean1;
import android.app.Activity;
import android.content.Context;
import android... |
package com.timothy.android;
import java.util.ArrayList;
import java.util.List;
import com.timothy.question.Choice;
import com.timothy.question.STTwoButtonAlpha;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.View;
import android.wi... |
package com.timothy.android;
import com.timothy.service.MessageSender;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widge... |
package com.timothy.android;
public class Bar3DAnswerActivity {
}
|
package com.timothy.android;
import com.timothy.chart.PieView;
import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.view.ViewGroup.LayoutParams;
public class Pie3DAnswerActivity extends Activity{
private final static String LOG_TAG = "Pie3DAnswerActivity";
... |
package com.timothy.android;
import android.graphics.Color;
public class LayoutBConfig {
//LayoutA
public static final int LAYOUTB_BG_COLOR = Color.CYAN;
public static final int LAYOUTB_PADDING = 4;
//tv_msg
public static final int TV_MSG_BG_COLOR = Color.WHITE;
public static final int TV_MSG_HEIGH... |
package com.timothy.android;
import java.util.ArrayList;
import java.util.List;
import com.timothy.chart.CanvasSetting;
import com.timothy.chart.Cylinder;
import android.app.Activity;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Pa... |
package com.timothy.android;
import com.timothy.question.STTwoButtonAlpha;
import com.timothy.service.MessageReceiveService;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.graphics.Color;
import an... |
package com.timothy.android;
import java.util.ArrayList;
import java.util.List;
import com.timothy.chart.CanvasSetting;
import com.timothy.chart.Cylinder;
import com.timothy.question.BaseQuestion;
import com.timothy.question.TypeBean1;
import android.content.Context;
import android.content.Intent;
import... |
package com.timothy.android;
import android.app.Activity;
import android.content.pm.ActivityInfo;
import android.graphics.Color;
import android.os.Bundle;
import android.view.ViewGroup.LayoutParams;
import com.timothy.chart.PieView;
public class Pie2DAnswerActivity extends Activity{
private final static ... |
package com.timothy.android.util;
public class NumberUtil {
/**
* 保留两位小数
* @param c
* @return
*/
public static String formatData2Deci(double c) {
java.text.DecimalFormat myformat = new java.text.DecimalFormat("#0.00");
return myformat.format(c);
}
/**
* 保留四位小... |
package com.timothy.android.util;
import java.util.ArrayList;
import java.util.List;
public class XMLUtil {
public static String getPropertyValue( String xml, String property ){
int index = xml.indexOf( property+"=" );
String value = null;
if( index>0 ) {
index = xml.indexOf("\"", index)+1;
value = xm... |
package com.timothy.question;
public class Choice {
private String mark;
private String content;
public Choice(){
}
public Choice(String mark,String content){
this.mark = mark;
this.content = content;
}
public String getMark() {
return mark;
}
public void setMark(String mark) {
this.mark = ma... |
package com.timothy.question;
import android.graphics.Color;
public class TypeBean2 {
private String question;
private String[] choice = new String[3];
private String wholeMessage;
private TypeBean2Config config;
public TypeBean2Config getConfig() {
return config;
}
public void setConfig(TypeB... |
package com.timothy.question;
import android.graphics.Color;
/**
*
* @author Timothy
*
*/
public class TypeBean1 {
private String question;
private String[] choice = new String[2];
private String wholeMessage;
private TypeBean1Config config;
public TypeBean1Config getConfig() {
return ... |
package com.timothy.question;
public class BaseConfig {
//飞行模式
private boolean flyMode;
//显示方向(横向,纵向)
private String orientation;
//时间限制
private Integer timeLimit;
private Integer interval;
public boolean isFlyMode() {
return flyMode;
}
public void setFlyMode(boolean flyMode) {
this.fl... |
package com.timothy.question;
public class BaseStation {
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
|
package com.timothy.question;
public class TypeBean2Config extends BaseConfig{
private int layoutBgColor;
private int layoutBgLight;
private int labelBgColor;
private int labelTextColor;
private int labelTextSize;
private int buttonTextColor;
private int buttonTextSize;
public int getLayoutBgCo... |
package com.timothy.question;
public class BaseQuestion {
private int slideIndex;
private String questionName;
private String xmlString;
public BaseQuestion() {
}
public BaseQuestion(int slideIndex, String questionName) {
super();
this.slideIndex = slideIndex;
this.questionName = questionName;
}
pub... |
package com.timothy.question;
import java.util.ArrayList;
import java.util.List;
public class STTwoButtonAlpha extends BaseQuestion{
private List<Choice> choices = new ArrayList<Choice>();
public void addChoice(Choice choice){
choices.add( choice );
}
public String toString(){
return getQuestionName()+"... |
package com.timothy.question;
import java.util.List;
import com.timothy.android.util.XMLUtil;
public class QuestionBuilder {
public static BaseQuestion parseQuestion(String question ) {
String type = XMLUtil.getPropertyValue( question , "Type");
if( "stTwoButtonAlpha".equals( type ) ) {
return parseSTTwoB... |
package com.timothy.question;
public class TypeBean1Config extends BaseConfig{
private int layoutBgColor;
private int layoutBgLight;
private int labelBgColor;
private int labelTextColor;
private int labelTextSize;
private int buttonTextColor;
private int buttonTextSize;
public int getLayoutBgCo... |
package com.timothy.answer;
import com.timothy.question.BaseQuestion;
public abstract class BaseAnswer {
private BaseQuestion question;
public BaseQuestion getQuestion() {
return question;
}
public void setQuestion(BaseQuestion question) {
this.question = question;
}
public abstract String getAnswerCont... |
package com.timothy.answer;
import com.timothy.service.MessageSender;
/**
* This class model the user input for base station selection activity.
* @author felix
*
*/
public class BaseStationSelection {
// selected base station name
private String baseStationName;
// inputed password. PC need to authorize
priv... |
package com.timothy.answer;
import java.util.ArrayList;
import java.util.List;
import com.timothy.service.MessageSender;
public class STTwoButtonAlphaAnswer extends BaseAnswer {
//mark is value of answer
private String mark;
private List<Vote> votes = new ArrayList<Vote>();
public STTwoButtonAlphaAnswer() ... |
package com.timothy.chart;
public class Cylinder {
private int index;//从左向右顺序
String choiceText;//柱状图描述文本
int textOrdinateX;//描述文本横坐标
int textOrdinateY;//描述文本纵坐标
private int topLeftX;//柱状图左上角横坐标
private int topLeftY;//柱状图左上角纵坐标
private int bottomRightX;//柱状图右下角横坐标
private int bottomRightY;//柱状图... |
package com.timothy.chart;
public class Bar2D {
private int indext;//从左向右顺序
String choiceText;//柱状图描述文本
int choiceTextOrdinateX;//描述文本横坐标
int choiceTextOrdinateY;//描述文本纵坐标
private int topLeftX;//柱状图左上角横坐标
private int topLeftY;//柱状图左上角纵坐标
private int bottomRightX;//柱状图右下角横坐标
private int bottomRi... |
package com.timothy.chart;
public class BaseChart {
}
|
package com.timothy.chart;
public class Pie2D {
int votes;//票数
int share;
public int getVotes() {
return votes;
}
public void setVotes(int votes) {
this.votes = votes;
}
public int getShare() {
return share;
}
public void setShare(int share) {
this.share = share;
}
}
|
package com.timothy.chart;
public class VerticalBar3D extends VerticalBar2D {
}
|
package com.timothy.chart;
public class CanvasSetting {
private int bgColor;
private int canvasHeight;
private int canvasWidth;
private int leftMargin;
private int rightMargin;
private int topMargin;
private int bottomMargin;
private int spaceInCharts; //图形之间的间距
private int countOfCharts;//图形... |
package com.timothy.chart;
public class VerticalBar2D extends BaseChart{
private int indext;//从左向右顺序
String choiceText;//柱状图描述文本
int choiceTextOrdinateX;//描述文本横坐标
int choiceTextOrdinateY;//描述文本纵坐标
private int topLeftX;//柱状图左上角横坐标
private int topLeftY;//柱状图左上角纵坐标
private int bottomRightX;//柱状图右下角横... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.