View unanswered posts | View active topics It is currently 2018-10-22 3:05



This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
 关于node动态隐藏 
Author Message
新手上路

Joined: 2013-04-15 13:03
Posts: 24
Post 关于node动态隐藏
node.setVisible(true);

当setVisible为true时,动态将它改为false后不隐藏,比如说双击修改setVisible为false时不管用


2013-04-15 14:14
Profile
TWaver开发组
User avatar

Joined: 2010-07-30 14:18
Posts: 304
Post Re: 关于node动态隐藏
测试应该不会!

能否把你的这部分代码整理 上来看看。


2013-04-15 14:44
Profile
新手上路

Joined: 2013-04-15 13:03
Posts: 24
Post Re: 关于node动态隐藏
ShapeNode jscnode = new ShapeNode();
jscnode.addPoint(new Point(293,640));
jscnode.addPoint(new Point(293,710));
jscnode.putShapeNodeToArrow(true);
jscnode.putCustomDrawOutlineStroke(TWaverConst.STROKE_SOLID_1);
jscnode.putCustomDrawOutlineColor(Color.red);
jscnode.setShapeNodeType(TWaverConst.SHAPENODE_ORTHOGONAL_LINE );
jscnode.setVisible(false);
box.addElement(jscnode);

if(name.equals("node2"))
{
jscnode.setVisible(false);

}
if(name.equals("node3"))
{
jscnode.setVisible(true);

}


前台是个双击事件,双击node2和node3两个网元,为true时可以,在点击node2为false时,还是显示


2013-04-15 15:42
Profile
TWaver开发组
User avatar

Joined: 2009-04-20 18:37
Posts: 3115
Post Re: 关于node动态隐藏
请不要重复发帖


2013-04-15 18:01
Profile
Display posts from previous:  Sort by  
This topic is locked, you cannot edit posts or make further replies.   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron