/******************************************************************/
/* SDM engine configuration part */
/******************************************************************/

SDM {
	LinkLayout     : "true" ;
	LabelLayout    : "true" ;
	Decoration     : "true" ;
	GraphLayout    : "Hierarchical" ;
	SubGraph       : "true";
	TreeView       : "true";
}

LinkLayout {
	linkOffset : 5 ;
	interGraphLinksMode : "true";
	combinedInterGraphLinksMode : "true";
}

LabelLayout {
	enabled : "false";
}

GraphLayout {
	enabled         : "false";
	globalLinkStyle : "ORTHOGONAL_STYLE";
	flowDirection   : "Bottom";
}
	
Decoration {
	background : 'white' ;
	backgroundPatternLocation : '';
}

#task_icon_node {
  class         : ilog.views.sdm.graphic.IlvGeneralNode;
  icon          : @targetIcon;
  fillColor1    : white;
  fillColor2    : lightgray;
  strokeWidth 	: 1;
  fillAngle 	: 45;
//  fillEnd 	: 0.5;
//  fillStart 	: 0.25;
  fillStyle 	: LINEAR_GRADIENT;
  foreground 	: gray;
  iconPosition  : Center;
//  shape         : #@shadow_shape;
  shapeType     : RoundRectangle ;
  ToolTipText 	: @id ;
}

link {
  class            : ilog.views.sdm.graphic.IlvGeneralLink ;
  arrowColor       : darkgrey ;
  endCap           : CAP_ROUND ;
  foreground       : 135,206,235 ; // sky blue
  label            : @condition ;
  lineJoin         : JOIN_ROUND ;
  lineWidth        : 5 ;
  maximumLineWidth : 16 ;
  minimumLineWidth : 4 ;
  mode             : MODE_GRADIENT ;
  oriented         : true ;
  ToolTipText      : @id ;
  arrowRatio       : 1 ;
}


// link layout hints: suitable for vertical workflows

link:linkLayoutRenderer {
	NodeSideForOrigin      : Bottom;
	NodeSideForDestination : Top;
}
link.tool_link:linkLayoutRenderer, link.manual_link:linkLayoutRenderer {
	NodeSideForOrigin      : Any;
	NodeSideForDestination : Horizontal;
}

// Expanded/collapsed nodes:
//

node {
	FrameGraphic : "@+frame";
	FrameMargin : "10";
}

#frame {
	class : "ilog.views.sdm.graphic.IlvExpandedFrame";
	thickness : 5;
}

node:expanded, node:collapsed {
	Anchor : "Center";
}

node:expanded:expanded {
	// color of frame graphic
	foreground : '#88F5DEB3' ; // wheat
}

node:expanded:selected:selected {
	foreground : '#88FF6020' ; // "red-ish" wheat
}
