Source code: com/xerox/VTM/glyphs/Transparent.java
1 /* FILE: Transparent.java
2 * DATE OF CREATION: Dec 24 2001
3 * AUTHOR : Emmanuel Pietriga (emmanuel.pietriga@xrce.xerox.com)
4 * MODIF: Thu Jan 24 10:32:08 2002 by Emmanuel Pietriga
5 * Copyright (c) Xerox Corporation, XRCE/Contextual Computing, 2002. All Rights Reserved
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * For full terms see the file COPYING.
18 */
19
20 package com.xerox.VTM.glyphs;
21
22
23 import java.awt.AlphaComposite;
24
25
26 /**
27 * Transparency interface - implemented by all V[xxx]ST glyphs. Opacity is between 0.0 (fully transparent) and 1.0 (fully opaque)
28 * @author Emmanuel Pietriga
29 **/
30
31 public interface Transparent {
32
33 /**original alpha composite (opaque)*/
34 static AlphaComposite acO=AlphaComposite.getInstance(AlphaComposite.SRC_OVER); //opaque
35
36 /**
37 *set alpha channel value (transparency)
38 *@param a [0;1.0] 0 is fully transparent, 1 is opaque
39 */
40 public void setTransparencyValue(float a);
41
42
43 /**get alpha value (transparency) for this glyph*/
44 public float getTransparencyValue();
45
46 }