- java.lang.Object
-
- java.awt.ImageCapabilities
-
-
Constructor Summary
Constructors Constructor and Description ImageCapabilities(boolean accelerated)Creates a new object for specifying image capabilities.
-
Method Summary
Methods Modifier and Type Method and Description Objectclone()Creates and returns a copy of this object.booleanisAccelerated()Returnstrueif the object whose capabilities are encapsulated in thisImageCapabilitiescan be or is accelerated.booleanisTrueVolatile()Returnstrueif theVolatileImagedescribed by thisImageCapabilitiescan lose its surfaces.
-
-
-
Constructor Detail
-
ImageCapabilities
public ImageCapabilities(boolean accelerated)
Creates a new object for specifying image capabilities.- Parameters:
accelerated- whether or not an accelerated image is desired
-
-
Method Detail
-
isAccelerated
public boolean isAccelerated()
Returnstrueif the object whose capabilities are encapsulated in thisImageCapabilitiescan be or is accelerated.- Returns:
- whether or not an image can be, or is, accelerated. There are various platform-specific ways to accelerate an image, including pixmaps, VRAM, AGP. This is the general acceleration method (as opposed to residing in system memory).
-
isTrueVolatile
public boolean isTrueVolatile()
Returnstrueif theVolatileImagedescribed by thisImageCapabilitiescan lose its surfaces.- Returns:
- whether or not a volatile image is subject to losing its surfaces at the whim of the operating system.
-
clone
public Object clone()
Description copied from class:ObjectCreates and returns a copy of this object. The precise meaning of "copy" may depend on the class of the object. The general intent is that, for any objectx, the expression:
will be true, and that the expression:x.clone() != x
will bex.clone().getClass() == x.getClass()
true, but these are not absolute requirements. While it is typically the case that:
will bex.clone().equals(x)
true, this is not an absolute requirement.By convention, the returned object should be obtained by calling
super.clone. If a class and all of its superclasses (exceptObject) obey this convention, it will be the case thatx.clone().getClass() == x.getClass().By convention, the object returned by this method should be independent of this object (which is being cloned). To achieve this independence, it may be necessary to modify one or more fields of the object returned by
super.clonebefore returning it. Typically, this means copying any mutable objects that comprise the internal "deep structure" of the object being cloned and replacing the references to these objects with references to the copies. If a class contains only primitive fields or references to immutable objects, then it is usually the case that no fields in the object returned bysuper.cloneneed to be modified.The method
clonefor classObjectperforms a specific cloning operation. First, if the class of this object does not implement the interfaceCloneable, then aCloneNotSupportedExceptionis thrown. Note that all arrays are considered to implement the interfaceCloneableand that the return type of theclonemethod of an array typeT[]isT[]where T is any reference or primitive type. Otherwise, this method creates a new instance of the class of this object and initializes all its fields with exactly the contents of the corresponding fields of this object, as if by assignment; the contents of the fields are not themselves cloned. Thus, this method performs a "shallow copy" of this object, not a "deep copy" operation.The class
Objectdoes not itself implement the interfaceCloneable, so calling theclonemethod on an object whose class isObjectwill result in throwing an exception at run time.
-
-
Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-java/awt/ImageCapabilities.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author of this site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.