|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.text.JTextComponent
javax.swing.JTextField
edu.neu.ccs.gui.TextFieldView
edu.neu.ccs.gui.PathNodeView
Class PathNodeView uses a TextFieldView to
input the single line of text needed to define a PathNode.
The data type is fixed to be PathNode.class.
The input format is one of the following:
MOVE[x1;y1]
LINE[x1;y1]
QUAD[x1;y1;x2;y2]
CUBIC[x1;y1;x2;y2;x3;y3]
CLOSE[]
where x1, y1, x2, y2, x3, y3 are floats.
As of 2.6.0a, the methods demandObject and
requestObject will return null
if the underlying TextFieldView view state
consists only of whitespace. This convention is more
convenient when interacting with PathListView.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JTextField |
JTextField.AccessibleJTextField |
| Nested classes inherited from class javax.swing.text.JTextComponent |
JTextComponent.AccessibleJTextComponent, JTextComponent.KeyBinding |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
| Fields inherited from class edu.neu.ccs.gui.TextFieldView |
AUTO_SELECT, autoSelect, DEFAULT_AUTOSELECT_POLICY, DEFAULT_WIDTH, delegate, EXTRA_WIDTH, PREFERRED_WIDTH, preferredWidth |
| Fields inherited from class javax.swing.JTextField |
notifyAction |
| Fields inherited from class javax.swing.text.JTextComponent |
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY |
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Container |
|
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface edu.neu.ccs.gui.TypedView |
DATA_TYPE |
| Fields inherited from interface edu.neu.ccs.gui.Displayable |
DEFAULT_VIEW_STATE, VIEW_STATE |
| Fields inherited from interface edu.neu.ccs.util.JPTConstants |
ABOVE, ALIGNMENT, BELOW, BOTTOM_LEFT, BOTTOM_RIGHT, DEFAULT, FONT, INPUT_PROPERTIES, MANDATORY, OPTIONAL, ORIENTATION, TOP_LEFT, TOP_RIGHT, VALUE |
| Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
PathNodeView()
The default constructor. |
|
| Method Summary | |
Stringable |
demandObject()
Overrides the inherited method to return null
if the underlying TextFieldView view state
consists only of whitespace. |
boolean |
isEmpty()
Returns true if the underlying TextFieldView
view state consists only of whitespace. |
Stringable |
requestObject()
Overrides the inherited method to return null
if the underlying TextFieldView view state
consists only of whitespace. |
void |
setDataType(Class dataType)
Since the data type of this class is fixed to be PathNode.class, this method overrides
the inherited method to do nothing. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.neu.ccs.gui.GeneralView |
addActionListener, removeActionListener |
| Methods inherited from interface edu.neu.ccs.gui.Displayable |
setEnabled |
| Constructor Detail |
public PathNodeView()
| Method Detail |
public void setDataType(Class dataType)
Since the data type of this class is fixed to be
PathNode.class, this method overrides
the inherited method to do nothing.
setDataType in interface GeneralViewsetDataType in class TextFieldViewpublic boolean isEmpty()
TextFieldView
view state consists only of whitespace.
public Stringable demandObject()
null
if the underlying TextFieldView view state
consists only of whitespace.
demandObject in interface TypedViewdemandObject in class TextFieldView
public Stringable requestObject()
throws CancelledException
null
if the underlying TextFieldView view state
consists only of whitespace.
requestObject in interface TypedViewrequestObject in class TextFieldViewCancelledException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||