Adds a key-value pair to this image's properties. The key is removed from the properties table if value is null. @see #getProp @see #setProp
(String key, Object value)
| 1772 | * @see #setProp |
| 1773 | */ |
| 1774 | public void setProperty(String key, Object value) { |
| 1775 | if (properties==null) |
| 1776 | properties = new Properties(); |
| 1777 | if (value==null) |
| 1778 | properties.remove(key); |
| 1779 | else |
| 1780 | properties.put(key, value); |
| 1781 | } |
| 1782 | |
| 1783 | /** Returns this image's Properties. May return null. */ |
| 1784 | public Properties getProperties() { |
no test coverage detected