本文整理汇总了Java中mpicbg.spim.data.generic.sequence.BasicViewSetup.getAttribute方法的典型用法代码示例。如果您正苦于以下问题:Java BasicViewSetup.getAttribute方法的具体用法?Java BasicViewSetup.getAttribute怎么用?Java BasicViewSetup.getAttribute使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mpicbg.spim.data.generic.sequence.BasicViewSetup
的用法示例。
在下文中一共展示了BasicViewSetup.getAttribute方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createSetupName
import mpicbg.spim.data.generic.sequence.BasicViewSetup; //导入方法依赖的package包/类
private static String createSetupName( final BasicViewSetup setup )
{
if ( setup.hasName() )
return setup.getName();
String name = "";
final Angle angle = setup.getAttribute( Angle.class );
if ( angle != null )
name += ( name.isEmpty() ? "" : " " ) + "a " + angle.getName();
final Channel channel = setup.getAttribute( Channel.class );
if ( channel != null )
name += ( name.isEmpty() ? "" : " " ) + "c " + channel.getName();
return name;
}
示例2: getAngle
import mpicbg.spim.data.generic.sequence.BasicViewSetup; //导入方法依赖的package包/类
protected static Angle getAngle( final BasicViewDescription< ? > vd )
{
final BasicViewSetup vs = vd.getViewSetup();
final Angle angle = vs.getAttribute( Angle.class );
if ( angle == null )
throw new RuntimeException( "This XML does not have the 'Angle' attribute for their ViewSetup. Cannot continue." );
return angle;
}
示例3: getChannel
import mpicbg.spim.data.generic.sequence.BasicViewSetup; //导入方法依赖的package包/类
protected static Channel getChannel( final BasicViewDescription< ? > vd )
{
final BasicViewSetup vs = vd.getViewSetup();
final Channel channel = vs.getAttribute( Channel.class );
if ( channel == null )
throw new RuntimeException( "This XML does not have the 'Channel' attribute for their ViewSetup. Cannot continue." );
return channel;
}
示例4: getIllumination
import mpicbg.spim.data.generic.sequence.BasicViewSetup; //导入方法依赖的package包/类
protected static Illumination getIllumination( final BasicViewDescription< ? > vd )
{
final BasicViewSetup vs = vd.getViewSetup();
final Illumination illumination = vs.getAttribute( Illumination.class );
if ( illumination == null )
throw new RuntimeException( "This XML does not have the 'Illumination' attribute for their ViewSetup. Cannot continue." );
return illumination;
}