modules/graphics/src/main/java/javafx/css/SizeUnits.java
Print this page
rev 9240 : 8076423: JEP 253: Prepare JavaFX UI Controls & CSS APIs for Modularization
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2008, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -21,16 +21,18 @@
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
-package com.sun.javafx.css;
+package javafx.css;
import javafx.scene.text.Font;
/**
* Represents a size specified in a particular unit, such as 14px or 0.2em.
+ *
+ * @since 9
*/
public enum SizeUnits {
PERCENT(false) {
@@ -281,12 +283,12 @@
return value;
}
};
- abstract double points(double value, double multiplier, Font font);
- abstract double pixels(double value, double multiplier, Font font);
+ public abstract double points(double value, double multiplier, Font font);
+ public abstract double pixels(double value, double multiplier, Font font);
private SizeUnits(boolean absolute) {
this.absolute = absolute;
}