1 33 34 package com.icesoft.faces.context.effects; 35 36 40 public class Appear extends Effect { 41 42 private float from = 0.0f; 43 private float to = 1.0f; 44 45 48 public Appear() { 49 ea.add("from", from); 50 ea.add("to", to); 51 } 52 53 60 public Appear(float from, float to) { 61 setFrom(from); 62 setTo(to); 63 } 64 65 70 public float getFrom() { 71 return from; 72 } 73 74 79 public void setFrom(float from) { 80 this.from = from; 81 ea.add("from", from); 82 } 83 84 89 public float getTo() { 90 return to; 91 } 92 93 98 public void setTo(float to) { 99 this.to = to; 100 ea.add("to", to); 101 } 102 103 108 public String getFunctionName() { 109 return "Effect.Appear"; 110 } 111 112 public int hashCode() { 113 int from = (int) (this.from * 100); 114 int to = (int) (this.to * 100); 115 return EffectHashCode.APPEAR * from * to; 116 } 117 } 118 | Popular Tags |