01: /*
02: *
03: *
04: * Copyright 1990-2007 Sun Microsystems, Inc. All Rights Reserved.
05: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
06: *
07: * This program is free software; you can redistribute it and/or
08: * modify it under the terms of the GNU General Public License version
09: * 2 only, as published by the Free Software Foundation.
10: *
11: * This program is distributed in the hope that it will be useful, but
12: * WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * General Public License version 2 for more details (a copy is
15: * included at /legal/license.txt).
16: *
17: * You should have received a copy of the GNU General Public License
18: * version 2 along with this work; if not, write to the Free Software
19: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20: * 02110-1301 USA
21: *
22: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
23: * Clara, CA 95054 or visit www.sun.com if you need additional
24: * information or have any questions.
25: */
26: package com.sun.perseus.model;
27:
28: import com.sun.perseus.j2d.Transform;
29:
30: /**
31: * <code>Transformable</code> is the interface that all nodes which
32: * have an <code>Transform</code>
33: * (such as the <code>transform</code> attribute on
34: * <code><rect></code>) implement.
35: *
36: * @version $Id: Transformable.java,v 1.2 2006/04/21 06:39:39 st125089 Exp $
37: */
38: public interface Transformable {
39: /**
40: * This is the String trait value for identity transform.
41: */
42: String IDENTITY_TRANSFORM_TRAIT = "matrix(1.0,0.0,0.0,1.0,0.0,0.0)";
43:
44: /**
45: * Sets the transform for this node
46: *
47: * @param transform the new transform for this node.
48: */
49: void setTransform(Transform transform);
50:
51: /**
52: * @return the transform for this node or null if none.
53: */
54: Transform getTransform();
55:
56: }
|