本文整理了Java中prefuse.Visualization.isInGroup()
方法的一些代码示例,展示了Visualization.isInGroup()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Visualization.isInGroup()
方法的具体详情如下:
包路径:prefuse.Visualization
类名称:Visualization
方法名:isInGroup
[英]Indicates if a given VisualItem is contained in the given visual data group.
[中]指示给定的VisualItem是否包含在给定的可视数据组中。
代码示例来源:origin: org.qi4j.tool/org.qi4j.tool.envisage
@Override
public int getColor( VisualItem item )
{
if( !( item instanceof NodeItem ) )
{
return 0;
}
NodeItem nItem = (NodeItem) item;
if( m_vis.isInGroup( nItem, Visualization.FOCUS_ITEMS ) )
{
return OUTLINE_FOCUS_COLOR;
}
return OUTLINE_COLOR;
}
}
代码示例来源:origin: de.sciss/prefuse-core
/**
* @see prefuse.visual.VisualItem#isInGroup(java.lang.String)
*/
public boolean isInGroup(String group) {
return getVisualization().isInGroup(this, group);
}
代码示例来源:origin: de.sciss/prefuse-core
/**
* @see prefuse.data.expression.Expression#getBoolean(prefuse.data.Tuple)
*/
public boolean getBoolean(Tuple t) {
if ( !(t instanceof VisualItem) )
return false;
String group = getGroup(t);
if ( group == null ) {
return false;
}
VisualItem item = (VisualItem)t;
return item.getVisualization().isInGroup(item, group);
}
代码示例来源:origin: nz.ac.waikato.cms.weka/prefuseTree
public int getColor(VisualItem item) {
if ( m_vis.isInGroup(item, Visualization.SEARCH_ITEMS) )
return ColorLib.rgb(255,190,190);
else if ( m_vis.isInGroup(item, Visualization.FOCUS_ITEMS) )
return ColorLib.rgb(198,229,229);
else if ( item.getDOI() > -1 )
return ColorLib.rgb(164,193,193);
else
return ColorLib.rgba(255,255,255,0);
}
代码示例来源:origin: org.qi4j.tool/org.qi4j.tool.envisage
@Override
public int getColor( VisualItem item )
{
if( m_vis.isInGroup( item, Visualization.SEARCH_ITEMS ) )
{
return ColorLib.rgb( 255, 190, 190 );
}
else if( m_vis.isInGroup( item, Visualization.FOCUS_ITEMS ) )
{
return ColorLib.rgb( 198, 229, 229 );
}
else if( item.getDOI() > -1 )
{
return ColorLib.rgb( 164, 193, 193 );
}
else
{
return ColorLib.rgba( 255, 255, 255, 0 );
}
}
}
代码示例来源:origin: de.sciss/prefuse-core
/**
* @see prefuse.data.expression.Expression#getBoolean(prefuse.data.Tuple)
*/
public boolean getBoolean(Tuple t) {
String group = getGroup(t);
if ( group == null ) return false;
boolean incEmpty = m_incEmpty.getBoolean(t);
VisualItem item = (VisualItem)t;
Visualization vis = item.getVisualization();
SearchTupleSet search = (SearchTupleSet)vis.getGroup(group);
if ( search == null && incEmpty )
return true;
String query = search != null ? search.getQuery() : null;
return (incEmpty && (query==null || query.length()==0))
|| vis.isInGroup(item, group);
}
代码示例来源:origin: org.qi4j.tool/org.qi4j.tool.envisage
@Override
public int getColor( VisualItem item )
{
if( item instanceof NodeItem )
{
NodeItem nItem = (NodeItem) item;
if( m_vis.isInGroup( nItem, Visualization.FOCUS_ITEMS ) )
{
int c = CMAP.getColor( nItem.getDepth() );
return ColorLib.darker( c );
}
return CMAP.getColor( nItem.getDepth() );
}
else
{
return CMAP.getColor( 0 );
}
}
} // end of inner class FillColorAction
内容来源于网络,如有侵权,请联系作者删除!