|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.graphics.GraphicConfiguration
The GraphicConfiguration class holds the information that
configurates the graphic environment of the graphics API.
NOTICE:Currently this information is stored globally
(means the graphic environment is actually configurable within the scope
of a java runtime environment)
but this will be changed in a former release of the graphics API such that
this information is stored application wide.
| Constructor Summary | |
GraphicConfiguration()
Constructor for GraphicConfiguration. |
|
| Method Summary | |
static ImageOperations |
getImageOperationsInstance()
Returns the ImageOperations instance that is currently
registered. |
static TextOperations |
getTextOperationsInstance()
Returns the TextOperations instance that is currently
registered. |
static boolean |
isImageOperationsInstanceRegistered()
Returns a boolean that indicates whether an implementation
of ImageOperations is registered at this
GraphicConfiguration or not |
static boolean |
isTextOperationsInstanceRegistered()
Returns a boolean that indicates whether an implementation
of TextOpertions is registered at this
GraphicConfiguration or not |
static boolean |
isUseSingleLineCalc()
Return true, to enable new single line calculations |
static void |
registerImageOperationsInstance(ImageOperations imageoperations)
Registers an instance of a ImageOperations class such that
it is used by the graphics API for operations on images. |
static void |
registerTextOperationsInstance(TextOperations textoperations)
Registers an instance of a TextOperations class such that
it is used by the graphics API for operations on text. |
static void |
setUseSingleLineCalc(boolean useSingleLineCalc)
Enabled/disables the more accurate text bounds calculation for single line texts. |
static void |
unregisterImageOperationsInstance()
Unregisters the currently registered instance of an ImageOperations class such that it is no longer used by
the graphics API for operations on images. |
static void |
unregisterTextOperationsInstance()
Unregisters the currently registered instance of an TextOpertions class such that it is no longer used by
the graphics API for operations on text. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GraphicConfiguration()
| Method Detail |
public static final void registerTextOperationsInstance(TextOperations textoperations)
TextOperations class such that
it is used by the graphics API for operations on text.
textoperations - the instance of the TextOperations
class to registerTextOperationspublic static final void unregisterTextOperationsInstance()
TextOpertions class such that it is no longer used by
the graphics API for operations on text.
public static final boolean isTextOperationsInstanceRegistered()
boolean that indicates whether an implementation
of TextOpertions is registered at this
GraphicConfiguration or not
TextOperations is registeredTextOperationspublic static final TextOperations getTextOperationsInstance()
TextOperations instance that is currently
registered.
TextOperations instancepublic static final void registerImageOperationsInstance(ImageOperations imageoperations)
ImageOperations class such that
it is used by the graphics API for operations on images.
imageoperations - the instance of the ImageOperations
class to registerImageOperationspublic static final void unregisterImageOperationsInstance()
ImageOperations class such that it is no longer used by
the graphics API for operations on images.
public static final boolean isImageOperationsInstanceRegistered()
boolean that indicates whether an implementation
of ImageOperations is registered at this
GraphicConfiguration or not
ImageOperations is registeredImageOperationspublic static final ImageOperations getImageOperationsInstance()
ImageOperations instance that is currently
registered.
ImageOperations instancepublic static final void setUseSingleLineCalc(boolean useSingleLineCalc)
useSingleLineCalc - true, to enable the calculation for single
line textspublic static final boolean isUseSingleLineCalc()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||