1 package org.simantics.document.server.io;
3 public class SimpleFont implements IFont {
5 private final String family;
6 private final String style;
7 private final int height;
9 public SimpleFont(String family, String style, int height) {
16 public int hashCode() {
19 result = prime * result + ((family == null) ? 0 : family.hashCode());
20 result = prime * result + height;
21 result = prime * result + ((style == null) ? 0 : style.hashCode());
26 public boolean equals(Object obj) {
31 if (getClass() != obj.getClass())
33 SimpleFont other = (SimpleFont) obj;
35 if (other.family != null)
37 } else if (!family.equals(other.family))
39 if (height != other.height)
42 if (other.style != null)
44 } else if (!style.equals(other.style))
50 public String getFamily() {
55 public String getStyle() {
60 public int getHeight() {