< prev index next >
modules/graphics/src/main/java/javafx/scene/transform/Scale.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2011, 2014, 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
--- 1,7 ----
/*
! * Copyright (c) 2011, 2016, 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
*** 754,786 ****
* *
* Internal implementation stuff *
* *
**************************************************************************/
- /**
- * @treatAsPrivate implementation detail
- * @deprecated This is an internal API that is not intended for use and will be removed in the next version
- */
- @Deprecated
@Override
! public void impl_apply(final Affine3D trans) {
if (getPivotX() != 0 || getPivotY() != 0 || getPivotZ() != 0) {
trans.translate(getPivotX(), getPivotY(), getPivotZ());
trans.scale(getX(), getY(), getZ());
trans.translate(-getPivotX(), -getPivotY(), -getPivotZ());
} else {
trans.scale(getX(), getY(), getZ());
}
}
- /**
- * @treatAsPrivate implementation detail
- * @deprecated This is an internal API that is not intended for use and will be removed in the next version
- */
- @Deprecated
@Override
! public BaseTransform impl_derive(BaseTransform trans) {
if (isIdentity()) {
return trans;
}
if (getPivotX() != 0 || getPivotY() != 0 || getPivotZ() != 0) {
trans = trans.deriveWithTranslation(getPivotX(), getPivotY(), getPivotZ());
--- 754,776 ----
* *
* Internal implementation stuff *
* *
**************************************************************************/
@Override
! void apply(final Affine3D trans) {
if (getPivotX() != 0 || getPivotY() != 0 || getPivotZ() != 0) {
trans.translate(getPivotX(), getPivotY(), getPivotZ());
trans.scale(getX(), getY(), getZ());
trans.translate(-getPivotX(), -getPivotY(), -getPivotZ());
} else {
trans.scale(getX(), getY(), getZ());
}
}
@Override
! BaseTransform derive(BaseTransform trans) {
if (isIdentity()) {
return trans;
}
if (getPivotX() != 0 || getPivotY() != 0 || getPivotZ() != 0) {
trans = trans.deriveWithTranslation(getPivotX(), getPivotY(), getPivotZ());
< prev index next >