本文整理汇总了Java中org.pathvisio.core.model.ObjectType.BIOPAX属性的典型用法代码示例。如果您正苦于以下问题:Java ObjectType.BIOPAX属性的具体用法?Java ObjectType.BIOPAX怎么用?Java ObjectType.BIOPAX使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.pathvisio.core.model.ObjectType
的用法示例。
在下文中一共展示了ObjectType.BIOPAX属性的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getTopLeftCorner
/**
* Returns the top left corner of the bounding box around the elements
* @param elements = list of PathwayElement objects
* @return
*/
private Point2D.Double getTopLeftCorner(List<PathwayElement> elements) {
Rectangle2D vr = null;
for (PathwayElement o : elements)
{
if (o.getObjectType() == ObjectType.INFOBOX) continue;
if (o.getObjectType() == ObjectType.BIOPAX) continue;
else {
if (vr == null) vr = o.getMBounds();
else vr.add(o.getMBounds());
}
}
return new Point2D.Double(vr.getX(), vr.getY());
}
示例2: BiopaxElement
/**
* Constructor for this class. Builds a map of all biopax
* elements and their references
*/
public BiopaxElement()
{
super(ObjectType.BIOPAX);
biopax = new HashMap<String, BiopaxNode>();
ordinal = new HashMap<Class<? extends BiopaxNode>, Map<String, Integer>>();
refresh();
}