|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsbr.items.NewVAS
public class NewVAS
Generates the web code to add a visual analog scale item to the survey. Implements, in Java VAS Generator by Frederik Funke & Ulf-Dietrich Reips (University of Zurich, CH)
| Field Summary | |
|---|---|
static int |
ARROW
Constant to indicate using an arrow to indicate the selection on the visual analog scale. |
static int |
LINE
Constant to indicate using an line to indicate the selection on the visual analog scale. |
static java.lang.String[] |
LINES
Names of lines in an array to allow them to be selected in the rest of the program. |
static java.lang.String[] |
MARKER
Constant string array with names to allow combobox for selection of the type of indicator. |
static int |
MEDIUM
Constant for a medium line in the visual analog scale. |
static int |
POINT
Constant to indicate using an point to indicate the selection on the visual analog scale. |
static int |
THICK
Constant for a think line in the visual analog scale. |
static int |
THIN
Constant for a thin line in the visual analog scale. |
static int |
X
Constant to indicate using an X to indicate the selection on the visual analog scale. |
| Constructor Summary | |
|---|---|
NewVAS()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getAddScriptsVAS()
Returns the text that has to follow the body tag in the html code in the web page. |
java.lang.String |
getBodyVAS(java.lang.String text,
int length,
int resolution,
java.lang.String lAnchor,
java.lang.String rAnchor,
int lineWidth,
int marker,
int questNum)
Returns the body script for the visual analog scale. |
java.lang.String |
getEndVAS()
Return the text that has to precede the /body tag at the end |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int THIN
public static final int MEDIUM
public static final int THICK
public static final java.lang.String[] LINES
public static final int X
public static final int ARROW
public static final int POINT
public static final int LINE
public static final java.lang.String[] MARKER
| Constructor Detail |
|---|
public NewVAS()
| Method Detail |
|---|
public java.lang.String getAddScriptsVAS()
public java.lang.String getBodyVAS(java.lang.String text,
int length,
int resolution,
java.lang.String lAnchor,
java.lang.String rAnchor,
int lineWidth,
int marker,
int questNum)
text - the text of the question.length - the linear length of the scale in pixels.resolution - the number of discrete points that can be selectedlAnchor - the left hand anchor text.rAnchor - the right hand anchor text.lineWidth - the width of the line for the scalemarker - the marker to give feedback to the userquestNum - the number of the question in the scale
public java.lang.String getEndVAS()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||