APIdia Launch Partner
Top Description Fields Constructors Methods
sun.java2d.loops

public Class GraphicsPrimitiveProxy

extends GraphicsPrimitive
Class Inheritance

GraphicsPrimitiveProxy Acts as a proxy for instances of GraphicsPrimitive, enabling lazy classloading of these primitives. This leads to a substantial savings in start-up time and footprint. In the typical case, it has been found that a small number of GraphicsPrimitive instance actually end up getting instantiated.

Note that the makePrimitive method should never be invoked on a GraphicsPrimitiveProxy object since they are instantiated as soon as they are found in the primitive list and never returned to the caller.

Field Summary

Modifier and TypeField and Description
private Class<?>
private String
Inherited from sun.java2d.loops.GraphicsPrimitive:
TRACECOUNTStracefiletraceflagsTRACELOGtraceMaptraceoutTRACETIMESTAMP

Constructor Summary

AccessConstructor and Description
public
GraphicsPrimitiveProxy(Class<?>
The owner class for this primitive. The primitive must be in the same package as this owner.
owner
,
String
The name of the class this is a proxy for. This should not include the package.
relativeClassName
,
String methodSignature, int primID, SurfaceType srctype, CompositeType comptype, SurfaceType dsttype)

Create a GraphicsPrimitiveProxy for a primitive with a no-argument constructor.

Method Summary

Modifier and TypeMethod and Description
private static String
pack-priv GraphicsPrimitive
public GraphicsPrimitive
Inherited from sun.java2d.loops.GraphicsPrimitive:
convertFromconvertFromconvertTocreateConvertergetCompositeTypegetDestTypegetGeneralOpgetNativePrimgetPrimTypeIDgetSignaturegetSourceTypegetUniqueIDmakePrimitivemakePrimTypeIDmakeUniqueIDsatisfiessatisfiesSameAssetupGeneralBinaryOpsetupGeneralUnaryOpsimplenamesimplenamesimplenametoStringtracePrimitivetracingEnabled

Field Detail

ownerback to summary
private Class<?> owner
relativeClassNameback to summary
private String relativeClassName

Constructor Detail

GraphicsPrimitiveProxyback to summary
public GraphicsPrimitiveProxy(Class<?> owner, String relativeClassName, String methodSignature, int primID, SurfaceType srctype, CompositeType comptype, SurfaceType dsttype)

Create a GraphicsPrimitiveProxy for a primitive with a no-argument constructor.

Parameters
owner:Class<?>

The owner class for this primitive. The primitive must be in the same package as this owner.

relativeClassName:String

The name of the class this is a proxy for. This should not include the package.

Method Detail

getPackageNameback to summary
private static String getPackageName(String className)
instantiateback to summary
pack-priv GraphicsPrimitive instantiate()
traceWrapback to summary
public GraphicsPrimitive traceWrap()

Implements abstract sun.java2d.loops.GraphicsPrimitive.traceWrap.