/**
* Sets the transform of this node.
*
* @param newTransform the new transform of this node
*/
public void setTransform(AffineTransform newTransform) {
fireGraphicsNodeChangeStarted();
this.transform = newTransform;
if(transform.getDeterminant() != 0){
try{
inverseTransform = transform.createInverse();
}catch(NoninvertibleTransformException e){
// Should never happen.
throw new Error( e.getMessage() );
}
} else {
// The transform is not invertible. Use the same
// transform.
inverseTransform = transform;
}
if (parent != null)
parent.invalidateGeometryCache();
fireGraphicsNodeChangeCompleted();
}
AbstractGraphicsNode.java 文件源码
java
阅读 23
收藏 0
点赞 0
评论 0
项目:Push2Display
作者:
评论列表
文章目录