 |
|
|
|
 |
 |
 |
Q & A ...
°Ô½ÃÆÇ (Visualization)
|
|
|
¡Ø ¾È³çÇϽʴϱî..?
ÀúÈñ KSTECÀÇ Á¦Ç°À̳ª ¼ºñ½º¿¡ ´ëÇØ ±Ã±ÝÇϽŠÁ¡À̳ª ±â¼úÁö¿øÀ» ¿øÇϽô °í°´´ÔÀº ȸ»ç¸í,
ºÎ¼¸í, ¼º¸í, »ç¿ëÁ¦Ç°¸í, Á¦Ç° VERSIONÀ» ¸í½ÃÇÏ¿© Áֽñ⠹ٶø´Ï´Ù.
¡Ø °Ô½ÃÇϽг»¿ë¿¡ ´ëÇØ¼´Â ½Å¼ÓÇÏ°Ô ´äº¯ÇØ µå¸®°Ú½À´Ï´Ù.
¡Ø ÇØ´çµÇ´Â Á¦Ç°±ºÀ» ¼±ÅÃÇϽŠÈÄ ÇÏ°í ½ÍÀ¸½Å ¸»¾¸À» Àû¾î ÁֽʽÿÀ.
|
|
|
Á¦ ¸ñ |
[RE][RE]Layout¿¡ °üÇÏ¿© |
|
ÀÛ¼ºÀÚ |
ÇÑ»óÀÌ |
ÀÛ¼ºÀÏ |
2004-03-05 |
Á¶È¸¼ö |
1321 ȸ |
|
÷ºÎÆÄÀÏ |
÷ºÎµÈ ÆÄÀϾøÀ½.
|
|
Á¦°¡ Àß ¾ËÁö´Â ¸øÇÏÁö¸¸. Ŭ·¯½ºÅ͸¦ ¸¸µé¾îÁà¾ß µÇÀݾƿä. ¿ì¼± ÄÚµå´Â ¾Æ·¡¿Í °°±¸¿ä. ½ÇÇàÇÏ¸é ´ÙÀ½°ú°°Àº ÀͼÁ¼ÇÀÌ ³³´Ï´Ù.
Circular Layout starting ....... java.lang.IllegalArgumentException: The nodeilog.tgo.model.IltNetworkElement@2006a0[label="´ëÀü_Àåºñ1"] must be a node in the attached grapher ilog.tgo.graphic.IltGrapherAdapter@1754699 [ilog.tgo.graphic.IltNetwork@7a36a2] at ilog.views.graphlayout.internalutil.LayoutUtil.a(Unknown Source) at ilog.views.graphlayout.internalutil.LayoutUtil.CheckInputNode(Unknown Source) at ilog.views.graphlayout.circular.IlvCircularLayout.addClusterId(Unknown Source) at kt.layer.Demo.setNodeLayout(Unknown Source) at kt.layer.Demo.(Unknown Source) at kt.layer.Demo.main(Unknown Source)
´ÙÀ½Àº ¼Ò½ºÀÔ´Ï´Ù. package kt.layer;
import java.awt.*; import javax.swing.*; import java.util.*;
import ilog.cpl.graphic.views.IlpShelfItemPosition; import ilog.cpl.graphic.IlpRelativePoint; import ilog.cpl.graphic.IlpGraphicViewStyleManager; import ilog.tgo.datasource.IltDefaultDataSource; import ilog.tgo.model.*; import ilog.cpl.graphic.IlpPoint; import ilog.cpl.service.IlpContext; import ilog.cpl.style.IlpStyleManager; import ilog.cpl.style.key.IlpFloatKey; import ilog.cpl.style.IlpStyle; import ilog.cpl.model.IlpObject; import ilog.cpl.model.IlpClass; import ilog.cpl.IlpNetwork; import ilog.cpl.style.key.IlpBooleanKey; import ilog.cpl.IlpSystem; import ilog.cpl.model.IlpClassManager; import ilog.cpl.style.key.IlpColorKey;
import ilog.views.interactor.IlvUnZoomViewInteractor; import ilog.cpl.equipment.IlpEquipmentController; import ilog.cpl.network.action.toolbar.*; import ilog.cpl.IlpEquipment; import ilog.cpl.equipment.IlpEquipmentView; import ilog.cpl.network.IlpNetworkView;
//import kt.test.MapResource; //import kt.test.KTLink;
//import javax.oss.fm.monitor.*;
import ilog.views.graphlayout.circular.IlvClusterNumber; import ilog.views.graphlayout.circular.IlvCircularLayout; import ilog.views.graphlayout.IlvGraphLayoutException; import ilog.views.graphlayout.IlvGraphLayout; import ilog.tgo.graphic.IltCompositeGrapher;
class Demo extends JPanel { private Vector vLinkModel;
IltDefaultDataSource dataSource; IlpNetwork networkComponent; IlvCircularLayout nodeLayout = new IlvCircularLayout();
IltNetworkElement iltNeSystem[] = new IltNetworkElement[4];
public Demo() { createNetworkComponent(); makeDataSource(); makeLink(); setNodeLayout(true); }
void createNetworkComponent() { dataSource = new IltDefaultDataSource(); networkComponent = new IlpNetwork( );
networkComponent.setDataSource( dataSource ); setLayout( new BorderLayout() ); add( networkComponent, BorderLayout.CENTER ); }
void makeDataSource() { vLinkModel = new Vector();
// Çϳª iltNeSystem[0] = new IltNetworkElement( "code001" ); iltNeSystem[0].setName( "´ëÀü" + "_" + "Àåºñ1" );
iltNeSystem[0].setType( IltNetworkElement.Type.IP_Router2 ); //iltNeSystem[0].setProperty( MapResource.KEY_MODEL, "AGW-model 1" ); //iltNeSystem[0].setProperty( MapResource.KEY_TYPE, "Accesss Gateway" ); //iltNeSystem[0].setProperty( MapResource.KEY_IP, "168.22.1.211" ); //iltNeSystem.setPosition(new IlpPoint (100, 100));
vLinkModel.add(iltNeSystem[0]);
// µÎ¿ï iltNeSystem[1] = new IltNetworkElement( "code002" ); iltNeSystem[1].setName( "ÀüÁÖ" + "_" + "Àåºñ1" );
//iltNeSystem[1].setType( IltNetworkElement.Type.SAN_FiberChannelSwitch ); //iltNeSystem[1].setProperty( MapResource.KEY_MODEL, "SW-model 3" ); //iltNeSystem[1].setProperty( MapResource.KEY_TYPE, "SoftSwitch" ); //iltNeSystem[1].setProperty( MapResource.KEY_IP, "168.22.1.211" ); //iltNeSystem.setPosition(new IlpPoint (200, 200));
vLinkModel.add(iltNeSystem[1]);
// ¼Â iltNeSystem[2] = new IltNetworkElement( "code003" ); iltNeSystem[2].setName( "ÀüÁÖ" + "_" + "Àåºñ3" );
//iltNeSystem[2].setType( IltNetworkElement.Type.SAN_FiberChannelSwitch ); //iltNeSystem[2].setProperty( MapResource.KEY_MODEL, "SW-model 3" ); //iltNeSystem[2].setProperty( MapResource.KEY_TYPE, "SoftSwitch" ); //iltNeSystem[2].setProperty( MapResource.KEY_IP, "168.22.1.211" ); //iltNeSystem.setPosition(new IlpPoint (200, 200));
vLinkModel.add(iltNeSystem[2]);
// ³Ý iltNeSystem[3] = new IltNetworkElement( "code004" ); iltNeSystem[3].setName( "ÀüÁÖ" + "_" + "Àåºñ4" );
//iltNeSystem[3].setType( IltNetworkElement.Type.SAN_FiberChannelSwitch ); //iltNeSystem[3].setProperty( MapResource.KEY_MODEL, "SW-model 3" ); //iltNeSystem[3].setProperty( MapResource.KEY_TYPE, "SoftSwitch" ); //iltNeSystem[3].setProperty( MapResource.KEY_IP, "168.22.1.211" ); //iltNeSystem.setPosition(new IlpPoint (200, 200));
vLinkModel.add(iltNeSystem[3]);
dataSource.addObjects( vLinkModel ); }
void makeLink() { String sLinkKey = "code001" + "-" + "code002";
IltNetworkElement iltNeFrom = (IltNetworkElement)dataSource.getObject( "code001" ); IltNetworkElement iltNeTo = (IltNetworkElement)dataSource.getObject( "code002" );
if ( iltNeFrom == null || iltNeTo == null ) return;
//IltLink link = new KTLink( sLinkKey, networkComponent ); IltLink link = new IltLink( sLinkKey );
link.setFrom(iltNeFrom); link.setTo(iltNeTo); vLinkModel.add(link); dataSource.addObjects( vLinkModel ); }
private IlpNetwork getNetwork() { return networkComponent; }
public void setNodeLayout(boolean flag) { final IlpNetworkView view = getNetwork().getView(); final IltCompositeGrapher grapher = view.getCompositeGrapher();
//if(view != null) // no use layout // return;
System.out.println("Circular Layout starting ......."); if (nodeLayout == null) nodeLayout = new IlvCircularLayout(); nodeLayout.setLinkStyle(IlvCircularLayout.NO_RESHAPE_STYLE); //nodeLayout.setLinkStyle(IlvCircularLayout.STRAIGHT_LINE_STYLE); nodeLayout.setLevelOffset(50); if (flag) nodeLayout.setOffset(30); else nodeLayout.setOffset(50);
nodeLayout.attach(grapher.getGraphModel());
for ( int i=0; i < 4; i++ ) { //grapher.addNode(iltNeSystem[i], true); nodeLayout.addClusterId( iltNeSystem[i], new IlvClusterNumber(i+1)); }
nodeLayout.setCoordinatesMode(IlvGraphLayout.VIEW_COORDINATES); nodeLayout.setLayoutRegion(new ilog.views.IlvRect(80, 80, 500, 500));
try { nodeLayout.performLayout(true, false, true); } catch (IlvGraphLayoutException e) { e.printStackTrace(); } }
public static void main( String args[] ) { JFrame f = new JFrame(); f.getContentPane().add( "Center", new Demo() ); f.setSize(400,400); f.setVisible(true); } } |
|
|
|
|
|
°ü·Ã±Û º¸±â
|
|
"[RE][RE]Layout¿¡ °üÇÏ¿©"¿Í(°ú) °ü·ÃµÈ ±ÛÀÌ
5°Ç ÀÖ½À´Ï´Ù. |
 |
Layout¿¡ °üÇÏ¿©
|
ÇÑ»óÀÌ |
2004-03-02 |
 |
[RE]Layout¿¡ °üÇÏ¿©
|
¹æÈ¿µ¿ |
2004-03-05 |
 |
[RE][RE]Layout¿¡ °üÇÏ¿©
|
ÇÑ»óÀÌ |
2004-03-05 |
 |
[RE][RE][RE]Layout¿¡ °üÇÏ¿©
|
¹æÈ¿µ¿ |
2004-03-05 |
 |
[´Ù½Ã]Àû¿ëÀ» Çߴµ¥. Çѹø´õ ºÁÁÖ¼¼¿ä^^
|
ÇÑ»óÀÌ |
2004-03-08 |
 |
µåµ® 됬´Ù.
|
ÇÑ»óÀÌ |
2004-03-18 |
|
|
|
|
|
|
|
|
|
|
| |
|
|
|