/** * Returns the color of the specified edge mesh. */ public Color getColor( final DefaultWeightedEdge edge ) { // First, find to what track it belongs to final int trackID = model.getTrackModel().trackIDOf( edge ); // Retrieve color from index final Color4f color = new Color4f(); final int index = edgeIndices.get( trackID ).get( edge ); final LineArray line = lines.get( trackID ); if ( null == line ) { return null; } line.getColor( index, color ); return color.get(); }
/** * Returns the color of the specified edge mesh. */ public Color getColor( final DefaultWeightedEdge edge ) { // First, find to what track it belongs to final int trackID = model.getTrackModel().trackIDOf( edge ); // Retrieve color from index final Color4f color = new Color4f(); final int index = edgeIndices.get( trackID ).get( edge ); final LineArray line = lines.get( trackID ); if ( null == line ) { return null; } line.getColor( index, color ); return color.get(); }