| com.xoetrope.awt.survey.XQuestion com.xoetrope.awt.survey.XWrapQuestion
XWrapQuestion | public class XWrapQuestion extends XQuestion (Code) | | Extends XQuestion by rendering text as a single strip wrapped
over multiple lines and without using a header
Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Xoetrope.
$Revision: 1.4 $
|
bandHeight | int bandHeight(Code) | | |
shadowColorselectedColorshadeColor | protected static Color shadowColorselectedColorshadeColor(Code) | | |
XWrapQuestion | public XWrapQuestion()(Code) | | |
invalidate | public void invalidate()(Code) | | Clear the screen
|
isDoubleBuffered | public boolean isDoubleBuffered()(Code) | | Is the prepared image drawn off screen?
The double buffered flag |
paint | public void paint(Graphics g)(Code) | | Renders the question. Renders question text as a single strip wrapped
over multiple lines and without using a header. The responses/options are
then spaced horizontally with a block/shadow behind the check marks.
Parameters: g - |
paintStates | public void paintStates()(Code) | | Repaint the responses
|
respond | public boolean respond()(Code) | | Called by XClickListener to check if a response event should be sent to the
parent form. The control can also use this event to do post click processing
true if the parent is to be notified |
setScale | public void setScale(int newScale)(Code) | | Sets the scale for question layout
Parameters: newScale - the new scale |
setState | public boolean setState(int x, int y, int defResponse)(Code) | | Find a response
Parameters: x - the x coordinate of the mouse click Parameters: y - the y coordinate of the mouse click Parameters: defResponse - the default response true if a response was found |
update | public void update(Graphics g)(Code) | | Update the screen
Parameters: g - |
Methods inherited from com.xoetrope.awt.survey.XQuestion | public void addResponse(int value, String caption)(Code)(Java Doc) public void clear()(Code)(Java Doc) public int findCurrentResponse(int x, int y)(Code)(Java Doc) public boolean fireActionEvent()(Code)(Java Doc) public void get()(Code)(Java Doc) public Object getComponent()(Code)(Java Doc) public String getCueFileName()(Code)(Java Doc) public int getId()(Code)(Java Doc) public String getOutputPath()(Code)(Java Doc) public Dimension getPreferredSize()(Code)(Java Doc) public Question getQuestion()(Code)(Java Doc) public int getQuestionId()(Code)(Java Doc) public int getQuestionType()(Code)(Java Doc) public String getResponse()(Code)(Java Doc) public int getScale()(Code)(Java Doc) public String getSourcePath()(Code)(Java Doc) public String getText()(Code)(Java Doc) public boolean isLast()(Code)(Java Doc) public boolean isOptionSelected(int idx)(Code)(Java Doc) public void paint(Graphics sg)(Code)(Java Doc) public void paintStates()(Code)(Java Doc) public void print(Graphics g)(Code)(Java Doc) public void set()(Code)(Java Doc) public int setAttribute(String attribName, Object attribValue)(Code)(Java Doc) public void setBounds(int x, int y, int w, int h)(Code)(Java Doc) public void setLastQuestion(boolean isLast)(Code)(Java Doc) public void setModel(XModel newNode, String newPath)(Code)(Java Doc) public void setOutput(XModel newModel, String outputPath)(Code)(Java Doc) public void setOutputPath(String newPath)(Code)(Java Doc) public void setScale(int newScale)(Code)(Java Doc) public void setSource(XModel newNode)(Code)(Java Doc) public void setSourcePath(String newPath)(Code)(Java Doc) public boolean setState(int x, int y, int defResponse)(Code)(Java Doc) public void setText(String s)(Code)(Java Doc) public void update(Graphics g)(Code)(Java Doc) public void updateSelectedState()(Code)(Java Doc)
|
|
|