| java.lang.Object com.sun.perseus.model.PaintServerReference
PaintServerReference | public class PaintServerReference (Code) | | The PaintServerReference object is used to handle
references from a GraphicsNode to an actual
Paint implementation. This is needed because
paint references are not always resolved, for example when
a document has forward references to paint servers.
version: $Id: PaintServerReference.java,v 1.5 2006/06/29 10:47:33 ln156897 Exp $ |
Field Summary | |
final static RGB | UNRESOLVED_PAINT Paint used when the paint server reference has not been resolved
yet. |
UNRESOLVED_PAINT | final static RGB UNRESOLVED_PAINT(Code) | | Paint used when the paint server reference has not been resolved
yet. Fully transparent black.
|
resolve | public static PaintServer resolve(DocumentNode doc, PaintTarget paintTarget, String traitName, String idRef)(Code) | | If the requested idRef is resolved, this method checks it is a reference
to a PaintServer and returns that PaintServer.
If the resquested idRef cannot be resolved, then the method returns and
PaintServerReference.Unresolved instance.
Parameters: doc - the Document scope. Parameters: paintTarget - the PaintServer observer. Parameters: traitName - the name of the trait for which the server is seeked. Parameters: idRef - the id of the paint server reference. |
|
|