private int areaClass = CLASS_NORMAL;
private int ipd;
- private HashMap props = null;
+
+ /**
+ * Traits for this area stored in a HashMap
+ */
+ protected HashMap props = null;
/**
* Get the area class of this area.
import java.awt.geom.Rectangle2D;
import java.io.IOException;
+import java.util.HashMap;
/**
* Region Viewport reference area.
out.writeFloat((float) viewArea.getWidth());
out.writeFloat((float) viewArea.getHeight());
out.writeBoolean(clip);
+ out.writeObject(props);
out.writeObject(region);
}
viewArea = new Rectangle2D.Float(in.readFloat(), in.readFloat(),
in.readFloat(), in.readFloat());
clip = in.readBoolean();
+ props = (HashMap)in.readObject();
setRegion((RegionReference) in.readObject());
}
public Object clone() {
RegionViewport rv = new RegionViewport((Rectangle2D)viewArea.clone());
rv.region = (RegionReference)region.clone();
+ if(props != null) {
+ rv.props = (HashMap)props.clone();
+ }
return rv;
}
}
import java.io.IOException;
import java.awt.geom.Rectangle2D;
+import java.util.HashMap;
/**
* Inline viewport area.
out.writeFloat((float) contentPosition.getHeight());
}
out.writeBoolean(clip);
+ //out.writeObject(props);
out.writeObject(content);
}
in.readFloat());
}
clip = in.readBoolean();
+ //props = (HashMap) in.readObject();
content = (Area) in.readObject();
}