Lines Matching defs:info
742 * @param info StateInfo to copy.
744 public StateInfo(StateInfo info) {
745 this.state = info.state;
746 this.font = info.font;
747 if(info.data != null) {
751 data.putAll(info.data);
753 if (info.colors != null) {
754 this.colors = new Color[info.colors.length];
755 System.arraycopy(info.colors, 0, colors, 0,info.colors.length);
830 * @param info StateInfo to add our styles to
833 public StateInfo addTo(StateInfo info) {
835 info.font = font;
838 if(info.data == null) {
839 info.data = new HashMap();
841 info.data.putAll(data);
844 if (info.colors == null) {
845 info.colors = new Color[colors.length];
846 System.arraycopy(colors, 0, info.colors, 0,
850 if (info.colors.length < colors.length) {
851 Color[] old = info.colors;
853 info.colors = new Color[colors.length];
854 System.arraycopy(old, 0, info.colors, 0, old.length);
859 info.colors[counter] = colors[counter];
864 return info;
871 * @param state info.
881 * @return state info.