use of org.cytoscape.view.presentation.property.values.Position in project cytoscape-impl by cytoscape.
the class DNodeDetails method getLabelNodeAnchor.
@Override
public Position getLabelNodeAnchor(final CyNode node, final int labelInx) {
// Check bypass
final DNodeView dnv = dGraphView.getDNodeView(node);
if (dnv.isValueLocked(NODE_LABEL_POSITION)) {
final ObjectPosition lp = dnv.getVisualProperty(NODE_LABEL_POSITION);
final Position anchor = lp.getTargetAnchor();
// return convertG2ND(anchor.getConversionConstant());
return anchor;
}
final Position o = m_labelNodeAnchors.get(node);
if (o == null)
if (m_labelNodeAnchorDefault == null)
return super.getLabelNodeAnchor(node, labelInx);
else
return m_labelNodeAnchorDefault;
return o;
}
Aggregations