我正在尝试在JavaFX中创建一种新类型的Pane。在扩展Node时,我被迫实现了四个不在Javadocs for Node中的抽象方法。任何人都可以帮助我理解这些是什么以及为什么它们不在Javadoc中?
protected NGNode impl_createPeer() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
@Override
public BaseBounds impl_computeGeomBounds(BaseBounds bounds, BaseTransform tx) {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
@Override
protected boolean impl_computeContains(double localX, double localY) {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
@Override
public Object impl_processMXNode(MXNodeAlgorithm alg, MXNodeAlgorithmContext ctx) {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
答案 0 :(得分:0)
在IntelliJ IDE中,您可以按行计数单击向上箭头以查看反编译代码。在那里,您将看到有一条评论声明它不打算使用,并将在下一版本中删除。我不确定你怎么能在其他IDE中看到反编译的代码,但很明显,开发人员想要使用这些方法的东西还没准备好。现在最好忽略它们。