|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.graphics.FormatUtilities
This class provides utility methods and constants for the xml export of format
instances. Use the create...Format(AttributeSet) to create a
format instance from a given AttributeSet. Use the
getAttributeSetFromFormat(Object) to convert a given format
to an attributeSet. The getIdentifier() allow you to match
Format specific int constants to String constants (and vice versa) of this class.
| Field Summary | |
static java.lang.String |
DELIM
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
FONT
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
FONTCOLOR
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
FONTFAMILY
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
FONTITALIC
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
FONTSIZE
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
FONTSTRIKETHROUGH
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
FONTSTRIKETHROUGHSTROKE
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
FONTUNDERLINE
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
FONTUNDERLINESTROKE
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
FONTUNIT
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
FONTWEIGHT
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
FONTWEIGHTBOLD
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String[] |
fontWeightConstants
The list of font weight constants as string. |
static java.lang.String |
FONTWEIGHTEXTRABOLD
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
FONTWEIGHTEXTRALIGHT
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static int[] |
fontWeightFormats
The list of font weight constants. |
static java.lang.String |
FONTWEIGHTHEAVY
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
FONTWEIGHTLIGHT
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
FONTWEIGHTMEDIUM
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
FONTWEIGHTNONE
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
FONTWEIGHTNORMAL
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
FONTWEIGHTSEMIBOLD
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
FONTWEIGHTTHIN
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
GRADIENTCENTERCIRCLE
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
GRADIENTCENTERSQUARED
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
GRADIENTDOWN
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
GRADIENTDOWNCENTER
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
GRADIENTHORIZONTALCENTER
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
GRADIENTLEFTBOTTOM
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
GRADIENTLEFTTOP
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
GRADIENTLEFTTOPCIRCLE
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
GRADIENTRIGHTBOTTOM
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
GRADIENTRIGHTLEFT
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
GRADIENTRIGHTTOP
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
GRADIENTRIGHTTOPCIRCLE
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
GRADIENTTOPBOTTOM
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String[] |
gradientTypeConstants
The list of gradient type constants as string. |
static int[] |
gradientTypeFormats
The list of gradient type constants. |
static java.lang.String |
GRADIENTUP
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
GRADIENTUPCENTER
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
GRADIENTVERTICALCENTER
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
LINELENGTH
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
MARGINBOTTOM
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
MARGINLEFT
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
MARGINRIGHT
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
MARGINTOP
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
MARKERARROWLARGEFILLED
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
MARKERARROWLARGEFILLEDHALF
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
MARKERARROWLARGEFILLEDHALFLONG
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
MARKERARROWLARGEFILLEDLONG
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
MARKERARROWLARGENOTFILLED
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
MARKERARROWLARGENOTFILLED_LONG
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
MARKERARROWMEDIUMFILLED
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
MARKERARROWMEDIUMFILLEDHALF
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
MARKERARROWMEDIUMFILLEDHALFLONG
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
MARKERARROWMEDIUMFILLEDLONG
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
MARKERARROWMEDIUMNOTFILLED
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
MARKERARROWMEDIUMNOTFILLED_LONG
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
MARKERARROWSMALLFILLED
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
MARKERARROWSMALLFILLEDHALF
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
MARKERARROWSMALLFILLEDHALFLONG
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
MARKERARROWSMALLFILLEDLONG
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
MARKERARROWSMALLNOTFILLED
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
MARKERARROWSMALLNOTFILLED_LONG
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
MARKERBEGIN
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
MARKERDIAMOND
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
MARKEREND
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
MARKERINVISIBLE
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
MARKERPAINT
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
MARKERSIZE
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
MARKERSQUARE
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
MARKERSTROKE
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
MARKERTYPE
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String[] |
markerTypeConstants
The list of marker type constants as string. |
static int[] |
markerTypeFormats
The list of marker type constants. |
static java.lang.String |
MARKERVERTLINE
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
MODEMASK
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
PAINTBACKGROUND
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
PAINTFILLGRADIENT
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
PAINTFILLNONE
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
PAINTFILLPATTERN
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
PAINTFILLSOLID
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
PAINTFILLTEXTURE
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
PAINTFOREGROUND
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
PAINTGRADIENTTYPE
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
PAINTPATTERNTYPE
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
PAINTSTYLE
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String[] |
paintStyleConstants
The list of paint style constants as string. |
static int[] |
paintStyleFormats
The list of paint style constants. |
static java.lang.String |
PAINTTEXTUREKEY
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
PAINTTEXTUREKEYREFCLASS
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
PAINTTRANSPARENCYLEVEL
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
PAINTTRANSPARENT
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
PATTERNTYPECHECKER
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String[] |
patternTypeConstants
The list of pattern type constants as string. |
static java.lang.String |
PATTERNTYPECRISSCROSS
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
PATTERNTYPEDOWN
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static int[] |
patternTypeFormats
The list of pattern type constants. |
static java.lang.String |
PATTERNTYPEGREY16
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
PATTERNTYPEGREY25
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
PATTERNTYPEGREY50
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
PATTERNTYPEGREY75
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
PATTERNTYPEGREY8
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
PATTERNTYPEGRID
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
PATTERNTYPEHORIZONTAL
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
PATTERNTYPELIGHTDOWN
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
PATTERNTYPELIGHTHORIZONTAL
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
PATTERNTYPELIGHTUP
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
PATTERNTYPELIGHTVERTICAL
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
PATTERNTYPESEMIGREY75
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
PATTERNTYPESOLID
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
PATTERNTYPEUP
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
PATTERNTYPEVERTICAL
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
STROKECOLOR
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
STROKEPATTERN
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
STROKESTYLE
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String[] |
strokeTypeConstants
The list of stroke type constants as string. |
static int[] |
strokeTypeFormats
The list of stroke type constants. |
static java.lang.String |
STROKETYPESTYLECONTINUOUS
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
STROKETYPESTYLECUSTOM
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
STROKETYPESTYLEDASH
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
STROKETYPESTYLEDASHDOT
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
STROKETYPESTYLEDASHDOTDOT
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
STROKETYPESTYLEDOT
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
STROKETYPESTYLENULL
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
STROKEWEIGHT
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
TEXT
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
TEXTLINE
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
TEXTSCALEX
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
TEXTSCALEY
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
static java.lang.String |
TRANSFORM2D
This are all the string constants for the attributes appearing during the xml export of all available format classes. |
| Method Summary | |
static FontFormat |
createFontFormat(AttributeSet set)
Creates a FontFormat by using the FormatPool's
parseFontFormat method. |
static MarkerFormat |
createMarkerFormat(AttributeSet set)
Creates a MarkerFormat instance from the given
AttributeSet. |
static PaintFormat |
createPaintFormat(AttributeSet set)
This method creates a PaintFormat by using the FormatPool's
parsePaintFormat method. |
static StrokeFormat |
createStrokeFormat(AttributeSet set)
Creates a StrokeFormat by using the FormatPool's
parseStrokeFormat method. |
static TextFormatter |
createTextFormatter(AttributeSet set)
Creates a TextFormatter instance from the
AttributeSet given by set. |
static AttributeSet |
fillInCanonicalDescriptions(AttributeSet set)
Replaces all AttributeSet representations of formats or
instances of FontFormat, PaintFormat,
MarkerFormat or StrokeFormat by their corresponding
canonical description. |
static AttributeSet |
getAttributeSetFromFormat(java.lang.Object format)
Method getAttributeSetFromFormat returns an AttributeSet representing the given Format instance splitted up to name-value-pairs. |
static java.lang.String |
getCanonicalFontDescription(AttributeSet set)
Creates a canonical description for the FontFormat defined by the
given AttributeSet. |
static java.lang.String |
getCanonicalMarkerDescription(AttributeSet set)
Creates a canonical description for the MarkerFormat defined by the
given AttributeSet. |
static java.lang.String |
getCanonicalPaintDescription(AttributeSet set)
Creates a canonical description for the PaintFormat defined by the
given AttributeSet. |
static java.lang.String |
getCanonicalStrokeDescription(AttributeSet set)
Creates a canonical description for the StrokeFormat defined by the
given AttributeSet. |
static FontFormat |
getFontFormatFromAwtFont(java.awt.Font font)
Creates a FontFormat instance from a given AWT Font. |
static AttributeSet |
getFontSet(FontFormat font)
Method getFontSet returns an AttributeSet representing the given FontFormat. |
static java.lang.String |
getIdentifier(java.lang.String[] types,
int[] identifier,
int type)
Method getIdentifier returns the first matching identifier from the parameter types array. |
static int |
getIdentifier(java.lang.String[] types,
int[] identifier,
java.lang.String token)
Method getIdentifier returns the first matching identifier from the parameter identifier array. |
static AttributeSet |
getMarkerSet(MarkerFormat marker)
Method getMarkerSet returns a set defining a MarkerFormat. |
static AttributeSet |
getPaintSet(PaintFormat paint)
Method getPaintSet returns an AttributeSet of the given PaintFormat. |
static AttributeSet |
getStrokeSet(StrokeFormat stroke)
Method getStrokeSet returns an AttributeSet representing the given StrokeFormat. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String DELIM
public static final java.lang.String MARKERBEGIN
public static final java.lang.String MARKEREND
public static final java.lang.String PAINTSTYLE
public static final java.lang.String PAINTBACKGROUND
public static final java.lang.String PAINTFOREGROUND
public static final java.lang.String PAINTGRADIENTTYPE
public static final java.lang.String PAINTPATTERNTYPE
public static final java.lang.String PAINTTEXTUREKEY
public static final java.lang.String PAINTTEXTUREKEYREFCLASS
public static final java.lang.String PAINTTRANSPARENCYLEVEL
public static final java.lang.String PAINTTRANSPARENT
public static final java.lang.String PAINTFILLNONE
public static final java.lang.String PAINTFILLSOLID
public static final java.lang.String PAINTFILLGRADIENT
public static final java.lang.String PAINTFILLPATTERN
public static final java.lang.String PAINTFILLTEXTURE
public static final java.lang.String PATTERNTYPESOLID
public static final java.lang.String PATTERNTYPEGREY75
public static final java.lang.String PATTERNTYPEGREY50
public static final java.lang.String PATTERNTYPEGREY25
public static final java.lang.String PATTERNTYPEGREY16
public static final java.lang.String PATTERNTYPEGREY8
public static final java.lang.String PATTERNTYPEHORIZONTAL
public static final java.lang.String PATTERNTYPEVERTICAL
public static final java.lang.String PATTERNTYPEDOWN
public static final java.lang.String PATTERNTYPEUP
public static final java.lang.String PATTERNTYPECHECKER
public static final java.lang.String PATTERNTYPESEMIGREY75
public static final java.lang.String PATTERNTYPELIGHTHORIZONTAL
public static final java.lang.String PATTERNTYPELIGHTVERTICAL
public static final java.lang.String PATTERNTYPELIGHTDOWN
public static final java.lang.String PATTERNTYPELIGHTUP
public static final java.lang.String PATTERNTYPEGRID
public static final java.lang.String PATTERNTYPECRISSCROSS
public static final java.lang.String GRADIENTRIGHTLEFT
public static final java.lang.String GRADIENTVERTICALCENTER
public static final java.lang.String GRADIENTTOPBOTTOM
public static final java.lang.String GRADIENTHORIZONTALCENTER
public static final java.lang.String GRADIENTUP
public static final java.lang.String GRADIENTUPCENTER
public static final java.lang.String GRADIENTDOWN
public static final java.lang.String GRADIENTDOWNCENTER
public static final java.lang.String GRADIENTLEFTBOTTOM
public static final java.lang.String GRADIENTRIGHTBOTTOM
public static final java.lang.String GRADIENTLEFTTOP
public static final java.lang.String GRADIENTRIGHTTOP
public static final java.lang.String GRADIENTCENTERSQUARED
public static final java.lang.String GRADIENTCENTERCIRCLE
public static final java.lang.String GRADIENTLEFTTOPCIRCLE
public static final java.lang.String GRADIENTRIGHTTOPCIRCLE
public static final java.lang.String STROKESTYLE
public static final java.lang.String STROKEPATTERN
public static final java.lang.String STROKEWEIGHT
public static final java.lang.String STROKECOLOR
public static final java.lang.String STROKETYPESTYLENULL
public static final java.lang.String STROKETYPESTYLECUSTOM
public static final java.lang.String STROKETYPESTYLECONTINUOUS
public static final java.lang.String STROKETYPESTYLEDASH
public static final java.lang.String STROKETYPESTYLEDASHDOT
public static final java.lang.String STROKETYPESTYLEDASHDOTDOT
public static final java.lang.String STROKETYPESTYLEDOT
public static final java.lang.String FONT
public static final java.lang.String FONTSIZE
public static final java.lang.String FONTWEIGHT
public static final java.lang.String FONTFAMILY
public static final java.lang.String FONTCOLOR
public static final java.lang.String FONTITALIC
public static final java.lang.String FONTUNDERLINE
public static final java.lang.String FONTSTRIKETHROUGH
public static final java.lang.String FONTUNDERLINESTROKE
public static final java.lang.String FONTSTRIKETHROUGHSTROKE
public static final java.lang.String FONTWEIGHTNONE
public static final java.lang.String FONTWEIGHTTHIN
public static final java.lang.String FONTWEIGHTEXTRALIGHT
public static final java.lang.String FONTWEIGHTLIGHT
public static final java.lang.String FONTWEIGHTNORMAL
public static final java.lang.String FONTWEIGHTMEDIUM
public static final java.lang.String FONTWEIGHTSEMIBOLD
public static final java.lang.String FONTWEIGHTBOLD
public static final java.lang.String FONTWEIGHTEXTRABOLD
public static final java.lang.String FONTWEIGHTHEAVY
public static final java.lang.String LINELENGTH
public static final java.lang.String MARGINLEFT
public static final java.lang.String MARGINRIGHT
public static final java.lang.String MARGINTOP
public static final java.lang.String MARGINBOTTOM
public static final java.lang.String MODEMASK
public static final java.lang.String MARKERTYPE
public static final java.lang.String MARKERSIZE
public static final java.lang.String MARKERPAINT
public static final java.lang.String MARKERSTROKE
public static final java.lang.String MARKERINVISIBLE
public static final java.lang.String MARKERARROWSMALLFILLED
public static final java.lang.String MARKERARROWMEDIUMFILLED
public static final java.lang.String MARKERARROWLARGEFILLED
public static final java.lang.String MARKERARROWSMALLFILLEDLONG
public static final java.lang.String MARKERARROWMEDIUMFILLEDLONG
public static final java.lang.String MARKERARROWLARGEFILLEDLONG
public static final java.lang.String MARKERARROWSMALLFILLEDHALF
public static final java.lang.String MARKERARROWMEDIUMFILLEDHALF
public static final java.lang.String MARKERARROWLARGEFILLEDHALF
public static final java.lang.String MARKERARROWSMALLFILLEDHALFLONG
public static final java.lang.String MARKERARROWMEDIUMFILLEDHALFLONG
public static final java.lang.String MARKERARROWLARGEFILLEDHALFLONG
public static final java.lang.String MARKERARROWSMALLNOTFILLED
public static final java.lang.String MARKERARROWMEDIUMNOTFILLED
public static final java.lang.String MARKERARROWLARGENOTFILLED
public static final java.lang.String MARKERARROWSMALLNOTFILLED_LONG
public static final java.lang.String MARKERARROWMEDIUMNOTFILLED_LONG
public static final java.lang.String MARKERARROWLARGENOTFILLED_LONG
public static final java.lang.String MARKERSQUARE
public static final java.lang.String MARKERDIAMOND
public static final java.lang.String MARKERVERTLINE
public static final java.lang.String TRANSFORM2D
public static final java.lang.String TEXT
public static final java.lang.String TEXTLINE
public static final java.lang.String TEXTSCALEX
public static final java.lang.String TEXTSCALEY
public static final java.lang.String FONTUNIT
public static final java.lang.String[] fontWeightConstants
public static final int[] fontWeightFormats
public static final java.lang.String[] patternTypeConstants
public static final int[] patternTypeFormats
public static final java.lang.String[] gradientTypeConstants
public static final int[] gradientTypeFormats
public static final java.lang.String[] strokeTypeConstants
public static final int[] strokeTypeFormats
public static final java.lang.String[] paintStyleConstants
public static final int[] paintStyleFormats
public static final java.lang.String[] markerTypeConstants
public static final int[] markerTypeFormats
| Method Detail |
public static AttributeSet getAttributeSetFromFormat(java.lang.Object format)
throws SerializeException,
AttributeException,
ConstraintViolationException
format - an instance of Paint-, Stroke- or FontFormat.
SerializeException - thrown if one of the Serializer throws an exception.
ConstraintViolationException - if a constraint has been violated.
AttributeException - thrown while an exception occurs during the
attribute creation.
public static AttributeSet getPaintSet(PaintFormat paint)
throws ConstraintViolationException,
AttributeException
paint - the PaintFormat to return the
AttributeSet for
AttributeSet for the given
PaintFormat
ConstraintViolationException - thrown if the attribute manipulation fails.
AttributeException - thrown if the attribute manipulation fails.
public static AttributeSet getStrokeSet(StrokeFormat stroke)
throws ConstraintViolationException,
AttributeException
stroke - the stroke to convert to a set.
ConstraintViolationException - thrown if the attribute manipulation fails.
AttributeException - thrown if the attribute manipulation fails.
public static AttributeSet getFontSet(FontFormat font)
throws ConstraintViolationException,
AttributeException
font - the FontFormat to return the
AttributeSet for
AttributeSet for the given
FontFormat
ConstraintViolationException - thrown if the attribute manipulation fails.
AttributeException - thrown if the attribute manipulation fails.
public static AttributeSet getMarkerSet(MarkerFormat marker)
throws ConstraintViolationException,
AttributeException
marker - the MarkerFormat to return the
AttributeSet for
AttributeSet for the given
MarkerFormat
ConstraintViolationException - thrown if the attribute manipulation fails.
AttributeException - thrown if the attribute manipulation fails.
public static PaintFormat createPaintFormat(AttributeSet set)
throws BuildException
PaintFormat by using the FormatPool's
parsePaintFormat method.
set - the AttributeSet containing the description of a
PaintFormat.
PaintFormat.
BuildException - thrown if the FormatPool.parsePaintFormat(String)
throws an exception.
public static java.lang.String getCanonicalPaintDescription(AttributeSet set)
throws BuildException
PaintFormat defined by the
given AttributeSet.
set - the AttributeSet containing the description of a
PaintFormat.
PaintFormat.
BuildException - thrown if the FormatPool.parsePaintFormat(String)
throws an exception.
BuildException
public static TextFormatter createTextFormatter(AttributeSet set)
throws BuildException
TextFormatter instance from the
AttributeSet given by set.
set - the AttributeSet to create the
TextFormatter from
TextFormatter
instance
BuildException - if the createFontFormat(AttributeSet)
call throws an exception.
public static FontFormat createFontFormat(AttributeSet set)
throws BuildException
FontFormat by using the FormatPool's
parseFontFormat method.
set - the AttributeSet containing the description of a
FontFormat.
BuildException - thrown if the FontWeight identifier cannot be read
or found.
public static java.lang.String getCanonicalFontDescription(AttributeSet set)
throws BuildException
FontFormat defined by the
given AttributeSet.
set - the AttributeSet containing the description of a
FontFormat.
FontFormat.
BuildException - thrown if the FormatPool.parseFontFormat(String)
throws an exception.
BuildException
public static StrokeFormat createStrokeFormat(AttributeSet set)
throws BuildException
StrokeFormat by using the FormatPool's
parseStrokeFormat method.
set - the AttributeSet containing the description of a
StrokeFormat.
StrokeFormat.
BuildException - if the FormatPool.parseStrokeFormat(String)
call throws an exception.
public static final java.lang.String getCanonicalStrokeDescription(AttributeSet set)
throws BuildException
StrokeFormat defined by the
given AttributeSet.
set - the AttributeSet containing the description of a
StrokeFormat.
StrokeFormat.
BuildException - thrown if the FormatPool.parseStrokeFormat(String)
throws an exception.
BuildException
public static MarkerFormat createMarkerFormat(AttributeSet set)
throws BuildException
MarkerFormat instance from the given
AttributeSet. This method uses
createPaintFormat and createStrokeFormat to
create the contained paint and stroke for this format.
set - the AttributeSet containing the description of a
MarkerFormat.
MarkerFormat.
BuildException - thrown if the MarkerType cannot be found or one of
the createStrokeFormat(AttributeSet) or
createPaintFormat(AttributeSet)] throws an exception.
public static final java.lang.String getCanonicalMarkerDescription(AttributeSet set)
throws BuildException
MarkerFormat defined by the
given AttributeSet.
set - the AttributeSet containing the description of a
MarkerFormat.
MarkerFormat.
BuildException - thrown if the FormatPool.parseMarkerFormat(String)
throws an exception.
BuildException
public static int getIdentifier(java.lang.String[] types,
int[] identifier,
java.lang.String token)
throws BuildException
types - the list of types the token should be compared with.identifier - the list of identifierstoken - the search string
BuildException - thrown if the token is not found in the list of
types.
public static java.lang.String getIdentifier(java.lang.String[] types,
int[] identifier,
int type)
getIdentifier( String[] { "normal", "bold", "italic"}, int[] { FontFormat.NORMAL, FontFormat.BOLD, FontFormat.ITALIC }, someIdentifier)
would return "normal" for the someIdentifier being equal to FontFormat.NORMAL.
types - the list of types the token should be compared with.identifier - the list of identifiers.type - the type identifier.
java.lang.IllegalArgumentException - thrown if the token is not found in the list of
types.public static FontFormat getFontFormatFromAwtFont(java.awt.Font font)
font - the AWT Font to which you want to receive the FontFormat.
public static AttributeSet fillInCanonicalDescriptions(AttributeSet set)
throws java.lang.CloneNotSupportedException,
BuildException
AttributeSet representations of formats or
instances of FontFormat, PaintFormat,
MarkerFormat or StrokeFormat by their corresponding
canonical description.
set - The set containing the formats and attributesets
java.lang.CloneNotSupportedException - If the clone of the given set failes
BuildException - If one of the attributesets can't be parsed
into a canonical description
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||