|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A LabelFactory
object acts as a factory for creating
objects of class Label
, or some descendent class.
It can make Labels from Strings perhaps with options
Method Summary | |
Label |
newLabel(Label oldLabel)
Create a new Label , where the label is formed from
the Label object passed in. |
Label |
newLabel(String labelStr)
Make a new label with this String as the
value . |
Label |
newLabel(String labelStr,
int options)
Make a new label with this String as the value, and
the type determined in an implementation-dependent way from the
options value. |
Label |
newLabelFromString(String encodedLabelStr)
Make a new label. |
Method Detail |
public Label newLabel(String labelStr)
String
as the
value
.
Any other fields of the label would normally be null
.
labelStr
- The String that will be used for balue
public Label newLabel(String labelStr, int options)
String
as the value, and
the type determined in an implementation-dependent way from the
options value.
labelStr
- The String that will be used for valueoptions
- May determine what kind of label is created
public Label newLabelFromString(String encodedLabelStr)
encodedLabelStr
- The String that will be used for labelling the
object (by decoding it into parts)
public Label newLabel(Label oldLabel)
Label
, where the label is formed from
the Label
object passed in. The new Label will
at least copy the value()
of the source label, and
may also copy other components.
oldLabel
- The Label that the new label is being created from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |