View unanswered posts | View active topics It is currently 2020-08-07 11:08



This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
 node隐藏问题,急!!!!!! 
Author Message
新手上路

Joined: 2013-04-15 13:03
Posts: 24
Post 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 16:16
Profile
TWaver开发组
User avatar

Joined: 2009-04-20 18:37
Posts: 3115
Post Re: node隐藏问题,急!!!!!!
您可以调试一下element.isVisible()是不是false


2013-04-15 18:00
Profile
Display posts from previous:  Sort by  
This topic is locked, you cannot edit posts or make further replies.   [ 2 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