ApparatusPanel.java 文件源码

java
阅读 31 收藏 0 点赞 0 评论 0

项目:PhET 作者:
/**
 *
 */
public ApparatusPanel( final AffineTransformFactory tx ) {
    // Call superclass constructor with null so that we
    // don't get the default layout manager. This allows us
    // to lay out components with absolute coordinates
    super( null );
    this.mvTx = tx;


    this.mh = new MouseHandler();
    addMouseListener( mh );
    addMouseMotionListener( mh );

    addComponentListener( new ComponentAdapter() {
        @Override
        public void componentResized( ComponentEvent e ) {
            updateTransform();
        }
    } );
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号