|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.swing.customattribute.FormatAttributeGenerator
The FormatAttributeGenerator is capable of creating an instance
of a Format by parsing a String. Such a string usually is generated by the format
itself.
| Constructor Summary | |
FormatAttributeGenerator(int type)
Creates a new FormatAttributeGenerator for a given Format
type. |
|
| Method Summary | |
CustomAttribute |
generateCustomAttribute(java.lang.String name,
java.lang.String stringRepresentation)
Creates a new CustomAttribute by generating the value from
the parameter string representation and using the given name. |
Format |
parseFormat(java.lang.String description)
Parses the given string and returns an instance of type Format.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FormatAttributeGenerator(int type)
FormatAttributeGenerator for a given Format
type.
type - the Type of this Generator.FormatAttribute.FONT,
FormatAttribute.PAINT,
FormatAttribute.STROKE,
FormatAttribute.MARKER| Method Detail |
public CustomAttribute generateCustomAttribute(java.lang.String name,
java.lang.String stringRepresentation)
CustomAttributeGeneratorCustomAttribute by generating the value from
the parameter string representation and using the given name.
generateCustomAttribute in interface CustomAttributeGeneratorname - the name for the resulting custom attribute.stringRepresentation - the string representation which will be used
to create the CustomAttribute -instance.
CustomAttribute.
public final Format parseFormat(java.lang.String description)
throws FormatParseException,
FontFormatParseException,
StrokeFormatParseException,
PaintFormatParseException,
MarkerFormatParseException
Format.
This method chooses the approbriate method to parse the string by checking
the internal type identifier.
description - the description string to parse the format from.
FormatParseException - thrown if the internal type is not understood.
FontFormatParseException - thrown by the FormatPool.parseFontFormat(int, int, String, int, boolean, boolean, boolean)
StrokeFormatParseException - thrown by the FormatPool.parseStrokeFormat(String)
PaintFormatParseException - thrown by the FormatPool.parsePaintFormat(String)
MarkerFormatParseException - thrown by the FormatPool.parseMarkerFormat(String)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||