public class P2DAttributorSupport extends Fwk implements P2DAttributorInterface
Graphics2D
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected static P2DAttributorInterface |
instance |
protected static java.lang.String |
TEN |
static java.lang.String |
version |
Constructor and Description |
---|
P2DAttributorSupport() |
Modifier and Type | Method and Description |
---|---|
FwkArrayInterface |
format(P2DComponentInterface component,
FwkArrayInterface arr,
boolean b,
FwkAppearanceInterface ap)
Format a boolean value.
|
FwkArrayInterface |
format(P2DComponentInterface component,
FwkArrayInterface arr,
char c,
FwkAppearanceInterface ap)
Format a character value.
|
FwkArrayInterface |
format(P2DComponentInterface component,
FwkArrayInterface arr,
double d,
FwkAppearanceInterface ap)
Format a double value.
|
FwkArrayInterface |
format(P2DComponentInterface component,
FwkArrayInterface arr,
float f,
FwkAppearanceInterface ap)
Format a float value.
|
FwkArrayInterface |
format(P2DComponentInterface component,
FwkArrayInterface arr,
int i,
FwkAppearanceInterface ap)
Format a int value.
|
FwkArrayInterface |
format(P2DComponentInterface component,
FwkArrayInterface arr,
long l,
FwkAppearanceInterface ap)
Format a long value.
|
FwkArrayInterface |
format(P2DComponentInterface component,
FwkArrayInterface arr,
java.lang.Object obj,
FwkAppearanceInterface ap)
Format a Object value.
|
FwkArrayInterface |
format(P2DComponentInterface component,
FwkArrayInterface arr,
java.lang.String s,
FwkAppearanceInterface ap)
Format a string value.
|
static P2DAttributorInterface |
getInstance()
Returns an instance of the attributor.
|
java.lang.String |
getVersion()
Return the version string of the FWK component.
|
static void |
main(java.lang.String[] args)
The Main body to test the class.
|
getNiceVersion, release
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
release
public static final java.lang.String version
protected static final java.lang.String TEN
protected static P2DAttributorInterface instance
public java.lang.String getVersion()
FwkInterface
getVersion
in interface FwkInterface
getVersion
in class Fwk
public static P2DAttributorInterface getInstance()
public FwkArrayInterface format(P2DComponentInterface component, FwkArrayInterface arr, java.lang.Object obj, FwkAppearanceInterface ap)
format
in interface P2DAttributorInterface
component
- The component for that the attributor should attribute the string.arr
- The array that receives the attributed strings.
If null the array will be created.obj
- The object that should be formatted.
The object must have a string representation.ap
- The appearance of the current P2D object.public FwkArrayInterface format(P2DComponentInterface component, FwkArrayInterface arr, java.lang.String s, FwkAppearanceInterface ap)
format
in interface P2DAttributorInterface
component
- The component for that the attributor should attribute the string.arr
- The array that receives the attributed strings.
If null the array will be created.s
- The string that should be formatted.ap
- The appearance of the current P"D object.public FwkArrayInterface format(P2DComponentInterface component, FwkArrayInterface arr, int i, FwkAppearanceInterface ap)
format
in interface P2DAttributorInterface
component
- The component for that the attributor should attribute the string.arr
- The array that receives the attributed strings.
If null the array will be created.i
- The int value that should be formatted.ap
- The appearance of the current P"D object.public FwkArrayInterface format(P2DComponentInterface component, FwkArrayInterface arr, boolean b, FwkAppearanceInterface ap)
format
in interface P2DAttributorInterface
component
- The component for that the attributor should attribute the string.arr
- The array that receives the attributed strings.
If null the array will be created.b
- The boolean that should be formatted.ap
- The appearance of the current P"D object.public FwkArrayInterface format(P2DComponentInterface component, FwkArrayInterface arr, char c, FwkAppearanceInterface ap)
format
in interface P2DAttributorInterface
component
- The component for that the attributor should attribute the string.arr
- The array that receives the attributed strings.
If null the array will be created.c
- The character that should be formatted.ap
- The appearance of the current P"D object.public FwkArrayInterface format(P2DComponentInterface component, FwkArrayInterface arr, long l, FwkAppearanceInterface ap)
format
in interface P2DAttributorInterface
component
- The component for that the attributor should attribute the string.arr
- The array that receives the attributed strings.
If null the array will be created.l
- The long value that should be formatted.ap
- The appearance of the current P"D object.public FwkArrayInterface format(P2DComponentInterface component, FwkArrayInterface arr, float f, FwkAppearanceInterface ap)
format
in interface P2DAttributorInterface
component
- The component for that the attributor should attribute the string.arr
- The array that receives the attributed strings.
If null the array will be created.f
- The float value that should be formatted.ap
- The appearance of the current P"D object.public FwkArrayInterface format(P2DComponentInterface component, FwkArrayInterface arr, double d, FwkAppearanceInterface ap)
format
in interface P2DAttributorInterface
component
- The component for that the attributor should attribute the string.arr
- The array that receives the attributed strings.
If null the array will be created.d
- The double value that should be formatted.ap
- The appearance of the current P"D object.public static void main(java.lang.String[] args)